Changeset 20850
- Timestamp:
- 09/24/07 18:07:19 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
juggler/branches/2.2/modules/sonix/plugins/Audiere/AudiereSoundImplementation.cpp
r19729 r20850 127 127 snx::SoundInfo si = this->lookup(alias); 128 128 129 if( (trackMap.count(alias) == 0) && (effectMap.count(alias) == 0))129 if( mTrackMap.count(alias) == 0 && mEffectMap.count(alias) == 0 ) 130 130 { 131 131 this->bind(alias); … … 142 142 // Set audiere to loop indefinly if that is requested other wise play 143 143 // only once. 144 if ( trackMap.count(alias) > 0 )144 if ( mTrackMap.count(alias) > 0 ) 145 145 { 146 trackMap[alias]->setRepeat(looping == -1);147 trackMap[alias]->play();146 mTrackMap[alias]->setRepeat(looping == -1); 147 mTrackMap[alias]->play(); 148 148 } 149 149 } … … 151 151 { 152 152 // if the sound is already bound then play it. 153 if ( effectMap.count(alias) > 0 )153 if ( mEffectMap.count(alias) > 0 ) 154 154 { 155 effectMap[alias]->play();155 mEffectMap[alias]->play(); 156 156 } 157 157 } … … 169 169 if ( si.streaming ) 170 170 { 171 if ( trackMap.count(alias) > 0 )172 { 173 is_playing = trackMap[alias]->isPlaying();171 if ( mTrackMap.count(alias) > 0 ) 172 { 173 is_playing = mTrackMap[alias]->isPlaying(); 174 174 } 175 175 } … … 178 178 is_playing = false; 179 179 /* 180 if ( effectMap.count(alias) > 0 )180 if ( mEffectMap.count(alias) > 0 ) 181 181 { 182 182 } … … 227 227 if ( this->lookup(alias).streaming ) 228 228 { 229 if ( trackMap.count(alias) > 0 )230 { 231 trackMap[alias]->stop();229 if ( mTrackMap.count(alias) > 0 ) 230 { 231 mTrackMap[alias]->stop(); 232 232 } 233 233 } 234 234 else 235 235 { 236 if ( effectMap.count(alias) > 0 )237 { 238 effectMap[alias]->stop();236 if ( mEffectMap.count(alias) > 0 ) 237 { 238 mEffectMap[alias]->stop(); 239 239 } 240 240 } … … 324 324 if ( si.streaming ) 325 325 { 326 if ( trackMap.count(alias) > 0 )327 { 328 trackMap[alias]->setVolume(amount);326 if ( mTrackMap.count(alias) > 0 ) 327 { 328 mTrackMap[alias]->setVolume(amount); 329 329 } 330 330 } 331 331 else 332 332 { 333 if ( effectMap.count(alias) > 0 )334 { 335 effectMap[alias]->setVolume(amount);333 if ( mEffectMap.count(alias) > 0 ) 334 { 335 mEffectMap[alias]->setVolume(amount); 336 336 } 337 337 } … … 444 444 if ( NULL != stream ) 445 445 { 446 trackMap[alias] = stream;446 mTrackMap[alias] = stream; 447 447 } 448 448 else … … 463 463 if ( NULL != effect ) 464 464 { 465 effectMap[alias] = effect;465 mEffectMap[alias] = effect; 466 466 } 467 467 else juggler/branches/2.2/modules/sonix/plugins/Audiere/AudiereSoundImplementation.h
r19729 r20850 281 281 bool mIsPlaying; 282 282 283 std::map<std::string, audiere::OutputStreamPtr> trackMap;284 std::map<std::string, audiere::SoundEffectPtr> effectMap;283 std::map<std::string, audiere::OutputStreamPtr> mTrackMap; 284 std::map<std::string, audiere::SoundEffectPtr> mEffectMap; 285 285 }; 286 286
