Skip to content

Commit

Permalink
Fix for bondagit/aes67-linux-daemon#55 on the capture device
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bondagit committed Dec 17, 2021
1 parent a518d77 commit 9ab4ea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver/manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9ab4ea4

Please sign in to comment.