root/OpenSceneGraph/trunk/src/osgPlugins/ffmpeg/AudioSinkInterface.hpp @ 9826

Revision 9826, 0.9 kB (checked in by robert, 5 years ago)

Ported across from using boost pointers, and prepped for integration of audio interface into core OSG

RevLine 
[9816]1
[9826]2#ifndef OSG_AUDIOSINKINTERFACE_H
3#define OSG_AUDIOSINKINTERFACE_H
[9816]4
5#include <osg/Object>
6
7
8
[9826]9namespace osg
[9816]10{
11
12    class AudioSinkInterface : public osg::Object
13    {
14    public:
15
16        AudioSinkInterface() :
17            m_delay(0.0) { }
18
19        virtual void startPlaying() = 0;
20        virtual bool playing() const = 0;
21
22        virtual double getDelay() const { return m_delay; }
23        virtual void setDelay(const double delay) { m_delay = delay; }
24
25        virtual const char * libraryName() const { return "osgFFmpeg"; }
26        virtual const char * className() const { return "AudioSinkInterface"; }
27
28    private:
29
30        virtual AudioSinkInterface * cloneType() const { return 0; }
31        virtual AudioSinkInterface * clone(const osg::CopyOp &) const { return 0; }
32
33        double    m_delay;
34    };
35
36}
37
38
39
40#endif // HEADER_GUARD_OSGFFMPEG_AUDIO_SINK_INTERFACE_H
Note: See TracBrowser for help on using the browser.