From 25b540e0eea9270fbfe3937dbacfe70a1c6d8b8d Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Mon, 30 Mar 2020 14:53:49 -0400 Subject: [PATCH] Switch RtAudio to my own fork. Tweak StreamOptions in RtAudio driver. --- .gitmodules | 2 +- dep/rtaudio | 2 +- src/rtaudio.cpp | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitmodules b/.gitmodules index 1d1633c1..71eaa33d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -16,7 +16,7 @@ ignore = untracked [submodule "dep/rtaudio"] path = dep/rtaudio - url = https://github.com/thestk/rtaudio.git + url = https://github.com/AndrewBelt/rtaudio.git ignore = untracked [submodule "dep/glfw"] path = dep/glfw diff --git a/dep/rtaudio b/dep/rtaudio index d27f257b..8a2243cd 160000 --- a/dep/rtaudio +++ b/dep/rtaudio @@ -1 +1 @@ -Subproject commit d27f257b4bc827e4152cdc4d69a2e22084204afd +Subproject commit 8a2243cd21a67818ac9428d0942332467af4ab40 diff --git a/src/rtaudio.cpp b/src/rtaudio.cpp index b26774a0..e7d983ca 100644 --- a/src/rtaudio.cpp +++ b/src/rtaudio.cpp @@ -71,6 +71,9 @@ struct RtAudioDevice : audio::Device { options = RtAudio::StreamOptions(); options.flags |= RTAUDIO_JACK_DONT_CONNECT; + options.flags |= RTAUDIO_MINIMIZE_LATENCY; + options.flags |= RTAUDIO_SCHEDULE_REALTIME; + options.numberOfBuffers = 2; options.streamName = "VCV Rack"; int closestSampleRate = deviceInfo.preferredSampleRate;