Skip to content

Coremidi#86

Merged
coelckers merged 3 commits intoZDoom:masterfrom
johncurley:coremidi
Nov 24, 2025
Merged

Coremidi#86
coelckers merged 3 commits intoZDoom:masterfrom
johncurley:coremidi

Conversation

@johncurley
Copy link
Contributor

I've replaced the 10us sleep with AudioGetCurrentHostTime() for host midi scheduling as per suggestion.

Refactored music_coremidi_mididevice.mm to leverage CoreMIDI's
timestamp-based scheduling for improved timing accuracy.

Changes include:
- Replaced client-side timing logic with CoreMIDI's host time.
- Updated PlayTick to calculate and use future MIDITimeStamp for events.
- Refactored PlayerLoop to use a condition variable for synchronization
  instead of busy-waiting with usleep.
@coelckers coelckers merged commit 59101ab into ZDoom:master Nov 24, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants