Changeset 7729 in orxonox.OLD for trunk/src/lib/sound
- Timestamp:
- May 19, 2006, 3:07:09 PM (19 years ago)
- Location:
- trunk/src/lib/sound
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/sound/ogg_player.cc
r7460 r7729 290 290 291 291 alSourceQueueBuffers(this->source, 2, this->buffers); 292 if (DEBUG >= 3)292 if (DEBUG_LEVEL >= 3) 293 293 SoundEngine::checkError("OggPlayer::playback()::alSourceQueueBuffers", __LINE__); 294 294 295 295 alSourcePlay(this->source); 296 if (DEBUG >= 3)296 if (DEBUG_LEVEL >= 3) 297 297 SoundEngine::checkError("OggPlayer::playback()::alSourcePlay", __LINE__); 298 298 SDL_mutexV(this->musicMutex); … … 329 329 330 330 alGetSourcei(source, AL_BUFFERS_PROCESSED, &processed); 331 if (DEBUG >= 3)331 if (DEBUG_LEVEL >= 3) 332 332 SoundEngine::checkError("OggPlayer::update()::alGetSourceI", __LINE__); 333 333 … … 337 337 338 338 alSourceUnqueueBuffers(source, 1, &buffer); 339 if (DEBUG >= 3)339 if (DEBUG_LEVEL >= 3) 340 340 SoundEngine::checkError("OggPlayer::update()::unqueue", __LINE__); 341 341 … … 343 343 344 344 alSourceQueueBuffers(source, 1, &buffer); 345 if (DEBUG >= 3)345 if (DEBUG_LEVEL >= 3) 346 346 SoundEngine::checkError("OggPlayer::update()::queue", __LINE__); 347 347 } … … 380 380 381 381 alBufferData(buffer, format, pcm, size, vorbisInfo->rate); 382 if (DEBUG >= 3)382 if (DEBUG_LEVEL >= 3) 383 383 SoundEngine::checkError("OggPlayer::stream()::BUFFER", __LINE__); 384 384 … … 448 448 449 449 ///////////////////// 450 // DEBUG FUNCTIONS //450 // DEBUG_LEVEL FUNCTIONS // 451 451 ///////////////////// 452 452 /** -
trunk/src/lib/sound/sound_engine.cc
r7460 r7729 223 223 int play = 0x000; 224 224 alGetSourcei(source->getID(), AL_SOURCE_STATE, &play); 225 if (DEBUG > 2)225 if (DEBUG_LEVEL > 2) 226 226 SoundEngine::checkError("SoundEngine::update() Play", __LINE__); 227 227 if(play == AL_PLAYING) … … 233 233 source->getNode()->getAbsCoor().y, 234 234 source->getNode()->getAbsCoor().z); 235 if (DEBUG > 2)235 if (DEBUG_LEVEL > 2) 236 236 SoundEngine::checkError("SoundEngine::update() Set Source Position", __LINE__); 237 237 alSource3f(source->getID(), AL_VELOCITY, … … 239 239 source->getNode()->getVelocity().y, 240 240 source->getNode()->getVelocity().z); 241 if (DEBUG > 2)241 if (DEBUG_LEVEL > 2) 242 242 SoundEngine::checkError("SoundEngine::update() Set Source Velocity", __LINE__); 243 243 } -
trunk/src/lib/sound/sound_source.cc
r7460 r7729 124 124 alSourcePlay(this->sourceID); 125 125 126 if (DEBUG >= 3)126 if (DEBUG_LEVEL >= 3) 127 127 SoundEngine::checkError("Play Source", __LINE__); 128 128 this->bPlay = true; … … 151 151 this->bPlay = true; 152 152 153 if (DEBUG >= 3)153 if (DEBUG_LEVEL >= 3) 154 154 SoundEngine::checkError("Play Source", __LINE__); 155 155 } … … 165 165 { 166 166 alSourceStop(this->sourceID); 167 if (DEBUG >= 3)167 if (DEBUG_LEVEL >= 3) 168 168 SoundEngine::checkError("StopSource", __LINE__); 169 169 alSourcei(this->sourceID, AL_BUFFER, 0); … … 181 181 { 182 182 alSourcePause(this->sourceID); 183 if (DEBUG >= 3)183 if (DEBUG_LEVEL >= 3) 184 184 SoundEngine::checkError("Pause Source", __LINE__); 185 185 } … … 193 193 alSourceRewind(this->sourceID); 194 194 195 if (DEBUG >= 3)195 if (DEBUG_LEVEL >= 3) 196 196 SoundEngine::checkError("Rewind Source", __LINE__); 197 197 } … … 208 208 alSourcef(this->sourceID, AL_ROLLOFF_FACTOR, rolloffFactor); 209 209 210 if (DEBUG >= 3)210 if (DEBUG_LEVEL >= 3) 211 211 SoundEngine::checkError("Set Source Rolloff-factor", __LINE__); 212 212 }
Note: See TracChangeset
for help on using the changeset viewer.