Changeset 5961 in orxonox.OLD for branches/avi_play/src/lib/sound/sound_engine.h
- Timestamp:
- Dec 7, 2005, 2:53:43 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/avi_play/src/lib/sound/sound_engine.h
r5924 r5961 26 26 //! A class that handles audio via the openAudioLibrary 27 27 class SoundEngine : public BaseObject { 28 29 28 public: 30 29 virtual ~SoundEngine(); … … 49 48 50 49 // administrative 51 void addBuffer(SoundBuffer* buffer); 52 void removeBuffer(SoundBuffer* buffer); 53 void addSource(SoundSource* source); 50 void popALSource(ALuint& source); 51 void pushALSource(ALuint& source) { if (source != 0) this->ALSources.push(source); }; 54 52 55 53 void flushUnusedBuffers(); … … 57 55 void flushAllSources(); 58 56 57 bool initAudio(); 59 58 bool allocateSources(unsigned int count); 60 bool initAudio();61 59 62 60 // error handling: 63 static void PrintALErrorString(ALenum err); 64 // static void PrintALCErrorString(ALenum err); 65 61 static const char* getALErrorString(ALenum err); 66 62 67 63 private: 68 64 SoundEngine(); 65 69 66 void listDevices(); 70 67
Note: See TracChangeset
for help on using the changeset viewer.