| 724 | //----------------------------------------------------------------------------- |
| 725 | |
| 726 | void SFXController::_stop() |
| 727 | { |
| 728 | Parent::_stop(); |
| 729 | |
| 730 | // Stop all playing sources. |
| 731 | |
| 732 | while( !mSources.empty() ) |
| 733 | { |
| 734 | if( mSources.last().mPtr != NULL ) |
| 735 | mSources.last().mPtr->stop( 0.f ); // We want our fade values to take effect. |
| 736 | mSources.decrement(); |
| 737 | } |
| 738 | |
| 739 | // Reset execution. |
| 740 | |
| 741 | mIp = 0; |
| 742 | if( !mInsns.empty() ) |
| 743 | _initInsn(); |
| 744 | } |
| 745 | |
| 746 | //----------------------------------------------------------------------------- |
| 747 | |