Changeset 6506 for code/branches/sound5/src/orxonox/sound/SoundStreamer.cc
- Timestamp:
- Mar 11, 2010, 3:16:12 PM (14 years ago)
- Location:
- code/branches/sound5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/sound5
- Property svn:mergeinfo changed
/code/branches/sound4 (added) merged: 6435,6476,6504
- Property svn:mergeinfo changed
-
code/branches/sound5/src/orxonox/sound/SoundStreamer.cc
r6417 r6506 30 30 #include <vorbis/vorbisfile.h> 31 31 #include "SoundManager.h" 32 #include "util/Sleep.h" 32 33 33 34 namespace orxonox … … 91 92 alGetSourcei(audioSource, AL_BUFFERS_PROCESSED, &processed); 92 93 if (ALint error = alGetError()) 93 COUT(2) << "Sound Warning: Couldn't get number of processed buffers: " 94 << SoundManager::getALErrorString(error) << std::endl; 94 COUT(2) << "Sound Warning: Couldn't get number of processed buffers: " << getALErrorString(error) << std::endl; 95 95 96 96 if(processed > 0) … … 99 99 alSourceUnqueueBuffers(audioSource, processed, buffers); 100 100 if (ALint error = alGetError()) 101 COUT(2) << "Sound Warning: Couldn't unqueue buffers: " 102 << SoundManager::getALErrorString(error) << std::endl; 101 COUT(2) << "Sound Warning: Couldn't unqueue buffers: " << getALErrorString(error) << std::endl; 103 102 104 103 for(int i = 0; i < processed; i++) … … 121 120 alSourceQueueBuffers(audioSource, processed, buffers); 122 121 if (ALint error = alGetError()) 123 COUT(2) << "Sound Warning: Couldn't queue buffers: " 124 << SoundManager::getALErrorString(error) << std::endl; 122 COUT(2) << "Sound Warning: Couldn't queue buffers: " << getALErrorString(error) << std::endl; 125 123 } 124 msleep(250); // perhaps another value here is better 126 125 } 127 126 }
Note: See TracChangeset
for help on using the changeset viewer.