Nikolay Sivov
a360cc47d5
winmm: For consistency forward wReserved1 values from -W to -A calls too.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-25 13:22:38 +09:00
Nikolay Sivov
349f834976
winmm: Initialize AUXCAPSA.wReserved1 returned from auxGetDevCapsA() (Coverity).
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-16 17:14:18 +09:00
Francois Gouget
c1de3cc5d4
winmm: Remove unneeded NONAMELESSSTRUCT directives.
2015-04-01 14:13:20 +09:00
Jörg Höhle
f67bc43e22
winmm: Handle GetTickCount overflow in MIDI player.
2013-02-14 17:37:14 +01:00
Jörg Höhle
b95910ccbc
winmm: More compatible midiIn/Out[Un]Prepare MHDR_* flag handling.
2013-02-13 17:19:43 +01:00
André Hentschel
126fded4a4
winmm: Mark up fallthrough switch case (coverity).
2012-11-08 15:37:51 +01:00
Francois Gouget
fac36c55e9
Assorted typo, spelling, wording and case fixes.
2012-05-15 16:26:43 +02:00
Andrew Eikum
47332210dd
winmm: Don't call MMDevAPI during process exit.
2012-05-11 15:39:21 +02:00
Jörg Höhle
21e47e905e
winmm: Make midiStream* messages asynchronous to avoid deadlocks.
2012-02-17 18:06:51 +01:00
Jörg Höhle
1b11576005
winmm: Avoid using SuspendThread, it can hang Wine.
2012-02-17 18:06:50 +01:00
Francois Gouget
814c854fd2
winmm: Give a name to the critical sections, make them static and delete them when unloading the dll.
2011-11-15 19:37:36 +01:00
Akihiro Sagawa
203d06d410
winmm: Add support for MEVT_LONGMSG.
2011-09-08 20:08:06 +02:00
Andrew Eikum
be158e48ad
winmm: Implement waveOut* on top of MMDevAPI.
2011-07-12 11:49:21 +02:00
Andrew Eikum
a700f9e0fc
winmm: Pull wave and mixer functions into their own source file.
2011-06-29 10:24:04 -05:00
Jörg Höhle
c3774b664a
winmm: Check callback flags prior to opening a driver.
2011-04-04 14:42:12 +02:00
Jörg Höhle
a0dbd846c6
winmm: Get rid of psStopEvent which was never used like an event.
2011-03-30 13:28:04 +02:00
Jörg Höhle
c89853ebe5
winmm: More MIDI boundary tests & fixes.
2010-05-19 11:17:27 +02:00
Maarten Lankhorst
4f4dd855c4
winmm: Defer loading drivers until they are requested.
2010-04-01 18:12:40 +02:00
Francois Gouget
3428b94a8d
Assorted spelling and case fixes.
2010-03-22 10:49:13 +01:00
Jörg Höhle
64b6287e83
winmm: Accept the ancient, smaller MIDIHDR.
2010-02-22 13:18:26 +01:00
Jörg Höhle
a8f1d2eb2f
winmm: MIDIHDR.dwOffset is set with MEVT_F_CALLBACK only.
...
At the same time, the change to the player loop prevents a buffer
overshoot and a (perhaps unlikely) program trace where a sequence
Suspend; Stop; midiStreamOut could send MOM_DONE twice and access
memory possibly released within a MOM_DONE DCB_FUNCTION callback.
2010-02-22 13:17:26 +01:00
Jörg Höhle
63d0aeeafa
winmm: Do not access MIDIHDR past MOM_DONE DriverCallback.
2010-02-22 13:17:04 +01:00
Jörg Höhle
a956086e18
winmm: dwBytesRecorded controls how much is played, not dwBufferLength.
2010-02-19 15:10:29 +01:00
Jörg Höhle
67124e1c0b
winmm: Improve initial MIDI player thread synchronisation.
2010-02-11 14:38:45 +01:00
Jörg Höhle
7bd6be0706
winmm: Fix incorrect memory useage (Valgrind w/ MIDI tests).
2010-02-11 14:38:44 +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
bc76916b90
winmm: Reset MIDIHDR flags prior to return from midiStreamOut.
2010-02-02 12:00:07 +01:00
Jörg Höhle
b0d2f77cc9
winmm: Have xyzGetDevCaps return MMSYSERR_BADDEVICEID, not INVALHANDLE.
2010-02-02 11:47:19 +01:00
Jörg Höhle
06d6dd3e72
winmm: Perform stricter MIDI-related error checking.
2010-02-01 15:39:28 +01:00
Jörg Höhle
f1373d57c1
winmm: midiStreamPosition can select an alternative MMTIME format.
2010-02-01 14:11:04 +01:00
Jörg Höhle
9fac9d8ffd
winmm: Fix MIDI resource leaks.
2010-01-28 11:10:19 +01:00
Eric Pouech
37afecb883
winmm: A couple of simple fixes for winmm compilation on 64bit platforms.
2010-01-25 12:51:31 +01:00
Alexandre Julliard
18a7655234
winmm: Avoid using ReleaseThunkLock from 32-bit code.
2009-12-24 12:29:24 +01:00
Henri Verbeet
4adefb689a
winmm: Use wine_dbg_sprintf() in a few debug utility functions.
2009-11-30 12:49:30 +01:00
Francois Gouget
6f643290cf
winmm: WINMM_CheckForMMSystem() is not used, remove it.
2009-11-09 19:41:29 +01:00
Eric Pouech
14a68405d3
winmm: Simply use kernel32.{Release|Restore}ThunkLock instead of using 16bit convolutions.
2009-10-23 12:14:46 +02:00
Eric Pouech
69c963c3d1
winmm: Get rid of the bFrom32 parameter in MMDRV_Alloc and MMDRV_Message.
2009-10-23 12:14:22 +02:00
Eric Pouech
32c170344a
winmm: Move the 16bit management of wave out driver type to the new 16=>32 thunking scheme.
2009-10-23 12:14:15 +02:00
Eric Pouech
2d235de320
winmm: Move the 16bit management of midi stream (for midi out driver type) to the new 16=>32 thunking scheme.
2009-10-23 12:14:01 +02:00
Eric Pouech
80b079e011
winmm: Move the 16bit management of midi out driver type to the new 16=>32 thunking scheme.
2009-10-23 12:13:55 +02:00
Eric Pouech
84efa19e90
winmm: Move the 16bit management of midi in driver type to the new 16=>32 thunking scheme.
2009-10-23 12:13:47 +02:00
Eric Pouech
8aa64672de
winmm: Move the 16bit management of mixer driver type to the new 16=>32 thunking scheme.
2009-10-23 12:13:40 +02:00
Eric Pouech
09a9c87d6b
mmsystem: Cleanly separate MCI in MMSystem from WinMM code.
2009-10-19 11:38:34 +02:00
Alexandre Julliard
8f813fd4e4
winmm: Fix some Win64 pointer truncations issues.
2009-05-20 17:52:46 +02:00
Michael Stefaniuc
8fde5bf807
winmm: Remove superfluous pointer casts.
2009-02-20 18:07:42 +01:00
Michael Stefaniuc
3415f7788c
include: Change some DWORD to DWORD_PTR in mmddk.h.
...
This matches the DDK and removes 14 Win64 compile warnings.
2009-02-04 12:26:05 +01:00
Andrew Nguyen
0135bf8a0c
winmm: mixerOpen should return success with NULL dwCallback and CALLBACK_WINDOW flag.
2008-12-22 13:43:56 +01:00
Christian Costa
48b459afff
winmm: Implement stub for midiConnect and midiDisconnect.
2008-08-18 17:15:56 +02:00
Huw Davies
5798b95a51
winmm: Only fill in the MIXERLINEA struct if the call to mixerGetLineInfoW succeeds.
2008-07-18 13:41:19 +02:00
Lei Zhang
d20f982433
winmm: Do not unload drivers when the process is terminating.
2008-04-29 14:57:30 +02:00