From 88a913b2e7b3b5fff2fafd60daf1513561041fda Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Fri, 31 Jan 2025 17:48:35 +0100 Subject: [PATCH] fix? --- src/fm95.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fm95.c b/src/fm95.c index 2a77094..a983425 100644 --- a/src/fm95.c +++ b/src/fm95.c @@ -400,7 +400,8 @@ int main(int argc, char **argv) { if(strlen(audio_sca_device) != 0) pa_simple_free(sca_device); return 1; } - snd_pcm_uframes_t frames = BUFFER_SIZE; + snd_pcm_uframes_t frames; + snd_pcm_hw_params_get_period_size_min(output_params, &frames, &dir); snd_pcm_hw_params_set_period_size_near(output_handle, output_params, &frames, &dir); // i don't have a clue why like this output_error = snd_pcm_hw_params(output_handle, output_params); if(output_error < 0) {