Skip to content

Commit

Permalink
Set audiobridge minimum jitter buffer size in timestamp units
Browse files Browse the repository at this point in the history
  • Loading branch information
atoppi committed Jan 8, 2024
1 parent 15ef4d6 commit 26e1f62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/janus_audiobridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -6492,7 +6492,7 @@ static void *janus_audiobridge_handler(void *data) {
participant->display = NULL;
participant->jitter = jitter_buffer_init(participant->codec == JANUS_AUDIOCODEC_OPUS ? 960 : 160);
jitter_buffer_ctl(participant->jitter, JITTER_BUFFER_SET_DESTROY_CALLBACK, &janus_audiobridge_buffer_packet_destroy);
spx_int32_t min_buffer_size = JITTER_BUFFER_MIN_PACKETS;
spx_int32_t min_buffer_size = participant->codec == JANUS_AUDIOCODEC_OPUS ? (JITTER_BUFFER_MIN_PACKETS * 960) : (JITTER_BUFFER_MIN_PACKETS * 160);
jitter_buffer_ctl(participant->jitter, JITTER_BUFFER_SET_MARGIN, &min_buffer_size);
participant->inbuf = NULL;
participant->outbuf = NULL;
Expand Down

0 comments on commit 26e1f62

Please sign in to comment.