Delay when changing playback speed and pitch

App version

Production

Issue description

When playing a song, if you decide to change the playback speed or pitch, there is a noticeable delay between pressing the button to change speed/pitch and the song actually changing its speed/pitch.

The delay ranges from one to a few seconds, and has some weird audio feedback. Here is an unlisted screen recording on Youtube by me, demonstrating this issue: https://youtube.com/shorts/5CEuqNnLfu8?feature=share (sorry that it’s a short, I have no control over that)

Device type

Phone

Media provider

Jellyfin

Steps to reproduce

On the app:

  1. Play any song,
  2. Change the playback speed and/or pitch.

Additional information

As an additional but possibly related issue, when playing at 0.8x, the song stops playing before its end. The time at which it stops playing is also conveniently the time at which the song at 1.0x stops playing. Edit: I am unsure if this happens at other speeds and/or pitches; and to clarify, the audio literally stops before the end of the audio, with visual waveform also stopping before the end.

This and the speed/pitch delay issues have began happening right after Symfonium’s latest major update. Given that update is about the internal audio engine, I feel like the issues here might be related.

A log and screen/audio recording has been submitted with the following name/description "From iswearkdballin, log and screen recording for problem with delay when changing playback speed and pitch. "

I searched existing issues first

on

I understand that logs are mandatory

on

Log upload name / description

From iswearkdballin, log and screen recording for problem with delay when changing playback speed and pitch.

Just adding a little info for comparison:

For me (with local media), the change is not instant either but the delay I notice is not an issue. I am hearing only about one second from tapping the button to the speed change. (Just a short moment after the sliding animation ends.)

Does the song stop playing before the end of the actual audio? Or is it simply ending before the “current time” matches the “duration” of the track?

For me, it is the latter. The audio track always correctly plays to the end of the track. But the player progress doesn’t match the actual position in the track.

If you play a track from start to end at 3.0x… the player progress exceeds the duration by ~3x

(Correct track duration is 3:08, playback ended at ~9:08) :laughing:

But again: for me, this is a visual error only. The audio track plays correctly and the player correctly goes to the next track only once the audio has ended.

Hey, thanks for those questions. It made me realize I should be a bit more detailed. I can confirm the delay also happens with cloud media (I stream from Jellyfin). The delay is also about one or two seconds long, with some weird audio feedback.

And also, sometimes, not always, the song actually stops playing before the end of the actual audio, both literally and visually (the waveform is visibly not at the end of the audio, despite the little timer indicating the end of the audio).