Pittvandewitt / Wavelet

A quick rundown on each feature and its settings
https://pittvandewitt.github.io/Wavelet/
650 stars 35 forks source link

Sudden loud sound when resuming playback in e.g. Spotify #248

Open thinslice opened 1 year ago

thinslice commented 1 year ago

Expected behavior: Resuming playback (by starting the playback of a different song in Spotify) doesn't cause any additional sound other than the song itself.

Actual behavior: There is a loud sound (the old contents of the audio buffer as I hear) played back when this happens.

Steps: Enable Wavelet. Start Spotify. Start a song and then stop at a louder part. Wait a few seconds, then press the "next song" button or start an entirely different song.

Wavelet settings: Legacy mode: yes. Buffer size: 8192 samples AutoEq: on Limiter: on Channel balance: on

Android: I am using Android 10 (MIUI).

Notes: The issue is quite annoying, I am scared to death almost every time I resume playback. It consistently happens with Wavelet enabled and doesn't with Wavelet disabled.

thinslice commented 1 year ago

How about clearing the buffer (writing all 0's) when the playback stops or the audio device is suspended? I had the same phenomenon on my computer running Linux and fixed it by disabling the "suspend on idle" feature. More info: https://wiki.archlinux.org/title/PulseAudio/Troubleshooting

~/.config/pulse/default.pa
.nofail
unload-module module-suspend-on-idle
.fail
Pittvandewitt commented 1 year ago

Could you report if the issue is resolved in the latest update?

thinslice commented 10 months ago

Sorry for the slow reply. I tried with the latest version now (Version 23.09, released on Sep 27, 2023). Maybe it's a little better now but it could be just placebo. I can still consistently reproduce that a split second of the last played song is audible when I start another track after a bit of a silence. If Wavelet is turned off, it doesn't happen. I am using Android 10 (MIUI), I'll add this to the original post.