Changeset 6827 in orxonox.OLD for trunk/src/lib
- Timestamp:
- Jan 29, 2006, 2:10:48 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/sound/ogg_player.cc
r5283 r6827 34 34 { 35 35 this->setClassID(CL_SOUND_OGG_PLAYER, "OggPlayer"); 36 37 this->source = 0; 38 36 39 if (fileName != NULL) 37 40 { … … 70 73 alGenBuffers(2, buffers); 71 74 check(); 72 alGenSources(1, &source);75 SoundEngine::getInstance()->popALSource(this->source); 73 76 check(); 74 77 … … 88 91 alSourceStop(source); 89 92 empty(); 90 alDeleteSources(1, &source);93 SoundEngine::getInstance()->pushALSource(source); 91 94 check(); 92 95 alDeleteBuffers(1, buffers);
Note: See TracChangeset
for help on using the changeset viewer.