root/OpenSceneGraph/trunk/src/osgWrappers/osg/AudioStream.cpp @ 10925

Revision 10925, 4.6 kB (checked in by robert, 4 years ago)

Added virtual pause() method into osg::AudioSink? to support pausing of a movie thread and it's associated audio.

Updated osgmovie plugin to use the pause support.

RevLine 
[9867]1// ***************************************************************************
2//
3//   Generated automatically by genwrapper.
4//   Please DO NOT EDIT this file!
5//
6// ***************************************************************************
7
8#include <osgIntrospection/ReflectionMacros>
9#include <osgIntrospection/TypedMethodInfo>
10#include <osgIntrospection/StaticMethodInfo>
11#include <osgIntrospection/Attributes>
12
13#include <osg/AudioStream>
14#include <osg/CopyOp>
15#include <osg/Object>
16
17// Must undefine IN and OUT macros defined in Windows headers
18#ifdef IN
19#undef IN
20#endif
21#ifdef OUT
22#undef OUT
23#endif
24
25BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::AudioSink)
26        I_DeclaringFile("osg/AudioStream");
27        I_BaseType(osg::Object);
28        I_Constructor0(____AudioSink,
29                       "",
30                       "");
[10925]31        I_Method0(const char *, libraryName,
32                  Properties::VIRTUAL,
33                  __C5_char_P1__libraryName,
34                  "return the name of the object's library. ",
35                  "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. ");
36        I_Method0(const char *, className,
37                  Properties::VIRTUAL,
38                  __C5_char_P1__className,
39                  "return the name of the object's class type. ",
40                  "Must be defined by derived classes. ");
41        I_Method0(void, play,
[9867]42                  Properties::PURE_VIRTUAL,
[10925]43                  __void__play,
[9867]44                  "",
45                  "");
[10925]46        I_Method0(void, pause,
47                  Properties::PURE_VIRTUAL,
48                  __void__pause,
49                  "",
50                  "");
51        I_Method0(void, stop,
52                  Properties::PURE_VIRTUAL,
53                  __void__stop,
54                  "",
55                  "");
[9867]56        I_Method0(bool, playing,
57                  Properties::PURE_VIRTUAL,
58                  __bool__playing,
59                  "",
60                  "");
61        I_Method0(double, getDelay,
62                  Properties::VIRTUAL,
63                  __double__getDelay,
64                  "",
65                  "");
66        I_Method1(void, setDelay, IN, const double, delay,
67                  Properties::VIRTUAL,
68                  __void__setDelay__C5_double,
69                  "",
70                  "");
71        I_SimpleProperty(double, Delay,
72                         __double__getDelay,
73                         0);
74END_REFLECTOR
75
76BEGIN_ENUM_REFLECTOR(osg::AudioStream::SampleFormat)
77        I_DeclaringFile("osg/AudioStream");
78        I_EnumLabel(osg::AudioStream::SAMPLE_FORMAT_U8);
79        I_EnumLabel(osg::AudioStream::SAMPLE_FORMAT_S16);
80        I_EnumLabel(osg::AudioStream::SAMPLE_FORMAT_S24);
81        I_EnumLabel(osg::AudioStream::SAMPLE_FORMAT_S32);
82        I_EnumLabel(osg::AudioStream::SAMPLE_FORMAT_F32);
83END_REFLECTOR
84
85BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::AudioStream)
86        I_DeclaringFile("osg/AudioStream");
87        I_BaseType(osg::Object);
88        I_Constructor0(____AudioStream,
89                       "",
90                       "");
91        I_ConstructorWithDefaults2(IN, const osg::AudioStream &, audio, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY,
92                                   ____AudioStream__C5_AudioStream_R1__C5_CopyOp_R1,
93                                   "Copy constructor using CopyOp to manage deep vs shallow copy. ",
94                                   "");
95        I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj,
96                  Properties::VIRTUAL,
97                  __bool__isSameKindAs__C5_Object_P1,
98                  "",
99                  "");
100        I_Method0(const char *, libraryName,
101                  Properties::VIRTUAL,
102                  __C5_char_P1__libraryName,
103                  "return the name of the object's library. ",
104                  "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. ");
105        I_Method0(const char *, className,
106                  Properties::VIRTUAL,
107                  __C5_char_P1__className,
108                  "return the name of the object's class type. ",
109                  "Must be defined by derived classes. ");
110        I_Method1(void, setAudioSink, IN, osg::AudioSink *, audio_sink,
111                  Properties::PURE_VIRTUAL,
112                  __void__setAudioSink__osg_AudioSink_P1,
113                  "",
114                  "");
115        I_Method2(void, consumeAudioBuffer, IN, void *const, buffer, IN, const size_t, size,
116                  Properties::PURE_VIRTUAL,
117                  __void__consumeAudioBuffer__void_P1C5__C5_size_t,
118                  "",
119                  "");
120        I_Method0(int, audioFrequency,
121                  Properties::PURE_VIRTUAL,
122                  __int__audioFrequency,
123                  "",
124                  "");
125        I_Method0(int, audioNbChannels,
126                  Properties::PURE_VIRTUAL,
127                  __int__audioNbChannels,
128                  "",
129                  "");
130        I_Method0(osg::AudioStream::SampleFormat, audioSampleFormat,
131                  Properties::PURE_VIRTUAL,
132                  __SampleFormat__audioSampleFormat,
133                  "",
134                  "");
135        I_SimpleProperty(osg::AudioSink *, AudioSink,
136                         0,
137                         __void__setAudioSink__osg_AudioSink_P1);
138END_REFLECTOR
Note: See TracBrowser for help on using the browser.