mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:57:45 +00:00
SoundPlayer: Translate device samples to source samples before seeking
This commit is contained in:
parent
dfc57c0dd9
commit
9bf9702842
1 changed files with 1 additions and 0 deletions
|
@ -155,6 +155,7 @@ void Player::toggle_mute()
|
|||
|
||||
void Player::seek(int sample)
|
||||
{
|
||||
sample *= (m_playback_manager.device_sample_rate() / static_cast<float>(m_playback_manager.loader()->sample_rate()));
|
||||
m_playback_manager.seek(sample);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue