| 652 | //----------------------------------------------------------------------------- |
| 653 | |
| 654 | void SFXSystem::_onAddSource( SFXSource* source ) |
| 655 | { |
| 656 | if( dynamic_cast< SFXSound* >( source ) ) |
| 657 | { |
| 658 | SFXSound* sound = static_cast< SFXSound* >( source ); |
| 659 | mSounds.push_back( sound ); |
| 660 | |
| 661 | mStatNumSounds = mSounds.size(); |
| 662 | } |
| 663 | |
| 664 | // Update the stats. |
| 665 | mStatNumSources ++; |
| 666 | } |
| 667 | |
| 668 | //----------------------------------------------------------------------------- |
| 669 |