Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify select drivers to pass system realtime messages #1115

Merged
merged 4 commits into from
Jun 11, 2022
Merged

Modify select drivers to pass system realtime messages #1115

merged 4 commits into from
Jun 11, 2022

Conversation

albedozero
Copy link
Contributor

FluidSynth's various MIDI drivers don't appear to pass along system realtime messages (i.e. MIDI clock, start, stop, etc.) to the driver's handler/callback. These messages could be useful if, for example, the user writes a custom callback that can use these messages to synchronize a fluid_sequencer to an external clock.

This pull modifies the alsa_seq and winmidi drivers, as well as any that use fluid_midi_parser_parse, to pass along system realtime messages (status byte F8-FF) to the callback. I don't think it will cause problems further down the chain, since fluid_midi_router_handle_midi_event will just return them as NULL. This behavior could be added to other drivers in future if desired.

@albedozero
Copy link
Contributor Author

re-creating this PR with 2.2.x as the base per comments in #1113

@sonarcloud
Copy link

sonarcloud bot commented Jun 11, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Copy link
Member

@derselbst derselbst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I've just formatted it a bit.

@derselbst derselbst merged commit 41f00ec into FluidSynth:2.2.x Jun 11, 2022
@albedozero albedozero deleted the system_realtime branch June 27, 2022 17:53
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