0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-26 19:23:51 +01:00

fix the segfault

This commit is contained in:
2025-04-22 13:50:52 +02:00
parent 72cea9622b
commit 3bdbdace48

View File

@@ -44,7 +44,7 @@ int init_PulseInputDevice(PulseInputDevice* dev, int sample_rate, int channels,
int read_PulseInputDevice(PulseInputDevice* dev, float* buffer, size_t size) {
if (!dev->initialized) return -1;
int error;
if (pa_simple_read(dev->dev, buffer, size * sizeof(float), &error) < 0) return error;
if (pa_simple_read(dev->dev, buffer, size, &error) < 0) return error;
return 0;
}