X-Git-Url: https://git.sesse.net/?p=nageru;a=blobdiff_plain;f=audio_mixer.cpp;fp=audio_mixer.cpp;h=01fed687b47a8d2ae77a752896f925d11c176c37;hp=38d80c6bb4405e489e8e064ac49e749a19a9a0ba;hb=605ebde8d784157641733f8eddf31012227888ce;hpb=40639263a6782d2d515d7bd626a9e4ff6c1ea870 diff --git a/audio_mixer.cpp b/audio_mixer.cpp index 38d80c6..01fed68 100644 --- a/audio_mixer.cpp +++ b/audio_mixer.cpp @@ -227,7 +227,9 @@ void AudioMixer::reset_resampler_mutex_held(DeviceSpec device_spec) } else { // TODO: ResamplingQueue should probably take the full device spec. // (It's only used for console output, though.) - device->resampling_queue.reset(new ResamplingQueue(device_spec.index, device->capture_frequency, OUTPUT_FREQUENCY, device->interesting_channels.size())); + device->resampling_queue.reset(new ResamplingQueue( + device_spec.index, device->capture_frequency, OUTPUT_FREQUENCY, device->interesting_channels.size(), + global_flags.audio_queue_length_ms * 0.001)); } device->next_local_pts = 0; }