Commit Graph

48 Commits (819565be210843c51934e89a7d8e82b87b044220)

Author SHA1 Message Date
Francois Gouget 4aa6418d51 Assorted spelling fixes. 2006-02-24 21:10:03 +01:00
Dmitry Timoshkov 8140d66c47 Fix all drivers DriverProc to conform to the DRIVERPROC definition. 2005-11-28 20:53:22 +01:00
Robert Reif 014ab5e249 Only convert bits per sample between different encoding formats. 2005-11-16 11:22:06 +00:00
Mike McCormack 6dc69f5f54 Fix gcc 4.0 warnings. 2005-09-02 12:26:21 +00:00
Robert Reif da9c394f67 Stub out DRVM_MAPPER_RECONFIGURE support. 2005-04-12 10:14:57 +00:00
Robert Reif c002dfc005 Correctly handle where waveOutGetPosition changes timepos.wType
because the requested type is not supported.
Added Jeremy White's waveOutGetPosition fix to waveInGetPosition.
2005-04-11 12:49:04 +00:00
Robert Reif 8b55b76daf Fix memory leak in error path. 2005-03-15 15:39:03 +00:00
Jeremy White 36e845ce05 Aggressively round up to the proper alignment when reporting position
on streams where we are converting up.
2005-03-02 12:17:28 +00:00
Jeremy White 15ec2780ef When we are converting from one sample rate to another, we do have to
adjust when calculating TIME_SAMPLES.
2005-02-23 12:42:32 +00:00
Robert Reif 6ca75f8bb7 Return actual result on error. 2004-12-20 17:09:12 +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
Robert Reif c710121132 Don't try to find alternate formats for non PCM formats. 2004-08-19 01:07:49 +00:00
Robert Reif a9d5f0829a Added tracing to all functions.
Added error explanations.
Changed debug channel from msacm to wavemap so not confused with
msacm.
2004-06-14 17:55:03 +00:00
Robert Reif a7e8f6f3a2 Handle case where partial structure update requested.
Minor white space cleanup.
2004-06-04 17:57:40 +00:00
Robert Reif 0f939fc9b5 Returns proper error code when trying to get caps when no devices
present.
2004-06-01 20:19:30 +00:00
Robert Reif c75c2668f2 Fixed a bug where wrong a return value was returned when mapping is
not possible.
2004-06-01 19:41:18 +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
Eric Pouech 639db3ef8b Stop wavemap lookup if a device isn't functional (spotted by Lionel
Ulmer).
2003-05-11 03:30:51 +00:00
Eric Pouech 8e90c68d56 Fixed error code when no mapping is found for wave input. 2003-03-10 19:03:08 +00:00
Robert Reif 4c9e56b163 Added additional formats.
Fixed a few bugs in read/write positions when the format is mapped
using acm.
Fixed a bug where the number of waveOut devices is used when iterating
over waveIn devices.
2003-02-15 00:00:12 +00:00
Francois Gouget 8b97a3a391 In the latest sdk the {waveOut,midiOut}{Get,Set}Volume functions take
a handle as the first parameter.
2002-12-15 02:59:50 +00:00
Francois Gouget e385e5e467 Our resampling algorithm is quite primitive so try simple 8/16
mono/stereo conversions first. Only resample if we cannot avoid it.
2002-12-15 01:12:27 +00:00
Francois Gouget a522385e7d Add support for the 48 and 96kHz formats. 2002-12-13 02:18:20 +00:00
Francois Gouget 52574ed701 Fix error reporting in wavemap.c:wodOpen(); this solves the
waveOutOpen problem so that we can remove the todo_wine.
Win9x does not support WAVE_FORMAT_DIRECT.
Don't check the format if the waveOutOpen command failed.
Use trace, not winetest_trace!
2002-12-12 22:23:15 +00:00
Eric Pouech 7efe3ff0d8 Return correct values for wave(In|Out)GetPosition even if playing non
PCM files.
2002-10-31 00:54:27 +00:00
Eric Pouech 10d312eac1 wavemap now compiles with -DSTRICT. 2002-10-30 20:25:38 +00:00
Eric Pouech 60f21c3d58 Got rid of recursion in sub device opening. 2002-10-07 18:22:57 +00:00
Michael Stefaniuc ec7d7b72b2 - Convert HDRVR to a void*.
- Fix declaration of DriverCallback().
2002-08-09 01:02:25 +00:00
Patrik Stridvall a3868218d0 Fixed some issues found by winapi_check. 2002-07-19 00:30:16 +00:00
Vincent Béron 9a62491660 Removed trailing whitespace. 2002-05-31 23:06:46 +00:00
Eric Pouech 3209f949b3 Fixed size of buffers in conversion. 2002-04-01 21:02:27 +00:00
Alexandre Julliard 0799c1a780 Added LGPL standard comment, and copyright notices where necessary.
Global replacement of debugtools.h by wine/debug.h.
2002-03-09 23:29:33 +00:00
Eric Pouech d45f041ec2 Fixed wave(In|Out)Open when called with WAVE_MAPPED flag; some minor
16/32 API call ordering.
2001-11-13 21:58:32 +00:00
Patrik Stridvall 044855c6ec Documentation fixes. 2001-07-11 18:56:41 +00:00
Patrik Stridvall 01d5e5b071 Documentation fixes. 2001-07-02 19:59:40 +00:00
Eric Pouech 8606971607 Fixed open requests in case of error (if the physical device failed to
open, the ACM stream was left opened).
Added mapping search for waveIn devices.
2001-05-21 18:32:17 +00:00
Eric Pouech 1b9e33df0c Fixed callback parameters (bogus hWave); added acm conversion for
waveIn.
2001-04-13 22:28:06 +00:00
James Juran f4d5fefb0a Add <string.h> to files that needed it. 2001-01-26 20:43:40 +00:00
Eric Pouech 95064364a8 Replaced pointers to external functions by a DLL import. 2001-01-03 21:33:17 +00:00
François Gouget 44a182229b winuser.h now requires that we include winbase.h first. 2000-12-19 04:53:20 +00:00
Dimitrie O. Paun 529da54394 Require {DECLARE,DEFAULT}_DEBUG_CHANNEL statements to end in a ; 2000-11-27 23:54:25 +00:00
Eric Pouech 731e9f5309 - removed (now obsolete) driver.h file (it's content is now in mmsystem.h)
- upgraded vfw.h content
2000-07-26 18:07:04 +00:00
Jeremy White d3e22d9d55 Removed #include of wingdi.h and windef.h from winuser.h (and resolved
the resulting compilation failures).
2000-02-10 19:03:02 +00:00
Eric Pouech ba2a9a06ef Added support for WODM_BREAKLOOP message. 2000-01-04 00:25:57 +00:00
Bradley Baetz 0497aa649a The wavemap driver wasn't passing the callback type to the
DriverCallback routine correctly.
1999-12-11 23:04:55 +00:00
Eric Pouech c06089d0c5 Added support for WAVE_FORMAT_QUERY flag in wodOpen. 1999-12-05 23:09:13 +00:00
Eric Pouech 31a1933aa5 Fixed forwarding and handling messages directed to the mappers. 1999-11-21 00:51:05 +00:00
Eric Pouech abe722778f Added built-in msacm.drv and midimap.drv drivers. 1999-10-31 02:23:49 +00:00