http://bugs.winehq.org/show_bug.cgi?id=18220
Summary: mWavEdit: midi sysex communication fails Product: Wine Version: 1.1.19 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winmm&mci AssignedTo: wine-bugs@winehq.org ReportedBy: ld0d@kolumbus.fi
Created an attachment (id=20726) --> (http://bugs.winehq.org/attachment.cgi?id=20726) Wine midi call trace log
The SoundTower Microwave Editor 4.0.1 (http://www.soundtower.com/microwave/mw2_files/mw2_page.htm) fails to communicate with the Microwave XT using midi sysex. I attached a log taken with WINEDEBUG=+midi,+winmm,+driver.
The interesting part seems to be: trace:midi:midPrepare (0003, 0x1570c10, 00000040); trace:winmm:MMDRV_Message => MMSYSERR_INVALPARAM
I also traced the code a bit, and it seems that mWavEdit calls midiInPrepareHeader with a buffer of size 70000 (>0x10000) which causes the MMSYSERR_INVALPARAM in midPrepare() (in dlls/winealsa.drv/midi.c). Now, I do not know why the buffer size is limited to 0x10000, but changing the limit to 0x20000 in all the three places in winealsa.drv/midi.c fixes the problem and mWavEdit works perfectly.
Can this be fixed in Wine, or should I contact the authors of the program?