]> git.sesse.net Git - nageru/blobdiff - audio_mixer.cpp
Make the resampling audio queue length adjustable with a flag.
[nageru] / audio_mixer.cpp
index 38d80c6bb4405e489e8e064ac49e749a19a9a0ba..01fed687b47a8d2ae77a752896f925d11c176c37 100644 (file)
@@ -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;
 }