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