Skip to content

Commit

Permalink
fixup! Migrate audio pipeline to float from 16-bit int
Browse files Browse the repository at this point in the history
  • Loading branch information
ns6089 committed Jul 17, 2024
1 parent 9945e02 commit 9b9dc54
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/platform/linux/audio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,8 @@ namespace platf {
});

pa_buffer_attr pa_attr = {};

// Unsure about this one, but previous value of "frame_size * 8" made
// no sense even for 16-bit capture.
pa_attr.maxlength = frame_size * channels * sizeof(float);
pa_attr.fragsize = frame_size * channels * sizeof(float);
pa_attr.maxlength = pa_attr.fragsize * 2;

int status;

Expand Down

0 comments on commit 9b9dc54

Please sign in to comment.