Changeset 6769 for code/branches/sound5/src/orxonox/sound/AmbientSound.cc
- Timestamp:
- Apr 22, 2010, 3:32:45 PM (14 years ago)
- File:
-
- 1 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);
Note: See TracChangeset
for help on using the changeset viewer.