Skip to content

Commit 920f8d1

Browse files
committedMar 10, 2025··
Update midir doc
1 parent ac61853 commit 920f8d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎docs/notes/midir_precise_timing.md

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ I did not observe this in the previous test was because midir defaults the ALSA
1111

1212
~~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.~~
1313

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+
1416
---
1517

1618
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

Comments
 (0)
Please sign in to comment.