| 36 | } |
| 37 | |
| 38 | SFXStatus SFXNullVoice::_status() const |
| 39 | { |
| 40 | if( !mIsLooping |
| 41 | && mPlayTimer.isStarted() |
| 42 | && !mPlayTimer.isPaused() |
| 43 | && mPlayTimer.getPosition() >= mBuffer->getDuration() ) |
| 44 | mPlayTimer.stop(); |
| 45 | |
| 46 | if( mPlayTimer.isPaused() ) |
| 47 | return SFXStatusPaused; |
| 48 | else if( mPlayTimer.isStarted() ) |
| 49 | return SFXStatusPlaying; |
| 50 | else |
| 51 | return SFXStatusStopped; |
| 52 | } |
| 53 | |
| 54 | void SFXNullVoice::_play() |
| 55 | { |
nothing calls this directly
no test coverage detected