hinto-janai / festival

Music player
https://festival.pm
MIT License
273 stars 5 forks source link

audio: tighten decode loop #73

Closed hinto-janai closed 11 months ago

hinto-janai commented 11 months 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.