| 516 | //----------------------------------------------------------------------------- |
| 517 | |
| 518 | U32 SFXSound::getPosition() const |
| 519 | { |
| 520 | if( getLastStatus() == SFXStatusStopped) |
| 521 | return mSetPositionValue; |
| 522 | if( mVoice ) |
| 523 | return mVoice->getFormat().getDuration( mVoice->getPosition() ); |
| 524 | else |
| 525 | return ( mPlayTimer.getPosition() % mDuration ); // Clamp for looped sounds. |
| 526 | } |
| 527 | |
| 528 | //----------------------------------------------------------------------------- |
| 529 |
no test coverage detected