Changeset 10821 for code/branches/cpp11_v2/src/orxonox/sound
- Timestamp:
- Nov 21, 2015, 7:05:53 PM (9 years ago)
- Location:
- code/branches/cpp11_v2/src/orxonox/sound
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/orxonox/sound/SoundManager.cc
r10771 r10821 407 407 if (ambient != nullptr) 408 408 { 409 for ( AmbientList::iterator it = this->ambientSounds_.begin(); it != this->ambientSounds_.end(); ++it)410 { 411 if ( it->first == ambient)409 for (auto & elem : this->ambientSounds_) 410 { 411 if (elem.first == ambient) 412 412 { 413 it->second = true;414 this->fadeOut( it->first);413 elem.second = true; 414 this->fadeOut(elem.first); 415 415 return; 416 416 } -
code/branches/cpp11_v2/src/orxonox/sound/SoundStreamer.cc
r10765 r10821 68 68 int current_section; 69 69 70 for( int i = 0; i < 4; i++)70 for(auto & initbuffer : initbuffers) 71 71 { 72 72 long ret = ov_read(&vf, inbuffer, sizeof(inbuffer), 0, 2, 1, ¤t_section); … … 82 82 } 83 83 84 alBufferData(initbuffer s[i], format, &inbuffer, ret, vorbisInfo->rate);84 alBufferData(initbuffer, format, &inbuffer, ret, vorbisInfo->rate); 85 85 } 86 86 alSourceQueueBuffers(audioSource, 4, initbuffers);
Note: See TracChangeset
for help on using the changeset viewer.