Commit Graph

46 Commits

Author SHA1 Message Date
Brendan Shanks 1fc8a8f234 winecoreaudio.drv: Only read 'length' bytes from received MIDIPackets.
The Core MIDI MIDIPacket struct is declared with a 256-byte data array,
but this is just for convenience. There may be only one accessible byte,
or there may be more than 256.
Only read 'length' bytes from the packet, and correctly handle a
length > 256.

Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-09 20:15:11 +01:00
Michael Stefaniuc 2170cce2af winecoreaudio.drv: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-16 16:33:11 +01:00
Andrew Eikum 387fbdc7a1 winecoreaudio: Handle sysex MIDI messages.
Originally submitted by "tinez <tinez@tlen.pl>".

Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-11 19:39:23 +09:00
Ken Thomases 9a7993045e winecoreaudio: Fix a potential leak. (Clang). 2013-10-21 10:46:48 +02:00
Jörg Höhle b95910ccbc winmm: More compatible midiIn/Out[Un]Prepare MHDR_* flag handling. 2013-02-13 17:19:43 +01:00
Nikolay Sivov d05757d29a winecoreaudio: Fix variable types so pointer is not truncated on 64bit. 2012-08-21 11:46:03 +02:00
Francois Gouget fac36c55e9 Assorted typo, spelling, wording and case fixes. 2012-05-15 16:26:43 +02:00
Pierre Schweitzer 8975ad6e31 winecoreaudio.drv: Fix handle leak. 2012-01-03 12:37:36 +01:00
Francois Gouget cfce8ab459 winecoreaudio.drv: Give a name to the midi and mmdevapi critical sections. 2011-11-08 09:49:30 +01:00
Alexandre Julliard 41d9d0a2f3 winecoreaudio.drv: Remove unnecessary ifdefs. 2011-03-28 22:15:12 +02:00
Jörg Höhle a74c29e081 winecoreaudio: Fix 64-bits incompatibilities. 2011-03-14 13:13:17 +01:00
Jörg Höhle c0d6db3944 winecoreaudio: Do not access MIDIHDR past notification callback. 2011-03-14 13:12:16 +01:00
Michael Stefaniuc bf00cd3380 winecoreaudio.drv: Remove superfluous casts of zero. 2010-03-29 11:49:53 +02:00
Jörg Höhle 64b6287e83 winmm: Accept the ancient, smaller MIDIHDR. 2010-02-22 13:18:26 +01:00
Jörg Höhle 945588a302 winecoreaudio: Ignore failure to notify MIDI clients. 2010-02-05 13:14:45 +01:00
Jörg Höhle 9c8ce89bf0 winecoreaudio: MOD_MIDIPORT has 0 voices and notes and FFFF ChannelMask. 2010-02-03 15:49:32 +01:00
Jörg Höhle a758c6a981 winmm: The 64KB buffer limit on MIDIHDR buffers applies to streams only. 2010-02-03 15:49:09 +01:00
Jörg Höhle ffeef37be2 winecoreaudio: Fix a float cast in the computation of MIDI volume. 2010-02-02 11:47:20 +01:00
Ken Thomases 1b5ca01aeb winecoreaudio: Consolidate formatting of FOURCC values in a function. 2009-10-12 12:19:02 +02:00
Christian Costa d700042f05 winecoreaudio.drv: Initialize correctly the header before adding it to the queue. 2008-12-22 14:14:52 +01:00
Ken Thomases fa2d39e45f coreaudio: Standardize on DRV_SUCCESS/FAILURE status codes for setup functions. 2008-03-12 12:01:31 +01:00
Francois Gouget d0794c4aeb Assorted spelling fixes. 2008-01-23 21:16:22 +01:00
Emmanuel Maillard 6ccb663953 winecoreaudio: MIDIIn_MessageHandler: Fix non-SysEx messages parsing. 2007-07-13 14:43:23 +02:00
Emmanuel Maillard 622ee1c4cc winecoreaudio.drv: Implement MIDIOut_Data when device is a MOD_MIDIPORT.
Implement MIDIOut_Send.
2007-05-01 11:42:24 +02:00
Emmanuel Maillard dea9878c2d winecoreaudio.drv: Create only one MIDIOutPort and one MIDIInPort for all destinations and sources. 2007-05-01 11:42:24 +02:00
Emmanuel Maillard 41b8a570dc winecoreaudio.drv: MIDIIn_MessageHandler: Remove a TRACE and simplify skipping SysEx. 2007-05-01 11:42:24 +02:00
Francois Gouget 5a8fc34033 Assorted spelling fixes. 2007-04-30 12:35:11 +02:00
Emmanuel Maillard 9369c37a4c winecoreaudio: Handle non System Exclusive messages. 2007-04-30 12:19:12 +02:00
Alexandre Julliard b43167a4cf winecoreaudio: Avoid sizeof in trace. 2007-04-27 11:55:07 +02:00
Emmanuel Maillard 6ef7b129a9 winecoreaudio: Implement MIDIIn_Prepare and MIDIIn_Unprepare. 2007-04-27 11:17:45 +02:00
Emmanuel Maillard 8ca565b192 winecoreaudio: Implement MIDIIn_AddBuffer. 2007-04-27 11:15:49 +02:00
Emmanuel Maillard e8c083f9d5 winecoreaudio: Implement MIDIIn_Reset. 2007-04-27 11:15:38 +02:00
Emmanuel Maillard 0da11f99fd winecoreaudio: Implement MIDIIn_Start and MIDIIn_Stop. 2007-04-27 11:15:25 +02:00
Emmanuel Maillard 63bc986882 winecoreaudio: Implement MIDIIn_GetNumDevs and MIDIIn_GetDevCaps. 2007-04-27 11:15:11 +02:00
Emmanuel Maillard 3930b756eb winecoreaudio: Implement MIDIIn_Open and MIDIIn_Close. 2007-04-27 11:14:45 +02:00
Emmanuel Maillard efd18eed11 winecoreaudio: Add MIDI In messages in MIDI_NotifyClient. 2007-04-27 11:14:28 +02:00
Emmanuel Maillard 1a47f36cb9 winecoreaudio: Initial MIDI In Mach message handling. 2007-04-26 15:00:36 +02:00
Emmanuel Maillard 4903fbedc9 winecoreaudio: Initial MIDI In support on Mac OS X. 2007-04-26 14:59:46 +02:00
Emmanuel Maillard 0a202679b8 winecoreaudio: Implement MIDIOut_Reset. 2007-04-25 13:43:32 +02:00
Emmanuel Maillard 9aa9cde841 winecoreaudio: Implement MIDIOut_GetVolume and MIDIOut_SetVolume. 2007-04-25 13:43:05 +02:00
Emmanuel Maillard 97d5a02987 winecoreaudio: Implement MIDIOut_LongData. 2007-04-25 13:42:32 +02:00
Emmanuel Maillard 8f03804b8b winecoreaudio: Implement MIDIOut_Data. 2007-04-25 13:40:36 +02:00
Emmanuel Maillard d250fc2b13 winecoreaudio: Implement MIDIOut_Prepare and MIDIOut_Unprepare. 2007-04-25 13:38:45 +02:00
Emmanuel Maillard 0f7a3a32ee winecoreaudio: Implement MIDIOut_GetDevCaps and MIDIOut_GetNumDevs. 2007-04-25 13:38:45 +02:00
Emmanuel Maillard 483c695362 winecoreaudio: Implement MIDI_NotifyClient, MIDIOut_Open and MIDIOut_Close. 2007-04-25 13:38:45 +02:00
Emmanuel Maillard 7ad29c8bb7 winecoreaudio: Initial MIDI support on Mac OS X. 2007-04-25 13:37:26 +02:00