| 510 | //----------------------------------------------------------------------------- |
| 511 | |
| 512 | U32 SFXSound::getPosition() const |
| 513 | { |
| 514 | if( mVoice ) |
| 515 | return mVoice->getFormat().getDuration( mVoice->getPosition() ); |
| 516 | else |
| 517 | return ( mPlayTimer.getPosition() % mDuration ); // Clamp for looped sounds. |
| 518 | } |
| 519 | |
| 520 | //----------------------------------------------------------------------------- |
| 521 |
no test coverage detected