hinto-janai / festival

Music player
https://festival.pm
MIT License
279 stars 7 forks source link

audio: tighten decode loop #73

Closed hinto-janai closed 1 year ago

hinto-janai commented 1 year ago

This lowers the amount of leeway Audio has in the decode loop for things that are not decoding/playback.

It will sleep/recv for less time, giving a bit more leeway for audio samples to be processed.

The audio device/server buffer has also been lowered from 50ms -> 25ms. This makes pausing (which implicitly flush()'s) a faster operation as there are less samples to flush.