Using native audio backend without SDL backend installed causes noticable delay
huantianad opened this issue · 0 comments
huantianad commented
I created a quick test app using brick
that simply toggles the playing state of an audio file whenever you push a key. https://github.com/huantianad/proteaaudio-test
When I run this app either
- importing the SDL backend (
import Sound.ProteaAudio.SDL
) - importing the native backend (
import Sound.ProteaAudio
) whileproteaaudio-sdl
is included in my cabal build-depends
the music play/pauses basically immediately when I push a key.
However, if I import the native backed, and don't include proteaaudio-sdl
in my build-depends, there's a small delay between pushing a key and the music pausing.
Is this because the native backend has some sort of delay, and including proteaaudio-sdl
in my build-depends is somehow causing my program to use the SDL backend instead?
Linux kernel 6.6.1, Pipewire 0.3.84.