diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-04-14 02:57:36 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-04-14 02:57:36 +0200 |
commit | 4dd2a560ee28c7fe558d5b283e03d2e9ca027f03 (patch) | |
tree | c095e68c630097ec8daab5a111d2a5fe4d76f98b /src | |
parent | 34210f6028edcb1ea40eed351d2575a67a2df1c4 (diff) |
shit
Diffstat (limited to 'src')
-rw-r--r-- | src/sound.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sound.cpp b/src/sound.cpp index 1d01d32..713e06f 100644 --- a/src/sound.cpp +++ b/src/sound.cpp @@ -256,7 +256,7 @@ int sound_device_get_by_name(SoundDevice *device, const char *device_name, const buffer_attr.tlength = -1; buffer_attr.prebuf = -1; buffer_attr.minreq = buffer_attr.fragsize; - buffer_attr.maxlength = -1; + buffer_attr.maxlength = buffer_attr.fragsize; int error = 0; pa_handle *handle = pa_sound_device_new(nullptr, description, device_name, description, &ss, &buffer_attr, &error); |