mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:27:43 +00:00
AudioServer: Reduce hardware audio buffer to 512 samples
This commit is contained in:
parent
1c23a222b2
commit
ef1c97e3d8
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ namespace AudioServer {
|
|||
// This is to prevent clipping when two streams with low headroom (e.g. normalized & compressed) are playing.
|
||||
constexpr double SAMPLE_HEADROOM = 0.95;
|
||||
// The size of the buffer in samples that the hardware receives through write() calls to the audio device.
|
||||
constexpr size_t HARDWARE_BUFFER_SIZE = 1024;
|
||||
constexpr size_t HARDWARE_BUFFER_SIZE = 512;
|
||||
// The hardware buffer size in bytes; there's two channels of 16-bit samples.
|
||||
constexpr size_t HARDWARE_BUFFER_SIZE_BYTES = HARDWARE_BUFFER_SIZE * 2 * sizeof(i16);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue