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

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

From Tanguy Fautre (Aris Technologies), ffmpeg plugin

RevLine 
[9816]1
2#ifndef HEADER_GUARD_OSGFFMPEG_AUDIO_SINK_INTERFACE_H
3#define HEADER_GUARD_OSGFFMPEG_AUDIO_SINK_INTERFACE_H
4
5#include <osg/Object>
6
7
8
9namespace osgFFmpeg
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.