mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
This commit is contained in:
parent
10ab2e8512
commit
f85b7aced5
1 changed files with 7 additions and 7 deletions
|
|
@ -308,18 +308,18 @@ private:
|
|||
|
||||
static void CALLBACK midiInCallback (HMIDIIN,
|
||||
UINT uMsg,
|
||||
DWORD dwInstance,
|
||||
DWORD midiMessage,
|
||||
DWORD timeStamp)
|
||||
DWORD_PTR dwInstance,
|
||||
DWORD_PTR midiMessage,
|
||||
DWORD_PTR timeStamp)
|
||||
{
|
||||
MidiInThread* const thread = (MidiInThread*) dwInstance;
|
||||
|
||||
if (thread != 0 && activeMidiThreads.contains (thread))
|
||||
{
|
||||
if (uMsg == MIM_DATA)
|
||||
thread->handle (midiMessage, timeStamp);
|
||||
thread->handle ((uint32) midiMessage, (uint32) timeStamp);
|
||||
else if (uMsg == MIM_LONGDATA)
|
||||
thread->handleSysEx ((MIDIHDR*) midiMessage, timeStamp);
|
||||
thread->handleSysEx ((MIDIHDR*) midiMessage, (uint32) timeStamp);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue