| 1441 | } |
| 1442 | |
| 1443 | void ShapeBase::MountedImage::addSoundSource(SFXSource* source) |
| 1444 | { |
| 1445 | if(source != NULL) |
| 1446 | { |
| 1447 | if(dataBlock->maxConcurrentSounds > 0 && mSoundSources.size() > dataBlock->maxConcurrentSounds) |
| 1448 | { |
| 1449 | SFX_DELETE(mSoundSources.first()); |
| 1450 | mSoundSources.pop_front(); |
| 1451 | } |
| 1452 | source->play(); |
| 1453 | mSoundSources.push_back(source); |
| 1454 | } |
| 1455 | } |
| 1456 | |
| 1457 | void ShapeBase::MountedImage::updateSoundSources( const MatrixF &renderTransform ) |
| 1458 | { |