Changeset 6769 for code/branches/sound5/src/orxonox
- Timestamp:
- Apr 22, 2010, 3:32:45 PM (15 years ago)
- Location:
- code/branches/sound5/src/orxonox/sound
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/sound5/src/orxonox/sound/AmbientSound.cc
r6767 r6769 155 155 } 156 156 157 this->audioSource_ = SoundManager::getInstance().getSoundSource(this); 157 if(!alIsSource(this->audioSource_)) 158 this->audioSource_ = SoundManager::getInstance().getSoundSource(this); 159 158 160 if (this->source_ == source) 159 161 { … … 183 185 if(this->soundstreamthread_ == boost::thread()) 184 186 COUT(2) << "Sound: Failed to create thread." << std::endl; 185 187 //SoundStreamer streamer; 188 //streamer(this->audioSource_, dataStream); 189 186 190 alSource3f(this->audioSource_, AL_POSITION, 0, 0, 0); 187 191 alSource3f(this->audioSource_, AL_VELOCITY, 0, 0, 0); -
code/branches/sound5/src/orxonox/sound/SoundStreamer.cc
r6733 r6769 104 104 } 105 105 106 alSourcei(audioSource, AL_LOOPING, AL_TRUE);106 //alSourcei(audioSource, AL_LOOPING, AL_TRUE); 107 107 108 108 alSourcePlay(audioSource); 109 109 if(ALint error = alGetError()) 110 COUT(2) << "Sound: Could not start ambient sound" << std::endl;110 COUT(2) << "Sound: Could not start ambient sound" << getALErrorString(error) << std::endl; 111 111 112 112 while(true) // Stream forever, control through thread control
Note: See TracChangeset
for help on using the changeset viewer.