aboutsummaryrefslogtreecommitdiff
path: root/include/sound.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/sound.hpp')
-rw-r--r--include/sound.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/sound.hpp b/include/sound.hpp
index 6873e90..32821bc 100644
--- a/include/sound.hpp
+++ b/include/sound.hpp
@@ -24,6 +24,7 @@
typedef struct {
void *handle;
unsigned int frames;
+ double latency_seconds;
} SoundDevice;
struct AudioInput {
@@ -53,9 +54,9 @@ void sound_device_close(SoundDevice *device);
/*
Returns the next chunk of audio into @buffer.
- Returns the number of frames read, or a negative value on failure.
+ Returns the number of bytes read, or a negative value on failure.
*/
-int sound_device_read_next_chunk(SoundDevice *device, void **buffer);
+int sound_device_read_next_chunk(SoundDevice *device, void **buffer, double timeout_sec);
std::vector<AudioInput> get_pulseaudio_inputs();