1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 12:07:45 +00:00
serenity/Userland/Libraries/LibAudio
Nick Miller 34a3d08e65 LibAudio: Sleep less when the audio buffer is full
When using `aplay` to play audio files with a sample rate of 96000,
there were occasional one-second gaps in playback. This is
because the Audio::ClientConnection sleeps for a full second when
the audio buffer is full.

One second is too long to sleep, especially for high-bitrate files.
Changing the sleep to a more reasonable value like 100 ms ensures
we attempt to enqueue again before the audio buffer runs empty.
2021-06-21 03:13:59 +04:30
..
Buffer.cpp LibAudio: Support 32 and 64-bit float WAV files 2021-04-26 19:08:40 +02:00
Buffer.h LibAudio: Support 32 and 64-bit float WAV files 2021-04-26 19:08:40 +02:00
ClientConnection.cpp LibAudio: Sleep less when the audio buffer is full 2021-06-21 03:13:59 +04:30
ClientConnection.h Userland: Mark subclasses of IPC::{Client,Server}Connection final 2021-05-23 09:53:55 +02:00
CMakeLists.txt Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Loader.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Loader.h LibAudio: Avoid reading past the end of sample data 2021-06-21 03:13:59 +04:30
WavLoader.cpp LibAudio: Avoid reading past the end of sample data 2021-06-21 03:13:59 +04:30
WavLoader.h LibAudio: Make Loader::seek() treat its input as a sample index 2021-06-09 17:30:08 +04:30
WavWriter.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
WavWriter.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00