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;