Changeset 4746 in orxonox.OLD for orxonox/trunk/src/lib/sound/sound_engine.h
- Timestamp:
- Jul 1, 2005, 12:48:48 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/sound/sound_engine.h
r4597 r4746 24 24 public: 25 25 SoundBuffer(const char* fileName); 26 ~SoundBuffer( void);26 ~SoundBuffer(); 27 27 28 28 /** \returns the ID of the buffer used in this SoundBuffer */ 29 inline ALuint getID( void) { return this->bufferID; }29 inline ALuint getID() { return this->bufferID; } 30 30 31 31 private: … … 41 41 public: 42 42 SoundSource(SoundBuffer* buffer, PNode* sourceNode = NULL); 43 ~SoundSource( void);43 ~SoundSource(); 44 44 45 45 // user interaction … … 51 51 // development functions 52 52 /** \returns The ID of this Source */ 53 inline ALuint getID( void) const { return this->sourceID; }53 inline ALuint getID() const { return this->sourceID; } 54 54 /** \returns the SoundBuffer of this Source */ 55 inline SoundBuffer* getBuffer( void) const { return this->buffer; }55 inline SoundBuffer* getBuffer() const { return this->buffer; } 56 56 /** \returns the SourceNode of this Source */ 57 inline PNode* getNode( void) const { return this->sourceNode;}57 inline PNode* getNode() const { return this->sourceNode;} 58 58 59 59 void setRolloffFactor(ALfloat rolloffFactor); … … 71 71 72 72 public: 73 virtual ~SoundEngine( void);73 virtual ~SoundEngine(); 74 74 /** \returns a Pointer to the only object of this Class */ 75 inline static SoundEngine* getInstance( void) { if (!singletonRef) singletonRef = new SoundEngine(); return singletonRef; };75 inline static SoundEngine* getInstance() { if (!singletonRef) singletonRef = new SoundEngine(); return singletonRef; }; 76 76 77 77 SoundSource* createSource(const char* fileName, PNode* sourceNode = NULL); … … 86 86 void removeSource(SoundSource* source); 87 87 88 void update( void);88 void update(); 89 89 90 90 // administrative 91 void flushUnusedBuffers( void);92 void flushAllBuffers( void);93 bool initAudio( void);91 void flushUnusedBuffers(); 92 void flushAllBuffers(); 93 bool initAudio(); 94 94 95 95 // error handling: … … 99 99 100 100 private: 101 SoundEngine( void);101 SoundEngine(); 102 102 static SoundEngine* singletonRef; //!< Reference to this class 103 103
Note: See TracChangeset
for help on using the changeset viewer.