From ddac6acaf2781ea9368dc5a59fdb009a6e2736a8 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 11 Apr 2024 18:46:34 +0200 Subject: Fix messed up audio on some distros (those using pulseaudio?) --- include/sound.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include') diff --git a/include/sound.hpp b/include/sound.hpp index 32821bc..731e787 100644 --- a/include/sound.hpp +++ b/include/sound.hpp @@ -24,7 +24,6 @@ typedef struct { void *handle; unsigned int frames; - double latency_seconds; } SoundDevice; struct AudioInput { @@ -54,7 +53,7 @@ void sound_device_close(SoundDevice *device); /* Returns the next chunk of audio into @buffer. - Returns the number of bytes read, or a negative value on failure. + Returns the number of frames read, or a negative value on failure. */ int sound_device_read_next_chunk(SoundDevice *device, void **buffer, double timeout_sec); -- cgit v1.2.3