mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-22 05:40:27 +00:00
Added low-latency-audio=ultra
This commit is contained in:
@@ -683,7 +683,7 @@ static void *audio_receiver_thread(void *arg)
|
||||
dec_state = (struct audio_decoder *) calloc(1, sizeof(struct audio_decoder));
|
||||
|
||||
if (get_commandline_param("low-latency-audio")) {
|
||||
pbuf_set_playout_delay(cp->playout_buffer, 0.005);
|
||||
pbuf_set_playout_delay(cp->playout_buffer, strcmp(get_commandline_param("low-latency-audio"), "ultra") == 0 ? 0.001 :0.005);
|
||||
}
|
||||
assert(dec_state != NULL);
|
||||
cp->decoder_state = dec_state;
|
||||
|
||||
@@ -541,8 +541,9 @@ ADD_TO_PARAM("audio-cap-frames", "* audio-cap-frames=<f>\n"
|
||||
" Sets number of audio frames captured at once (CoreAudio)\n");
|
||||
ADD_TO_PARAM("audio-disable-adaptive-buffer", "* audio-disable-adaptive-buffer\n"
|
||||
" Disables audio adaptive playback buffer (CoreAudio/JACK)\n");
|
||||
ADD_TO_PARAM("low-latency-audio", "* low-latency-audio\n"
|
||||
" Try to reduce audio latency at the expense of worse reliability\n");
|
||||
ADD_TO_PARAM("low-latency-audio", "* low-latency-audio[=ultra]\n"
|
||||
" Try to reduce audio latency at the expense of worse reliability\n"
|
||||
" Add ultra for even more aggressive setting.\n");
|
||||
ADD_TO_PARAM("window-title", "* window-title=<title>\n"
|
||||
" Use alternative window title (SDL/GL only)\n");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user