Browse Source

Disable RTAUDIO_MINIMIZE_LATENCY in RtAudio driver.

tags/v2.0.0
Andrew Belt 4 years ago
parent
commit
ae85cb4e9b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/rtaudio.cpp

+ 2
- 2
src/rtaudio.cpp View File

@@ -68,7 +68,7 @@ struct RtAudioDevice : audio::Device {
outputParameters.firstChannel = 0;

options = RtAudio::StreamOptions();
options.flags |= RTAUDIO_MINIMIZE_LATENCY;
// options.flags |= RTAUDIO_MINIMIZE_LATENCY;
options.flags |= RTAUDIO_SCHEDULE_REALTIME;
options.numberOfBuffers = 2;
options.streamName = "VCV Rack";
@@ -87,7 +87,7 @@ struct RtAudioDevice : audio::Device {
blockSize = 256;
}

INFO("Opening audio RtAudio device %d with %d in %d out", deviceId, inputParameters.nChannels, outputParameters.nChannels);
INFO("Opening audio RtAudio device %d with %d in %d out, %d sample rate %d block size", deviceId, inputParameters.nChannels, outputParameters.nChannels, closestSampleRate, blockSize);
try {
rtAudio->openStream(
outputParameters.nChannels > 0 ? &outputParameters : NULL,


Loading…
Cancel
Save