celtera / libremidi

A modern C++ MIDI 1 / MIDI 2 real-time & file I/O library. Supports Windows, macOS, Linux and WebMIDI.
Other
463 stars 51 forks source link

Message Queue Limit Reached #79

Closed brunorzn closed 1 year ago

brunorzn commented 1 year ago

Hi,

I need to fetch many MIDI messages at the same time.

I got the message: "midi_in: message queue limit reached!!"

How to bypass this ?

This is critical for my application: I'm building a MIDI controller and many midi messages are sent on the same time from the host to the controller to init the correct values.

Thanks,

Bruno

jcelerier commented 1 year ago

hi! how did you manage to solve this?

brunorzn commented 1 year ago

Hi,

I gave up and went back to rtMidi... Sorry

jcelerier commented 1 year ago

no worries. But were you using the latest version? as this message ("message queue limit reached!!") is only present in an example file (qmidiin.c) of an old way to use the API - the recommendation is to use callbacks instead and integrate with the message queue you likely already have in your application