Francois Gouget
6a4347be37
winmm: Avoid a couple of unneeded lstrlenW() calls.
...
Note that since str is a buffer it cannot be NULL.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-16 22:58:42 +02:00
Michael Stefaniuc
24f4781216
winmm: 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-09-20 16:37:19 +02:00
Carlo Bramini
1cc27eba14
winmm: RegQueryValueExW wants the size in bytes, not the size in characters.
...
Signed-off-by: Carlo Bramini <carlo_bramini@users.sourceforge.net>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-14 22:46:58 +01:00
Aric Stewart
74471e857c
winmm: sndPlaySound can play resource sounds.
2015-04-02 14:03:35 +09:00
Akihiro Sagawa
563a4ff08b
winmm: Add .wav extension when searching for PlaySound.
2015-02-25 14:17:46 +09:00
Akihiro Sagawa
113a2abbc8
winmm: Fallback to SND_FILENAME if the alias isn't found in the profile.
2014-07-04 19:30:39 +02:00
Andrew Eikum
b1d9d43af7
winmm: Don't mask out SND_ALIAS_ID or SND_FILENAME in sndPlaySound.
2012-12-04 19:34:26 +01:00
Michael Stefaniuc
d94eaa3b20
winmm: Avoid TRUE FALSE conditional expressions.
2012-07-31 12:36:20 +02:00
Jörg Höhle
197607db2e
winmm: Allow new sounds to interrupt previous PlaySound invocations.
2012-02-16 18:51:56 +01:00
Jörg Höhle
e0dcc2cd7d
winmm: PlaySound concurrency cleanup.
2011-03-30 13:28:04 +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
ca37dbcfe6
winmm: Abort PlaySound in case of audio error.
2011-03-30 13:28:04 +02:00
Jörg Höhle
15ad749ece
Revert "winmm: Fix PlaySound so it doesn't block when another sound is already playing.".
...
This reverts commit f44bc89bc4
.
Let the player thread call waveOutReset itself instead.
2011-03-30 13:28:04 +02:00
Jörg Höhle
0a81f12ce1
winmm: PlaySound ignores SND_NOWAIT.
2011-01-14 18:26:20 +01:00
Maarten Lankhorst
b0337ada1a
winmm: Allow SND_ALIAS|SND_FILENAME in PlaySound.
2010-03-18 13:46:38 +01:00
Jörg Höhle
376f74b452
winmm: Require at least 16 bytes in the WAVE fmt header for PlaySound.
2009-10-05 15:01:04 +02:00
Alexandre Julliard
8f813fd4e4
winmm: Fix some Win64 pointer truncations issues.
2009-05-20 17:52:46 +02:00
Aric Stewart
7e8e9c41e9
winmm: SND_ALIAS and SND_ALIAS_ID overlap so when checking for SND_ALIAS_ID make sure it is SND_ALIAS_ID and not SND_ALIAS.
2009-04-02 16:28:30 +02:00
Aric Stewart
c08b0a0a9d
winmm: Properly cleanup in return from proc_PlaySound if system sound is not found.
...
Prevents hanging in Outlook 2000 on sound cleanup.
2009-04-02 16:28:30 +02:00
Eric Pouech
2dbc7d5c41
winmm: Added support for SND_ALIAS_ID in winmm.PlaySound[AW].
2009-03-30 14:20:48 +02:00
Michael Stefaniuc
8fde5bf807
winmm: Remove superfluous pointer casts.
2009-02-20 18:07:42 +01:00
Dan Kegel
a7a50e0315
winmm: Don't crash on PlaySound(... SND_ALIAS_ID).
2008-12-29 12:16:18 +01:00
Francois Gouget
633ee950a1
Assorted spelling fixes.
2008-05-07 12:07:11 +02:00
Vedran Rodic
f44bc89bc4
winmm: Fix PlaySound so it doesn't block when another sound is already playing.
2007-06-11 20:18:04 +02:00
Alexandre Julliard
1e178be862
winmm: Get rid of the WINE_MM_IDATA global structure, there's only one instance anyway.
2007-06-07 17:50:28 +02:00
Francois Gouget
aab5e5856e
Don't put single quotes around '%s' when using the debugstr_*() functions.
2007-01-18 12:55:50 +01:00
Andrew Talbot
529aa7de90
winmm: Cast-qual warnings fix.
2006-11-24 11:47:44 +01:00
Eric Pouech
2f540b8602
winmm: Remove WINE_NO_LONG_AS_INT.
2006-11-09 11:44:30 +01:00
Jonathan Ernst
360a3f9142
Update the address of the Free Software Foundation.
2006-05-23 14:11:13 +02:00
Francois Gouget
0edbaf7e80
Remove spaces before '\n' in traces.
2005-11-10 12:14:56 +00:00
Ulrich Czekalla
4e8ec876f0
Display fccType as hex instead of characters in trace output.
2005-09-09 10:05:02 +00:00
Mike McCormack
bda7ace2e9
Interlocked LONG* gcc warning fixes.
2005-07-13 11:59:15 +00:00
Mike McCormack
b2ba933fcf
Make multimedia threads high priority.
2005-04-27 09:39:55 +00:00
Mike McCormack
795b17e055
Make WINMM_IData statically allocated.
2005-04-27 08:12:58 +00:00
Michael Stefaniuc
5ad7d858e0
Do not check for non NULL pointer before HeapFree'ing it. It's
...
redundant.
2004-12-23 17:06:43 +00:00
Alexandre Julliard
b4e495574b
Authors: Eric Pouech <pouech-eric@wanadoo.fr>, Filip Navara <xnavara@volny.cz>
...
32 bit low level drivers now use a Unicode interface (used to be ANSI):
- Send the *_GETDEVCAPS messages in unicode format from the
*GetDevCapsW function and call the *GetDevCapsW from their respective
Ansi versions.
- Modify all low level drivers to correctly process the *_GETDEVCAPS
messages as unicode.
- *_GETDEVCAPS messages are now mapped from/to unicode for 16 bit code.
- Removed all SoundBlaster naming oldies.
Better use of some unicode functions (instead of Ansi) in winmm.
2004-12-06 20:55:25 +00:00
Eric Pouech
5c2a891c43
Made some functions and variables static.
2004-11-29 18:00:10 +00:00
Mike McCormack
8b0b70ab50
Fix PlaySound.
2004-06-14 16:55:33 +00:00
Eric Pouech
df93f2eeee
GetModuleFileName[AW] doesn't terminate the string if the buffer is
...
too small.
2004-05-19 03:22:55 +00:00
Francois Gouget
ebf0eb3138
Make static Unicode strings const.
2004-04-20 00:34:52 +00:00
Robert Reif
76659e9e9f
Fixed thread handle leaks.
2004-01-20 01:45:05 +00:00
Alexandre Julliard
e37c6e18d0
Fixed header dependencies to be fully compatible with the Windows
...
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Alexandre Julliard
43690e9e47
Removed no longer needed inclusion of heap.h.
2003-01-24 00:54:58 +00:00
Matthew Davison
60009b9a56
Removed calls to HEAP_strdupAtoW.
2003-01-23 23:07:38 +00:00
Eric Pouech
ac5de27d1c
winmm/mmsystem now compiles with -DSTRICT.
2002-10-31 01:02:41 +00:00
Eric Pouech
b4df16b3b2
All driver functions are now properly separated.
2002-10-29 21:51:24 +00:00
Eric Pouech
1e3e87d430
Simplify the global internal data handling.
2002-10-25 19:00:12 +00:00
Eric Pouech
57e6ba7009
Started putting all 16 bit code in separate files.
2002-10-10 03:43:53 +00:00