| 1468 | } |
| 1469 | |
| 1470 | void ShapeBase::MountedImage::addSoundSource(SFXSource* source) |
| 1471 | { |
| 1472 | if(source != NULL) |
| 1473 | { |
| 1474 | if(dataBlock->maxConcurrentSounds > 0 && mSoundSources.size() > dataBlock->maxConcurrentSounds) |
| 1475 | { |
| 1476 | SFX_DELETE(mSoundSources.first()); |
| 1477 | mSoundSources.pop_front(); |
| 1478 | } |
| 1479 | source->play(); |
| 1480 | mSoundSources.push_back(source); |
| 1481 | } |
| 1482 | } |
| 1483 | |
| 1484 | void ShapeBase::MountedImage::updateSoundSources( const MatrixF &renderTransform ) |
| 1485 | { |