From 9ab4ea4a0f7dddc088c74ec0ca542ffb42f1c81f Mon Sep 17 00:00:00 2001 From: Andrea Bondavalli Date: Fri, 17 Dec 2021 10:23:21 +0100 Subject: [PATCH] Fix for bondagit/aes67-linux-daemon#55 on the capture device At Sources and Sinks creation time the driver used the currently configured ALSA buffer sizes instead of the fixed ring buffer size to determine the Sources and Sinks buffer offsets. --- driver/manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/manager.c b/driver/manager.c index 51e130b..c35b8b9 100644 --- a/driver/manager.c +++ b/driver/manager.c @@ -1256,7 +1256,7 @@ void* get_live_in_jitter_buffer(void* user, uint32_t ulChannelId) { struct TManager* self = (struct TManager*)user; unsigned char* inputBuffer = nullptr; - uint32_t bufferLength = self->m_alsa_driver_frontend->get_capture_buffer_size_in_frames(self->m_pALSAChip); + uint32_t bufferLength = RINGBUFFERSIZE; inputBuffer = (unsigned char*)(self->m_alsa_driver_frontend->get_capture_buffer(self->m_pALSAChip)); if(inputBuffer == nullptr || ulChannelId >= self->m_NumberOfInputs)