From 0a67524cd3c301010f74aaebfa25c2ea2b223bb3 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Tue, 22 Apr 2025 13:55:41 +0200 Subject: [PATCH] fix further issue --- io/audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/audio.c b/io/audio.c index dadeeb5..3c613a5 100644 --- a/io/audio.c +++ b/io/audio.c @@ -100,7 +100,7 @@ int init_PulseOutputDevice(PulseOutputDevice* dev, int sample_rate, int channels int write_PulseOutputDevice(PulseOutputDevice* dev, float* buffer, size_t size) { if (!dev->initialized) return -1; int error; - if (pa_simple_write(dev->dev, buffer, size * sizeof(float), &error) < 0) return error; + if (pa_simple_write(dev->dev, buffer, size, &error) < 0) return error; return 0; }