Skip to content

Commit

Permalink
fix(linux/audio): don't set pulseaudio buffer size (LizardByte#2999)
Browse files Browse the repository at this point in the history
  • Loading branch information
ns6089 authored and KuleRucket committed Oct 9, 2024
1 parent b29c343 commit 8cd0de5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/platform/linux/audio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,13 @@ namespace platf {
channel = position_mapping[*mapping++];
});

pa_buffer_attr pa_attr = {};
pa_attr.fragsize = frame_size * channels * sizeof(float);
pa_attr.maxlength = pa_attr.fragsize * 2;
pa_buffer_attr pa_attr = {
.maxlength = uint32_t(-1),
.tlength = uint32_t(-1),
.prebuf = uint32_t(-1),
.minreq = uint32_t(-1),
.fragsize = uint32_t(frame_size * channels * sizeof(float))
};

int status;

Expand Down

0 comments on commit 8cd0de5

Please sign in to comment.