You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/notes/midir_precise_timing.md
+2
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,8 @@ I did not observe this in the previous test was because midir defaults the ALSA
11
11
12
12
~~However, I tested using the `test_play.rs` example in the midir repo, and even with a buffer size of 2048 the notes match their expected play time pretty well. Maybe I need to decrease sample rate as well.~~
13
13
14
+
Update 2025/03/10: It turns out that even the original C++ library [RtMidi](https://github.com/thestk/rtmidi) which this repo is based off of has the exact same issue. The code does look similar after all, although I don't really know C++. Similarly, the ALSA implementation in RtMidi also works perfectly.
15
+
14
16
---
15
17
16
18
You've hit upon a critical point regarding real-time audio and MIDI processing in JACK, and your concerns about std::thread::sleep are absolutely valid.
0 commit comments