1999-03-22 15:50:38 +01:00
|
|
|
/* -*- tab-width: 8; c-basic-offset: 4 -*- */
|
|
|
|
|
Release 971101
Thu Oct 30 21:52:23 1997 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [windows/nonclient.c]
Changed NC_TrackSysMenu to give the same behaviour as MS-Windows,
i.e. system menu already appears when mouse button is depressed.
Changed NC_HandleNCLButtonDblClk so that double clicks on scroll
bar arrows are handled the same way as single clicks.
* [windows/winpos.c]
Fixed SetWindowPos32 to clear WIN_NO_REDRAW when SWP_SHOWWINDOW is
set; this is the way MS-Windows behaves.
Thu Oct 30 21:08:57 1997 Morten Welinder <terra@diku.dk>
* [controls/status.c]
In SW_SetText, fix condition, I hope.
* [controls/menu.c]
(GetMenuState32): Don't mask return value. Print more debug info.
(MENU_MenuBarCalcSize): Be more careful when printing debug
information.
(MENU_SetItemData): Empty strings are separators.
* [graphics/x11drv/text.c]
Don't prototype CLIPPING_IntersectClipRect.
* [include/dc.h]
Prototype CLIPPING_IntersectClipRect.
* [objects/font.c]
Remove non-portable (and faulty) smartness in FONT_TextMetric*to*.
In CreateFont32W and CreateFont16, handle null font name.
* [objects/text.c]
(TEXT_NextLine): Fix end-of-line bug.
* [if1632/shell32.spec]
Activate existing implementation of ExtractIconA.
* [misc/shell.c]
For Control_RunDLL, add types for parameters.
Thu Oct 30 14:54:11 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [controls/static.c] [include/windows.h] [misc/spy.c]
Added some win32 defines to static controls, basic SS_BITMAP style
handling implemented. [please add more, I am lacking knowledge and
time]
* [controls/status.c]
part_num 255 seems to indicate whole statusline (win95 cdplayer.exe)
* [if1632/thunk.c] [tools/build.c]
Support lret and 0x66 lret calls for CallTo16_regs
(needed for KERNEL32_45)
Fixed KERNEL32_45, QT_Thunk (should work now).
* [if1632/relay.c][if1632/builtin.c][tools/build.c][if1632/*32.spec]
Added string dumping to relay debugging for win32 apifuncs.
* [misc/ver.c]
Fixed and cleaned up VerQueryValue*.
* [multimedia/*.c][include/mmsystem.h][if1632/mmsystem.spec]
[if1632/winmm.spec]
Win32 support for lowlevel multimedia functions.
Added some mixer* lowlevel functions.
Some small fixes in the audio lowlevel queue handling, code
reformatting/cleanups.
* [debugger/hash.c]
Don't show difference between 16bit symbols if they are in
different segments.
* [objects/cursoricon.c]
Added GetIconInfo (partial) and CreateIconIndirect.
* [windows/mdi.c]
Fixed some "bad class" problems and crashes in MDICreateChild,
which happen in Win32 (jwp32.exe).
Wed Oct 29 00:57:27 1997 Bruce Milner <Bruce.Milner@genetics.utah.edu>
* [if1632/winaspi.spec] [misc/aspi.c] [include/aspi.c]
[documentation/aspi] [include/callback.h]
Added support for 16 bit ASPI calls to linux generic SCSI.
The support is not complete, but appears to run my Mustek
scanner from within ipplus.exe.
Mon Oct 27 00:59:41 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [windows/dce.c]
DC reuse framework.
Sun Oct 26 18:41:21 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [graphics/x11drv/xfont.c]
Substituted fonts are removed from the alias table. References to
the old name are also updated.
* [controls/combo.c]
LB_SELECTSTRING32 not CB_SELECTSTRING32 should be sent to
ComboLBox.
Sun Oct 26 14:25:00 1997 Nikita V. Youshchenko <yoush@cs.msu.su>
* [include/drive.h] [files/drive.c] [msdos/int21.c]
Partially implemented DOS drive mapping (int21 AX=440F).
Sat Oct 25 13:03:29 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [debugger/debug.l]
Support '.' in identifiers. Use "x . y" to access structure
fields.
* [debugger/hash.c] [loader/pe_image.c]
Load entry points of Win32 modules only when entering the
debugger.
* [debugger/break.c]
New function DEBUG_AddModuleBreakpoint() to set a breakpoint at
the start of every module.
* [files/file.c]
FILE_mmap() can now fake mmap() for unaligned offsets or broken
filesystems.
* [include/callback.h] [misc/callback.c] [if1632/thunk.c]
Use a table of callbacks instead of macros to differentiate
between emulator and Winelib.
* [loader/task.c]
Initialize current directory from cwd, not from module path.
* [tools/build.c]
Read CallTo16 prototypes directly from thunk.c source file.
* [windows/winproc.c] [windows/mdi.c]
Added translation for WM_MDIACTIVATE and WM_MDIGETACTIVE.
Fri Oct 24 21:41:25 1997 Uwe Bonnes <bon@elektron.ikp.tu-darmstadt.de>
* [files/drive.c]
Allow arguments like "a" for the drive related apis.
* [memory/global.c]
Keep the calculation for dwMemoryLoad in range.
* [misc/crtdll.c]
Make CRTDLL_getcwd use GetCurrentDirectory32A and alloc
its memory if requested.
Implemented CRTDLL_rename and CRTDLL_stat needed for
lcc-win32:wedit.exe.
Implemented CRTDLL__fullpath.
* [misc/comm.c]
High speed modes for the 16-bit mode Comm functions.
* [misc/cpu.c]
As applications may treat lpMaximumApplicationAddress as long,
use a valid long number.
* [misc/main.c]
In SystemParametersInfo16 ignore SPI_GETHIGHCONTRAST too.
* [misc/ole2nls.c]
Implement LCMAP_UPPERCASE for LCMapString32.
* [misc/wsprintf]
Made WPRINTF_ParseFormatA understand %ws.
* [win32/file.c]
Ignore FILE_ATTRIBUTE_NORMAL.
Stub for ReadFileEx.
Fri Oct 24 15:36:02 1997 Doug Ridgway <ridgway@routh.ucsd.edu>
* [memory/local.c]
Local heap exhaustion message now prints which builtin heap filled.
Fri Oct 24 00:46:34 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [windows/dialog.c]
Reversed CreateFont16/32W typo.
Thu Oct 23 23:44:20 1997 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [if1632/user.spec]
Fixed argument list for ChangeClipboardChain.
* [windows/mdi.c]
Pass correct hInstance to CreateWindow16() in MDICreateChild().
Mon Oct 20 11:51:24 1997 Carsten Fallesen <cf@it.dtu.dk>
* [objects/metafile.c]
Added support for META_SETTEXTCHAREXTRA.
* [objects/region.c]
Fixed crash in XPolygonRegion if there is only one point in
in the region.
* [if1632/gdi32.spec][include/gdi.h][include/windows.h]
[objects/gdiobj.c]
Completed OBJ_XXX defines in gdi.h, removed OBJ_XXX in gdiobj.c
and included gdi.h instead. Implemented GetObjectType32().
Thu Oct 16 17:21:32 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
* [documentation/wine.texinfo]
Fixed WIN32 and Makefiles entries of Reference manual node, that
made makeinfo dump core.
Mon Oct 13 17:15:57 1997 Robert Wilhelm <robert@physiol.med.tu-muenchen.de>
* [if1632/crtdll.spec]
Added missing math functions y0(), y1(), y2(), floor(), frexp(),
ldexp(), modf().
1997-11-01 20:08:16 +01:00
|
|
|
/*
|
|
|
|
* Sample MIXER Wine Driver for Linux
|
|
|
|
*
|
1999-03-22 15:50:38 +01:00
|
|
|
* Copyright 1997 Marcus Meissner
|
2001-11-06 00:53:48 +01:00
|
|
|
* 1999,2001 Eric Pouech
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
Release 971101
Thu Oct 30 21:52:23 1997 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [windows/nonclient.c]
Changed NC_TrackSysMenu to give the same behaviour as MS-Windows,
i.e. system menu already appears when mouse button is depressed.
Changed NC_HandleNCLButtonDblClk so that double clicks on scroll
bar arrows are handled the same way as single clicks.
* [windows/winpos.c]
Fixed SetWindowPos32 to clear WIN_NO_REDRAW when SWP_SHOWWINDOW is
set; this is the way MS-Windows behaves.
Thu Oct 30 21:08:57 1997 Morten Welinder <terra@diku.dk>
* [controls/status.c]
In SW_SetText, fix condition, I hope.
* [controls/menu.c]
(GetMenuState32): Don't mask return value. Print more debug info.
(MENU_MenuBarCalcSize): Be more careful when printing debug
information.
(MENU_SetItemData): Empty strings are separators.
* [graphics/x11drv/text.c]
Don't prototype CLIPPING_IntersectClipRect.
* [include/dc.h]
Prototype CLIPPING_IntersectClipRect.
* [objects/font.c]
Remove non-portable (and faulty) smartness in FONT_TextMetric*to*.
In CreateFont32W and CreateFont16, handle null font name.
* [objects/text.c]
(TEXT_NextLine): Fix end-of-line bug.
* [if1632/shell32.spec]
Activate existing implementation of ExtractIconA.
* [misc/shell.c]
For Control_RunDLL, add types for parameters.
Thu Oct 30 14:54:11 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [controls/static.c] [include/windows.h] [misc/spy.c]
Added some win32 defines to static controls, basic SS_BITMAP style
handling implemented. [please add more, I am lacking knowledge and
time]
* [controls/status.c]
part_num 255 seems to indicate whole statusline (win95 cdplayer.exe)
* [if1632/thunk.c] [tools/build.c]
Support lret and 0x66 lret calls for CallTo16_regs
(needed for KERNEL32_45)
Fixed KERNEL32_45, QT_Thunk (should work now).
* [if1632/relay.c][if1632/builtin.c][tools/build.c][if1632/*32.spec]
Added string dumping to relay debugging for win32 apifuncs.
* [misc/ver.c]
Fixed and cleaned up VerQueryValue*.
* [multimedia/*.c][include/mmsystem.h][if1632/mmsystem.spec]
[if1632/winmm.spec]
Win32 support for lowlevel multimedia functions.
Added some mixer* lowlevel functions.
Some small fixes in the audio lowlevel queue handling, code
reformatting/cleanups.
* [debugger/hash.c]
Don't show difference between 16bit symbols if they are in
different segments.
* [objects/cursoricon.c]
Added GetIconInfo (partial) and CreateIconIndirect.
* [windows/mdi.c]
Fixed some "bad class" problems and crashes in MDICreateChild,
which happen in Win32 (jwp32.exe).
Wed Oct 29 00:57:27 1997 Bruce Milner <Bruce.Milner@genetics.utah.edu>
* [if1632/winaspi.spec] [misc/aspi.c] [include/aspi.c]
[documentation/aspi] [include/callback.h]
Added support for 16 bit ASPI calls to linux generic SCSI.
The support is not complete, but appears to run my Mustek
scanner from within ipplus.exe.
Mon Oct 27 00:59:41 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [windows/dce.c]
DC reuse framework.
Sun Oct 26 18:41:21 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [graphics/x11drv/xfont.c]
Substituted fonts are removed from the alias table. References to
the old name are also updated.
* [controls/combo.c]
LB_SELECTSTRING32 not CB_SELECTSTRING32 should be sent to
ComboLBox.
Sun Oct 26 14:25:00 1997 Nikita V. Youshchenko <yoush@cs.msu.su>
* [include/drive.h] [files/drive.c] [msdos/int21.c]
Partially implemented DOS drive mapping (int21 AX=440F).
Sat Oct 25 13:03:29 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [debugger/debug.l]
Support '.' in identifiers. Use "x . y" to access structure
fields.
* [debugger/hash.c] [loader/pe_image.c]
Load entry points of Win32 modules only when entering the
debugger.
* [debugger/break.c]
New function DEBUG_AddModuleBreakpoint() to set a breakpoint at
the start of every module.
* [files/file.c]
FILE_mmap() can now fake mmap() for unaligned offsets or broken
filesystems.
* [include/callback.h] [misc/callback.c] [if1632/thunk.c]
Use a table of callbacks instead of macros to differentiate
between emulator and Winelib.
* [loader/task.c]
Initialize current directory from cwd, not from module path.
* [tools/build.c]
Read CallTo16 prototypes directly from thunk.c source file.
* [windows/winproc.c] [windows/mdi.c]
Added translation for WM_MDIACTIVATE and WM_MDIGETACTIVE.
Fri Oct 24 21:41:25 1997 Uwe Bonnes <bon@elektron.ikp.tu-darmstadt.de>
* [files/drive.c]
Allow arguments like "a" for the drive related apis.
* [memory/global.c]
Keep the calculation for dwMemoryLoad in range.
* [misc/crtdll.c]
Make CRTDLL_getcwd use GetCurrentDirectory32A and alloc
its memory if requested.
Implemented CRTDLL_rename and CRTDLL_stat needed for
lcc-win32:wedit.exe.
Implemented CRTDLL__fullpath.
* [misc/comm.c]
High speed modes for the 16-bit mode Comm functions.
* [misc/cpu.c]
As applications may treat lpMaximumApplicationAddress as long,
use a valid long number.
* [misc/main.c]
In SystemParametersInfo16 ignore SPI_GETHIGHCONTRAST too.
* [misc/ole2nls.c]
Implement LCMAP_UPPERCASE for LCMapString32.
* [misc/wsprintf]
Made WPRINTF_ParseFormatA understand %ws.
* [win32/file.c]
Ignore FILE_ATTRIBUTE_NORMAL.
Stub for ReadFileEx.
Fri Oct 24 15:36:02 1997 Doug Ridgway <ridgway@routh.ucsd.edu>
* [memory/local.c]
Local heap exhaustion message now prints which builtin heap filled.
Fri Oct 24 00:46:34 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [windows/dialog.c]
Reversed CreateFont16/32W typo.
Thu Oct 23 23:44:20 1997 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [if1632/user.spec]
Fixed argument list for ChangeClipboardChain.
* [windows/mdi.c]
Pass correct hInstance to CreateWindow16() in MDICreateChild().
Mon Oct 20 11:51:24 1997 Carsten Fallesen <cf@it.dtu.dk>
* [objects/metafile.c]
Added support for META_SETTEXTCHAREXTRA.
* [objects/region.c]
Fixed crash in XPolygonRegion if there is only one point in
in the region.
* [if1632/gdi32.spec][include/gdi.h][include/windows.h]
[objects/gdiobj.c]
Completed OBJ_XXX defines in gdi.h, removed OBJ_XXX in gdiobj.c
and included gdi.h instead. Implemented GetObjectType32().
Thu Oct 16 17:21:32 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
* [documentation/wine.texinfo]
Fixed WIN32 and Makefiles entries of Reference manual node, that
made makeinfo dump core.
Mon Oct 13 17:15:57 1997 Robert Wilhelm <robert@physiol.med.tu-muenchen.de>
* [if1632/crtdll.spec]
Added missing math functions y0(), y1(), y2(), floor(), frexp(),
ldexp(), modf().
1997-11-01 20:08:16 +01:00
|
|
|
*/
|
|
|
|
|
2004-10-11 21:57:10 +02:00
|
|
|
/* TODO:
|
|
|
|
* + implement notification mechanism when state of mixer's controls
|
|
|
|
*/
|
|
|
|
|
1999-10-31 03:07:54 +01:00
|
|
|
#include "config.h"
|
2005-08-03 23:25:10 +02:00
|
|
|
#include "wine/port.h"
|
1999-10-31 03:07:54 +01:00
|
|
|
|
Release 971101
Thu Oct 30 21:52:23 1997 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [windows/nonclient.c]
Changed NC_TrackSysMenu to give the same behaviour as MS-Windows,
i.e. system menu already appears when mouse button is depressed.
Changed NC_HandleNCLButtonDblClk so that double clicks on scroll
bar arrows are handled the same way as single clicks.
* [windows/winpos.c]
Fixed SetWindowPos32 to clear WIN_NO_REDRAW when SWP_SHOWWINDOW is
set; this is the way MS-Windows behaves.
Thu Oct 30 21:08:57 1997 Morten Welinder <terra@diku.dk>
* [controls/status.c]
In SW_SetText, fix condition, I hope.
* [controls/menu.c]
(GetMenuState32): Don't mask return value. Print more debug info.
(MENU_MenuBarCalcSize): Be more careful when printing debug
information.
(MENU_SetItemData): Empty strings are separators.
* [graphics/x11drv/text.c]
Don't prototype CLIPPING_IntersectClipRect.
* [include/dc.h]
Prototype CLIPPING_IntersectClipRect.
* [objects/font.c]
Remove non-portable (and faulty) smartness in FONT_TextMetric*to*.
In CreateFont32W and CreateFont16, handle null font name.
* [objects/text.c]
(TEXT_NextLine): Fix end-of-line bug.
* [if1632/shell32.spec]
Activate existing implementation of ExtractIconA.
* [misc/shell.c]
For Control_RunDLL, add types for parameters.
Thu Oct 30 14:54:11 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [controls/static.c] [include/windows.h] [misc/spy.c]
Added some win32 defines to static controls, basic SS_BITMAP style
handling implemented. [please add more, I am lacking knowledge and
time]
* [controls/status.c]
part_num 255 seems to indicate whole statusline (win95 cdplayer.exe)
* [if1632/thunk.c] [tools/build.c]
Support lret and 0x66 lret calls for CallTo16_regs
(needed for KERNEL32_45)
Fixed KERNEL32_45, QT_Thunk (should work now).
* [if1632/relay.c][if1632/builtin.c][tools/build.c][if1632/*32.spec]
Added string dumping to relay debugging for win32 apifuncs.
* [misc/ver.c]
Fixed and cleaned up VerQueryValue*.
* [multimedia/*.c][include/mmsystem.h][if1632/mmsystem.spec]
[if1632/winmm.spec]
Win32 support for lowlevel multimedia functions.
Added some mixer* lowlevel functions.
Some small fixes in the audio lowlevel queue handling, code
reformatting/cleanups.
* [debugger/hash.c]
Don't show difference between 16bit symbols if they are in
different segments.
* [objects/cursoricon.c]
Added GetIconInfo (partial) and CreateIconIndirect.
* [windows/mdi.c]
Fixed some "bad class" problems and crashes in MDICreateChild,
which happen in Win32 (jwp32.exe).
Wed Oct 29 00:57:27 1997 Bruce Milner <Bruce.Milner@genetics.utah.edu>
* [if1632/winaspi.spec] [misc/aspi.c] [include/aspi.c]
[documentation/aspi] [include/callback.h]
Added support for 16 bit ASPI calls to linux generic SCSI.
The support is not complete, but appears to run my Mustek
scanner from within ipplus.exe.
Mon Oct 27 00:59:41 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [windows/dce.c]
DC reuse framework.
Sun Oct 26 18:41:21 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [graphics/x11drv/xfont.c]
Substituted fonts are removed from the alias table. References to
the old name are also updated.
* [controls/combo.c]
LB_SELECTSTRING32 not CB_SELECTSTRING32 should be sent to
ComboLBox.
Sun Oct 26 14:25:00 1997 Nikita V. Youshchenko <yoush@cs.msu.su>
* [include/drive.h] [files/drive.c] [msdos/int21.c]
Partially implemented DOS drive mapping (int21 AX=440F).
Sat Oct 25 13:03:29 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [debugger/debug.l]
Support '.' in identifiers. Use "x . y" to access structure
fields.
* [debugger/hash.c] [loader/pe_image.c]
Load entry points of Win32 modules only when entering the
debugger.
* [debugger/break.c]
New function DEBUG_AddModuleBreakpoint() to set a breakpoint at
the start of every module.
* [files/file.c]
FILE_mmap() can now fake mmap() for unaligned offsets or broken
filesystems.
* [include/callback.h] [misc/callback.c] [if1632/thunk.c]
Use a table of callbacks instead of macros to differentiate
between emulator and Winelib.
* [loader/task.c]
Initialize current directory from cwd, not from module path.
* [tools/build.c]
Read CallTo16 prototypes directly from thunk.c source file.
* [windows/winproc.c] [windows/mdi.c]
Added translation for WM_MDIACTIVATE and WM_MDIGETACTIVE.
Fri Oct 24 21:41:25 1997 Uwe Bonnes <bon@elektron.ikp.tu-darmstadt.de>
* [files/drive.c]
Allow arguments like "a" for the drive related apis.
* [memory/global.c]
Keep the calculation for dwMemoryLoad in range.
* [misc/crtdll.c]
Make CRTDLL_getcwd use GetCurrentDirectory32A and alloc
its memory if requested.
Implemented CRTDLL_rename and CRTDLL_stat needed for
lcc-win32:wedit.exe.
Implemented CRTDLL__fullpath.
* [misc/comm.c]
High speed modes for the 16-bit mode Comm functions.
* [misc/cpu.c]
As applications may treat lpMaximumApplicationAddress as long,
use a valid long number.
* [misc/main.c]
In SystemParametersInfo16 ignore SPI_GETHIGHCONTRAST too.
* [misc/ole2nls.c]
Implement LCMAP_UPPERCASE for LCMapString32.
* [misc/wsprintf]
Made WPRINTF_ParseFormatA understand %ws.
* [win32/file.c]
Ignore FILE_ATTRIBUTE_NORMAL.
Stub for ReadFileEx.
Fri Oct 24 15:36:02 1997 Doug Ridgway <ridgway@routh.ucsd.edu>
* [memory/local.c]
Local heap exhaustion message now prints which builtin heap filled.
Fri Oct 24 00:46:34 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [windows/dialog.c]
Reversed CreateFont16/32W typo.
Thu Oct 23 23:44:20 1997 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [if1632/user.spec]
Fixed argument list for ChangeClipboardChain.
* [windows/mdi.c]
Pass correct hInstance to CreateWindow16() in MDICreateChild().
Mon Oct 20 11:51:24 1997 Carsten Fallesen <cf@it.dtu.dk>
* [objects/metafile.c]
Added support for META_SETTEXTCHAREXTRA.
* [objects/region.c]
Fixed crash in XPolygonRegion if there is only one point in
in the region.
* [if1632/gdi32.spec][include/gdi.h][include/windows.h]
[objects/gdiobj.c]
Completed OBJ_XXX defines in gdi.h, removed OBJ_XXX in gdiobj.c
and included gdi.h instead. Implemented GetObjectType32().
Thu Oct 16 17:21:32 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
* [documentation/wine.texinfo]
Fixed WIN32 and Makefiles entries of Reference manual node, that
made makeinfo dump core.
Mon Oct 13 17:15:57 1997 Robert Wilhelm <robert@physiol.med.tu-muenchen.de>
* [if1632/crtdll.spec]
Added missing math functions y0(), y1(), y2(), floor(), frexp(),
ldexp(), modf().
1997-11-01 20:08:16 +01:00
|
|
|
#include <stdlib.h>
|
2003-09-06 01:08:26 +02:00
|
|
|
#include <stdarg.h>
|
2000-02-10 23:15:21 +01:00
|
|
|
#include <stdio.h>
|
1999-02-28 13:27:56 +01:00
|
|
|
#include <string.h>
|
2002-08-17 02:43:16 +02:00
|
|
|
#ifdef HAVE_UNISTD_H
|
|
|
|
# include <unistd.h>
|
|
|
|
#endif
|
Release 971101
Thu Oct 30 21:52:23 1997 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [windows/nonclient.c]
Changed NC_TrackSysMenu to give the same behaviour as MS-Windows,
i.e. system menu already appears when mouse button is depressed.
Changed NC_HandleNCLButtonDblClk so that double clicks on scroll
bar arrows are handled the same way as single clicks.
* [windows/winpos.c]
Fixed SetWindowPos32 to clear WIN_NO_REDRAW when SWP_SHOWWINDOW is
set; this is the way MS-Windows behaves.
Thu Oct 30 21:08:57 1997 Morten Welinder <terra@diku.dk>
* [controls/status.c]
In SW_SetText, fix condition, I hope.
* [controls/menu.c]
(GetMenuState32): Don't mask return value. Print more debug info.
(MENU_MenuBarCalcSize): Be more careful when printing debug
information.
(MENU_SetItemData): Empty strings are separators.
* [graphics/x11drv/text.c]
Don't prototype CLIPPING_IntersectClipRect.
* [include/dc.h]
Prototype CLIPPING_IntersectClipRect.
* [objects/font.c]
Remove non-portable (and faulty) smartness in FONT_TextMetric*to*.
In CreateFont32W and CreateFont16, handle null font name.
* [objects/text.c]
(TEXT_NextLine): Fix end-of-line bug.
* [if1632/shell32.spec]
Activate existing implementation of ExtractIconA.
* [misc/shell.c]
For Control_RunDLL, add types for parameters.
Thu Oct 30 14:54:11 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [controls/static.c] [include/windows.h] [misc/spy.c]
Added some win32 defines to static controls, basic SS_BITMAP style
handling implemented. [please add more, I am lacking knowledge and
time]
* [controls/status.c]
part_num 255 seems to indicate whole statusline (win95 cdplayer.exe)
* [if1632/thunk.c] [tools/build.c]
Support lret and 0x66 lret calls for CallTo16_regs
(needed for KERNEL32_45)
Fixed KERNEL32_45, QT_Thunk (should work now).
* [if1632/relay.c][if1632/builtin.c][tools/build.c][if1632/*32.spec]
Added string dumping to relay debugging for win32 apifuncs.
* [misc/ver.c]
Fixed and cleaned up VerQueryValue*.
* [multimedia/*.c][include/mmsystem.h][if1632/mmsystem.spec]
[if1632/winmm.spec]
Win32 support for lowlevel multimedia functions.
Added some mixer* lowlevel functions.
Some small fixes in the audio lowlevel queue handling, code
reformatting/cleanups.
* [debugger/hash.c]
Don't show difference between 16bit symbols if they are in
different segments.
* [objects/cursoricon.c]
Added GetIconInfo (partial) and CreateIconIndirect.
* [windows/mdi.c]
Fixed some "bad class" problems and crashes in MDICreateChild,
which happen in Win32 (jwp32.exe).
Wed Oct 29 00:57:27 1997 Bruce Milner <Bruce.Milner@genetics.utah.edu>
* [if1632/winaspi.spec] [misc/aspi.c] [include/aspi.c]
[documentation/aspi] [include/callback.h]
Added support for 16 bit ASPI calls to linux generic SCSI.
The support is not complete, but appears to run my Mustek
scanner from within ipplus.exe.
Mon Oct 27 00:59:41 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [windows/dce.c]
DC reuse framework.
Sun Oct 26 18:41:21 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [graphics/x11drv/xfont.c]
Substituted fonts are removed from the alias table. References to
the old name are also updated.
* [controls/combo.c]
LB_SELECTSTRING32 not CB_SELECTSTRING32 should be sent to
ComboLBox.
Sun Oct 26 14:25:00 1997 Nikita V. Youshchenko <yoush@cs.msu.su>
* [include/drive.h] [files/drive.c] [msdos/int21.c]
Partially implemented DOS drive mapping (int21 AX=440F).
Sat Oct 25 13:03:29 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [debugger/debug.l]
Support '.' in identifiers. Use "x . y" to access structure
fields.
* [debugger/hash.c] [loader/pe_image.c]
Load entry points of Win32 modules only when entering the
debugger.
* [debugger/break.c]
New function DEBUG_AddModuleBreakpoint() to set a breakpoint at
the start of every module.
* [files/file.c]
FILE_mmap() can now fake mmap() for unaligned offsets or broken
filesystems.
* [include/callback.h] [misc/callback.c] [if1632/thunk.c]
Use a table of callbacks instead of macros to differentiate
between emulator and Winelib.
* [loader/task.c]
Initialize current directory from cwd, not from module path.
* [tools/build.c]
Read CallTo16 prototypes directly from thunk.c source file.
* [windows/winproc.c] [windows/mdi.c]
Added translation for WM_MDIACTIVATE and WM_MDIGETACTIVE.
Fri Oct 24 21:41:25 1997 Uwe Bonnes <bon@elektron.ikp.tu-darmstadt.de>
* [files/drive.c]
Allow arguments like "a" for the drive related apis.
* [memory/global.c]
Keep the calculation for dwMemoryLoad in range.
* [misc/crtdll.c]
Make CRTDLL_getcwd use GetCurrentDirectory32A and alloc
its memory if requested.
Implemented CRTDLL_rename and CRTDLL_stat needed for
lcc-win32:wedit.exe.
Implemented CRTDLL__fullpath.
* [misc/comm.c]
High speed modes for the 16-bit mode Comm functions.
* [misc/cpu.c]
As applications may treat lpMaximumApplicationAddress as long,
use a valid long number.
* [misc/main.c]
In SystemParametersInfo16 ignore SPI_GETHIGHCONTRAST too.
* [misc/ole2nls.c]
Implement LCMAP_UPPERCASE for LCMapString32.
* [misc/wsprintf]
Made WPRINTF_ParseFormatA understand %ws.
* [win32/file.c]
Ignore FILE_ATTRIBUTE_NORMAL.
Stub for ReadFileEx.
Fri Oct 24 15:36:02 1997 Doug Ridgway <ridgway@routh.ucsd.edu>
* [memory/local.c]
Local heap exhaustion message now prints which builtin heap filled.
Fri Oct 24 00:46:34 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [windows/dialog.c]
Reversed CreateFont16/32W typo.
Thu Oct 23 23:44:20 1997 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [if1632/user.spec]
Fixed argument list for ChangeClipboardChain.
* [windows/mdi.c]
Pass correct hInstance to CreateWindow16() in MDICreateChild().
Mon Oct 20 11:51:24 1997 Carsten Fallesen <cf@it.dtu.dk>
* [objects/metafile.c]
Added support for META_SETTEXTCHAREXTRA.
* [objects/region.c]
Fixed crash in XPolygonRegion if there is only one point in
in the region.
* [if1632/gdi32.spec][include/gdi.h][include/windows.h]
[objects/gdiobj.c]
Completed OBJ_XXX defines in gdi.h, removed OBJ_XXX in gdiobj.c
and included gdi.h instead. Implemented GetObjectType32().
Thu Oct 16 17:21:32 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
* [documentation/wine.texinfo]
Fixed WIN32 and Makefiles entries of Reference manual node, that
made makeinfo dump core.
Mon Oct 13 17:15:57 1997 Robert Wilhelm <robert@physiol.med.tu-muenchen.de>
* [if1632/crtdll.spec]
Added missing math functions y0(), y1(), y2(), floor(), frexp(),
ldexp(), modf().
1997-11-01 20:08:16 +01:00
|
|
|
#include <fcntl.h>
|
2001-05-07 20:16:38 +02:00
|
|
|
#include <errno.h>
|
2001-11-06 00:53:48 +01:00
|
|
|
#include <assert.h>
|
2002-05-22 03:55:18 +02:00
|
|
|
#ifdef HAVE_SYS_IOCTL_H
|
|
|
|
# include <sys/ioctl.h>
|
|
|
|
#endif
|
2011-03-28 22:11:45 +02:00
|
|
|
#ifdef HAVE_SYS_ERRNO_H
|
|
|
|
#include <sys/errno.h>
|
|
|
|
#endif
|
2011-05-02 20:06:49 +02:00
|
|
|
#include <sys/soundcard.h>
|
2002-05-22 03:55:18 +02:00
|
|
|
|
2003-01-07 21:36:20 +01:00
|
|
|
#define NONAMELESSUNION
|
|
|
|
#define NONAMELESSSTRUCT
|
1999-03-14 17:35:05 +01:00
|
|
|
#include "windef.h"
|
2003-09-06 01:08:26 +02:00
|
|
|
#include "winbase.h"
|
2004-12-06 21:55:25 +01:00
|
|
|
#include "winnls.h"
|
1999-09-05 18:44:38 +02:00
|
|
|
#include "mmddk.h"
|
2004-12-06 21:55:25 +01:00
|
|
|
#include "wine/unicode.h"
|
2002-03-10 00:29:33 +01:00
|
|
|
#include "wine/debug.h"
|
Release 971101
Thu Oct 30 21:52:23 1997 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [windows/nonclient.c]
Changed NC_TrackSysMenu to give the same behaviour as MS-Windows,
i.e. system menu already appears when mouse button is depressed.
Changed NC_HandleNCLButtonDblClk so that double clicks on scroll
bar arrows are handled the same way as single clicks.
* [windows/winpos.c]
Fixed SetWindowPos32 to clear WIN_NO_REDRAW when SWP_SHOWWINDOW is
set; this is the way MS-Windows behaves.
Thu Oct 30 21:08:57 1997 Morten Welinder <terra@diku.dk>
* [controls/status.c]
In SW_SetText, fix condition, I hope.
* [controls/menu.c]
(GetMenuState32): Don't mask return value. Print more debug info.
(MENU_MenuBarCalcSize): Be more careful when printing debug
information.
(MENU_SetItemData): Empty strings are separators.
* [graphics/x11drv/text.c]
Don't prototype CLIPPING_IntersectClipRect.
* [include/dc.h]
Prototype CLIPPING_IntersectClipRect.
* [objects/font.c]
Remove non-portable (and faulty) smartness in FONT_TextMetric*to*.
In CreateFont32W and CreateFont16, handle null font name.
* [objects/text.c]
(TEXT_NextLine): Fix end-of-line bug.
* [if1632/shell32.spec]
Activate existing implementation of ExtractIconA.
* [misc/shell.c]
For Control_RunDLL, add types for parameters.
Thu Oct 30 14:54:11 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [controls/static.c] [include/windows.h] [misc/spy.c]
Added some win32 defines to static controls, basic SS_BITMAP style
handling implemented. [please add more, I am lacking knowledge and
time]
* [controls/status.c]
part_num 255 seems to indicate whole statusline (win95 cdplayer.exe)
* [if1632/thunk.c] [tools/build.c]
Support lret and 0x66 lret calls for CallTo16_regs
(needed for KERNEL32_45)
Fixed KERNEL32_45, QT_Thunk (should work now).
* [if1632/relay.c][if1632/builtin.c][tools/build.c][if1632/*32.spec]
Added string dumping to relay debugging for win32 apifuncs.
* [misc/ver.c]
Fixed and cleaned up VerQueryValue*.
* [multimedia/*.c][include/mmsystem.h][if1632/mmsystem.spec]
[if1632/winmm.spec]
Win32 support for lowlevel multimedia functions.
Added some mixer* lowlevel functions.
Some small fixes in the audio lowlevel queue handling, code
reformatting/cleanups.
* [debugger/hash.c]
Don't show difference between 16bit symbols if they are in
different segments.
* [objects/cursoricon.c]
Added GetIconInfo (partial) and CreateIconIndirect.
* [windows/mdi.c]
Fixed some "bad class" problems and crashes in MDICreateChild,
which happen in Win32 (jwp32.exe).
Wed Oct 29 00:57:27 1997 Bruce Milner <Bruce.Milner@genetics.utah.edu>
* [if1632/winaspi.spec] [misc/aspi.c] [include/aspi.c]
[documentation/aspi] [include/callback.h]
Added support for 16 bit ASPI calls to linux generic SCSI.
The support is not complete, but appears to run my Mustek
scanner from within ipplus.exe.
Mon Oct 27 00:59:41 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [windows/dce.c]
DC reuse framework.
Sun Oct 26 18:41:21 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [graphics/x11drv/xfont.c]
Substituted fonts are removed from the alias table. References to
the old name are also updated.
* [controls/combo.c]
LB_SELECTSTRING32 not CB_SELECTSTRING32 should be sent to
ComboLBox.
Sun Oct 26 14:25:00 1997 Nikita V. Youshchenko <yoush@cs.msu.su>
* [include/drive.h] [files/drive.c] [msdos/int21.c]
Partially implemented DOS drive mapping (int21 AX=440F).
Sat Oct 25 13:03:29 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [debugger/debug.l]
Support '.' in identifiers. Use "x . y" to access structure
fields.
* [debugger/hash.c] [loader/pe_image.c]
Load entry points of Win32 modules only when entering the
debugger.
* [debugger/break.c]
New function DEBUG_AddModuleBreakpoint() to set a breakpoint at
the start of every module.
* [files/file.c]
FILE_mmap() can now fake mmap() for unaligned offsets or broken
filesystems.
* [include/callback.h] [misc/callback.c] [if1632/thunk.c]
Use a table of callbacks instead of macros to differentiate
between emulator and Winelib.
* [loader/task.c]
Initialize current directory from cwd, not from module path.
* [tools/build.c]
Read CallTo16 prototypes directly from thunk.c source file.
* [windows/winproc.c] [windows/mdi.c]
Added translation for WM_MDIACTIVATE and WM_MDIGETACTIVE.
Fri Oct 24 21:41:25 1997 Uwe Bonnes <bon@elektron.ikp.tu-darmstadt.de>
* [files/drive.c]
Allow arguments like "a" for the drive related apis.
* [memory/global.c]
Keep the calculation for dwMemoryLoad in range.
* [misc/crtdll.c]
Make CRTDLL_getcwd use GetCurrentDirectory32A and alloc
its memory if requested.
Implemented CRTDLL_rename and CRTDLL_stat needed for
lcc-win32:wedit.exe.
Implemented CRTDLL__fullpath.
* [misc/comm.c]
High speed modes for the 16-bit mode Comm functions.
* [misc/cpu.c]
As applications may treat lpMaximumApplicationAddress as long,
use a valid long number.
* [misc/main.c]
In SystemParametersInfo16 ignore SPI_GETHIGHCONTRAST too.
* [misc/ole2nls.c]
Implement LCMAP_UPPERCASE for LCMapString32.
* [misc/wsprintf]
Made WPRINTF_ParseFormatA understand %ws.
* [win32/file.c]
Ignore FILE_ATTRIBUTE_NORMAL.
Stub for ReadFileEx.
Fri Oct 24 15:36:02 1997 Doug Ridgway <ridgway@routh.ucsd.edu>
* [memory/local.c]
Local heap exhaustion message now prints which builtin heap filled.
Fri Oct 24 00:46:34 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [windows/dialog.c]
Reversed CreateFont16/32W typo.
Thu Oct 23 23:44:20 1997 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [if1632/user.spec]
Fixed argument list for ChangeClipboardChain.
* [windows/mdi.c]
Pass correct hInstance to CreateWindow16() in MDICreateChild().
Mon Oct 20 11:51:24 1997 Carsten Fallesen <cf@it.dtu.dk>
* [objects/metafile.c]
Added support for META_SETTEXTCHAREXTRA.
* [objects/region.c]
Fixed crash in XPolygonRegion if there is only one point in
in the region.
* [if1632/gdi32.spec][include/gdi.h][include/windows.h]
[objects/gdiobj.c]
Completed OBJ_XXX defines in gdi.h, removed OBJ_XXX in gdiobj.c
and included gdi.h instead. Implemented GetObjectType32().
Thu Oct 16 17:21:32 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
* [documentation/wine.texinfo]
Fixed WIN32 and Makefiles entries of Reference manual node, that
made makeinfo dump core.
Mon Oct 13 17:15:57 1997 Robert Wilhelm <robert@physiol.med.tu-muenchen.de>
* [if1632/crtdll.spec]
Added missing math functions y0(), y1(), y2(), floor(), frexp(),
ldexp(), modf().
1997-11-01 20:08:16 +01:00
|
|
|
|
2004-08-20 21:22:24 +02:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(mixer);
|
1999-04-19 16:56:29 +02:00
|
|
|
|
2004-08-20 21:22:24 +02:00
|
|
|
#define MAX_MIXERDRV (6)
|
|
|
|
|
1999-03-22 15:50:38 +01:00
|
|
|
#define WINE_MIXER_MANUF_ID 0xAA
|
1999-05-03 11:26:48 +02:00
|
|
|
#define WINE_MIXER_PRODUCT_ID 0x55
|
1999-03-22 15:50:38 +01:00
|
|
|
#define WINE_MIXER_VERSION 0x0100
|
|
|
|
#define WINE_MIXER_NAME "WINE OSS Mixer"
|
|
|
|
|
1999-05-03 11:26:48 +02:00
|
|
|
#define WINE_CHN_MASK(_x) (1L << (_x))
|
|
|
|
#define WINE_CHN_SUPPORTS(_c, _x) ((_c) & WINE_CHN_MASK(_x))
|
2000-08-19 01:42:43 +02:00
|
|
|
/* Bass and Treble are no longer in the mask as Windows does not handle them */
|
2001-11-06 00:53:48 +01:00
|
|
|
#define WINE_MIXER_MASK_SPEAKER (WINE_CHN_MASK(SOUND_MIXER_SYNTH) | \
|
1999-05-03 11:26:48 +02:00
|
|
|
WINE_CHN_MASK(SOUND_MIXER_PCM) | \
|
|
|
|
WINE_CHN_MASK(SOUND_MIXER_LINE) | \
|
|
|
|
WINE_CHN_MASK(SOUND_MIXER_MIC) | \
|
2001-11-06 00:53:48 +01:00
|
|
|
WINE_CHN_MASK(SOUND_MIXER_CD) )
|
|
|
|
|
|
|
|
#define WINE_MIXER_MASK_RECORD (WINE_CHN_MASK(SOUND_MIXER_SYNTH) | \
|
|
|
|
WINE_CHN_MASK(SOUND_MIXER_LINE) | \
|
|
|
|
WINE_CHN_MASK(SOUND_MIXER_MIC) | \
|
|
|
|
WINE_CHN_MASK(SOUND_MIXER_IMIX) )
|
1999-05-03 11:26:48 +02:00
|
|
|
|
1999-10-23 15:59:21 +02:00
|
|
|
/* FIXME: the two following string arrays should be moved to a resource file in a string table */
|
|
|
|
/* if it's done, better use a struct to hold labels, name, and muted channel volume cache */
|
2006-12-14 15:46:12 +01:00
|
|
|
static const char * const MIX_Labels[SOUND_MIXER_NRDEVICES] = SOUND_DEVICE_LABELS;
|
|
|
|
static const char * const MIX_Names [SOUND_MIXER_NRDEVICES] = SOUND_DEVICE_NAMES;
|
2001-11-06 00:53:48 +01:00
|
|
|
|
|
|
|
struct mixerCtrl
|
|
|
|
{
|
|
|
|
DWORD dwLineID;
|
2004-12-06 21:55:25 +01:00
|
|
|
MIXERCONTROLW ctrl;
|
2001-11-06 00:53:48 +01:00
|
|
|
};
|
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
struct mixer
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
2004-08-23 00:26:48 +02:00
|
|
|
char* name;
|
|
|
|
char* dev_name;
|
2001-11-06 00:53:48 +01:00
|
|
|
int volume[SOUND_MIXER_NRDEVICES];
|
|
|
|
int devMask;
|
|
|
|
int stereoMask;
|
|
|
|
int recMask;
|
|
|
|
BOOL singleRecChannel;
|
|
|
|
struct mixerCtrl* ctrl;
|
|
|
|
int numCtrl;
|
|
|
|
};
|
|
|
|
|
|
|
|
#define LINEID_DST 0xFFFF
|
|
|
|
#define LINEID_SPEAKER 0x0000
|
|
|
|
#define LINEID_RECORD 0x0001
|
|
|
|
|
|
|
|
static int MIX_NumMixers;
|
2004-08-20 21:22:24 +02:00
|
|
|
static struct mixer MIX_Mixers[MAX_MIXERDRV];
|
2001-11-06 00:53:48 +01:00
|
|
|
|
2004-08-22 04:02:27 +02:00
|
|
|
/**************************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
static const char * getMessage(UINT uMsg)
|
|
|
|
{
|
|
|
|
#define MSG_TO_STR(x) case x: return #x;
|
|
|
|
switch (uMsg) {
|
|
|
|
MSG_TO_STR(DRVM_INIT);
|
|
|
|
MSG_TO_STR(DRVM_EXIT);
|
|
|
|
MSG_TO_STR(DRVM_ENABLE);
|
|
|
|
MSG_TO_STR(DRVM_DISABLE);
|
|
|
|
MSG_TO_STR(MXDM_GETDEVCAPS);
|
|
|
|
MSG_TO_STR(MXDM_GETLINEINFO);
|
|
|
|
MSG_TO_STR(MXDM_GETNUMDEVS);
|
|
|
|
MSG_TO_STR(MXDM_OPEN);
|
|
|
|
MSG_TO_STR(MXDM_CLOSE);
|
|
|
|
MSG_TO_STR(MXDM_GETLINECONTROLS);
|
|
|
|
MSG_TO_STR(MXDM_GETCONTROLDETAILS);
|
|
|
|
MSG_TO_STR(MXDM_SETCONTROLDETAILS);
|
|
|
|
}
|
|
|
|
#undef MSG_TO_STR
|
2009-11-30 10:22:10 +01:00
|
|
|
return wine_dbg_sprintf("UNKNOWN(%08x)", uMsg);
|
2004-08-22 04:02:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static const char * getIoctlCommand(int command)
|
|
|
|
{
|
|
|
|
#define IOCTL_TO_STR(x) case x: return #x;
|
|
|
|
switch (command) {
|
|
|
|
IOCTL_TO_STR(SOUND_MIXER_VOLUME);
|
|
|
|
IOCTL_TO_STR(SOUND_MIXER_BASS);
|
|
|
|
IOCTL_TO_STR(SOUND_MIXER_TREBLE);
|
|
|
|
IOCTL_TO_STR(SOUND_MIXER_SYNTH);
|
|
|
|
IOCTL_TO_STR(SOUND_MIXER_PCM);
|
|
|
|
IOCTL_TO_STR(SOUND_MIXER_SPEAKER);
|
|
|
|
IOCTL_TO_STR(SOUND_MIXER_LINE);
|
|
|
|
IOCTL_TO_STR(SOUND_MIXER_MIC);
|
|
|
|
IOCTL_TO_STR(SOUND_MIXER_CD);
|
|
|
|
IOCTL_TO_STR(SOUND_MIXER_IMIX);
|
|
|
|
IOCTL_TO_STR(SOUND_MIXER_ALTPCM);
|
|
|
|
IOCTL_TO_STR(SOUND_MIXER_RECLEV);
|
|
|
|
IOCTL_TO_STR(SOUND_MIXER_IGAIN);
|
|
|
|
IOCTL_TO_STR(SOUND_MIXER_OGAIN);
|
|
|
|
IOCTL_TO_STR(SOUND_MIXER_LINE1);
|
|
|
|
IOCTL_TO_STR(SOUND_MIXER_LINE2);
|
|
|
|
IOCTL_TO_STR(SOUND_MIXER_LINE3);
|
|
|
|
IOCTL_TO_STR(SOUND_MIXER_DIGITAL1);
|
|
|
|
IOCTL_TO_STR(SOUND_MIXER_DIGITAL2);
|
|
|
|
IOCTL_TO_STR(SOUND_MIXER_DIGITAL3);
|
2007-04-26 15:22:11 +02:00
|
|
|
#ifdef SOUND_MIXER_PHONEIN
|
2004-08-22 04:02:27 +02:00
|
|
|
IOCTL_TO_STR(SOUND_MIXER_PHONEIN);
|
2007-04-26 15:22:11 +02:00
|
|
|
#endif
|
|
|
|
#ifdef SOUND_MIXER_PHONEOUT
|
2004-08-22 04:02:27 +02:00
|
|
|
IOCTL_TO_STR(SOUND_MIXER_PHONEOUT);
|
2007-04-26 15:22:11 +02:00
|
|
|
#endif
|
2004-08-22 04:02:27 +02:00
|
|
|
IOCTL_TO_STR(SOUND_MIXER_VIDEO);
|
|
|
|
IOCTL_TO_STR(SOUND_MIXER_RADIO);
|
2007-04-26 15:22:11 +02:00
|
|
|
#ifdef SOUND_MIXER_MONITOR
|
2004-08-22 04:02:27 +02:00
|
|
|
IOCTL_TO_STR(SOUND_MIXER_MONITOR);
|
2007-04-26 15:22:11 +02:00
|
|
|
#endif
|
2004-08-22 04:02:27 +02:00
|
|
|
}
|
|
|
|
#undef IOCTL_TO_STR
|
2009-11-30 10:22:10 +01:00
|
|
|
return wine_dbg_sprintf("UNKNOWN(%08x)", command);
|
2004-08-22 04:02:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static const char * getControlType(DWORD dwControlType)
|
|
|
|
{
|
2008-12-24 19:13:24 +01:00
|
|
|
#define TYPE_TO_STR(x) case x: return #x
|
2004-08-22 04:02:27 +02:00
|
|
|
switch (dwControlType) {
|
|
|
|
TYPE_TO_STR(MIXERCONTROL_CONTROLTYPE_CUSTOM);
|
|
|
|
TYPE_TO_STR(MIXERCONTROL_CONTROLTYPE_BOOLEANMETER);
|
|
|
|
TYPE_TO_STR(MIXERCONTROL_CONTROLTYPE_SIGNEDMETER);
|
|
|
|
TYPE_TO_STR(MIXERCONTROL_CONTROLTYPE_PEAKMETER);
|
|
|
|
TYPE_TO_STR(MIXERCONTROL_CONTROLTYPE_UNSIGNEDMETER);
|
|
|
|
TYPE_TO_STR(MIXERCONTROL_CONTROLTYPE_BOOLEAN);
|
|
|
|
TYPE_TO_STR(MIXERCONTROL_CONTROLTYPE_ONOFF);
|
|
|
|
TYPE_TO_STR(MIXERCONTROL_CONTROLTYPE_MUTE);
|
|
|
|
TYPE_TO_STR(MIXERCONTROL_CONTROLTYPE_MONO);
|
|
|
|
TYPE_TO_STR(MIXERCONTROL_CONTROLTYPE_LOUDNESS);
|
|
|
|
TYPE_TO_STR(MIXERCONTROL_CONTROLTYPE_STEREOENH);
|
|
|
|
TYPE_TO_STR(MIXERCONTROL_CONTROLTYPE_BASS_BOOST);
|
|
|
|
TYPE_TO_STR(MIXERCONTROL_CONTROLTYPE_BUTTON);
|
|
|
|
TYPE_TO_STR(MIXERCONTROL_CONTROLTYPE_DECIBELS);
|
|
|
|
TYPE_TO_STR(MIXERCONTROL_CONTROLTYPE_SIGNED);
|
|
|
|
TYPE_TO_STR(MIXERCONTROL_CONTROLTYPE_UNSIGNED);
|
|
|
|
TYPE_TO_STR(MIXERCONTROL_CONTROLTYPE_PERCENT);
|
|
|
|
TYPE_TO_STR(MIXERCONTROL_CONTROLTYPE_SLIDER);
|
|
|
|
TYPE_TO_STR(MIXERCONTROL_CONTROLTYPE_PAN);
|
|
|
|
TYPE_TO_STR(MIXERCONTROL_CONTROLTYPE_QSOUNDPAN);
|
|
|
|
TYPE_TO_STR(MIXERCONTROL_CONTROLTYPE_FADER);
|
|
|
|
TYPE_TO_STR(MIXERCONTROL_CONTROLTYPE_VOLUME);
|
|
|
|
TYPE_TO_STR(MIXERCONTROL_CONTROLTYPE_BASS);
|
|
|
|
TYPE_TO_STR(MIXERCONTROL_CONTROLTYPE_TREBLE);
|
|
|
|
TYPE_TO_STR(MIXERCONTROL_CONTROLTYPE_EQUALIZER);
|
|
|
|
TYPE_TO_STR(MIXERCONTROL_CONTROLTYPE_SINGLESELECT);
|
|
|
|
TYPE_TO_STR(MIXERCONTROL_CONTROLTYPE_MUX);
|
|
|
|
TYPE_TO_STR(MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT);
|
|
|
|
TYPE_TO_STR(MIXERCONTROL_CONTROLTYPE_MIXER);
|
|
|
|
TYPE_TO_STR(MIXERCONTROL_CONTROLTYPE_MICROTIME);
|
|
|
|
TYPE_TO_STR(MIXERCONTROL_CONTROLTYPE_MILLITIME);
|
|
|
|
}
|
|
|
|
#undef TYPE_TO_STR
|
2009-11-30 10:22:10 +01:00
|
|
|
return wine_dbg_sprintf("UNKNOWN(%08x)", dwControlType);
|
2004-08-22 04:02:27 +02:00
|
|
|
}
|
|
|
|
|
2004-08-23 00:26:48 +02:00
|
|
|
static const char * getComponentType(DWORD dwComponentType)
|
|
|
|
{
|
|
|
|
#define TYPE_TO_STR(x) case x: return #x;
|
|
|
|
switch (dwComponentType) {
|
|
|
|
TYPE_TO_STR(MIXERLINE_COMPONENTTYPE_DST_UNDEFINED);
|
|
|
|
TYPE_TO_STR(MIXERLINE_COMPONENTTYPE_DST_DIGITAL);
|
|
|
|
TYPE_TO_STR(MIXERLINE_COMPONENTTYPE_DST_LINE);
|
|
|
|
TYPE_TO_STR(MIXERLINE_COMPONENTTYPE_DST_MONITOR);
|
|
|
|
TYPE_TO_STR(MIXERLINE_COMPONENTTYPE_DST_SPEAKERS);
|
|
|
|
TYPE_TO_STR(MIXERLINE_COMPONENTTYPE_DST_HEADPHONES);
|
|
|
|
TYPE_TO_STR(MIXERLINE_COMPONENTTYPE_DST_TELEPHONE);
|
|
|
|
TYPE_TO_STR(MIXERLINE_COMPONENTTYPE_DST_WAVEIN);
|
|
|
|
TYPE_TO_STR(MIXERLINE_COMPONENTTYPE_DST_VOICEIN);
|
|
|
|
TYPE_TO_STR(MIXERLINE_COMPONENTTYPE_SRC_UNDEFINED);
|
|
|
|
TYPE_TO_STR(MIXERLINE_COMPONENTTYPE_SRC_DIGITAL);
|
|
|
|
TYPE_TO_STR(MIXERLINE_COMPONENTTYPE_SRC_LINE);
|
|
|
|
TYPE_TO_STR(MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE);
|
|
|
|
TYPE_TO_STR(MIXERLINE_COMPONENTTYPE_SRC_SYNTHESIZER);
|
|
|
|
TYPE_TO_STR(MIXERLINE_COMPONENTTYPE_SRC_COMPACTDISC);
|
|
|
|
TYPE_TO_STR(MIXERLINE_COMPONENTTYPE_SRC_TELEPHONE);
|
|
|
|
TYPE_TO_STR(MIXERLINE_COMPONENTTYPE_SRC_PCSPEAKER);
|
|
|
|
TYPE_TO_STR(MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT);
|
|
|
|
TYPE_TO_STR(MIXERLINE_COMPONENTTYPE_SRC_AUXILIARY);
|
|
|
|
TYPE_TO_STR(MIXERLINE_COMPONENTTYPE_SRC_ANALOG);
|
|
|
|
}
|
|
|
|
#undef TYPE_TO_STR
|
2009-11-30 10:22:10 +01:00
|
|
|
return wine_dbg_sprintf("UNKNOWN(%08x)", dwComponentType);
|
2004-08-23 00:26:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static const char * getTargetType(DWORD dwType)
|
|
|
|
{
|
|
|
|
#define TYPE_TO_STR(x) case x: return #x;
|
|
|
|
switch (dwType) {
|
|
|
|
TYPE_TO_STR(MIXERLINE_TARGETTYPE_UNDEFINED);
|
|
|
|
TYPE_TO_STR(MIXERLINE_TARGETTYPE_WAVEOUT);
|
|
|
|
TYPE_TO_STR(MIXERLINE_TARGETTYPE_WAVEIN);
|
|
|
|
TYPE_TO_STR(MIXERLINE_TARGETTYPE_MIDIOUT);
|
|
|
|
TYPE_TO_STR(MIXERLINE_TARGETTYPE_MIDIIN);
|
|
|
|
TYPE_TO_STR(MIXERLINE_TARGETTYPE_AUX);
|
|
|
|
}
|
|
|
|
#undef TYPE_TO_STR
|
2009-11-30 10:22:10 +01:00
|
|
|
return wine_dbg_sprintf("UNKNOWN(%08x)", dwType);
|
2004-08-23 00:26:48 +02:00
|
|
|
}
|
|
|
|
|
2004-12-06 21:55:25 +01:00
|
|
|
static const WCHAR sz_short_volume [] = {'V','o','l',0};
|
|
|
|
static const WCHAR sz_long_volume [] = {'V','o','l','u','m','e',0};
|
|
|
|
static const WCHAR sz_shrtlng_mute [] = {'M','u','t','e',0};
|
|
|
|
static const WCHAR sz_shrtlng_mixer[] = {'M','i','x','e','r',0};
|
|
|
|
|
2001-11-06 00:53:48 +01:00
|
|
|
/**************************************************************************
|
|
|
|
* MIX_FillLineControls [internal]
|
|
|
|
*/
|
2004-08-22 04:02:27 +02:00
|
|
|
static void MIX_FillLineControls(struct mixer* mix, int c, DWORD lineID,
|
2004-08-23 00:26:48 +02:00
|
|
|
DWORD dwControlType)
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
|
|
|
struct mixerCtrl* mc = &mix->ctrl[c];
|
|
|
|
int j;
|
|
|
|
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("(%p, %d, %08x, %s)\n", mix, c, lineID,
|
2004-08-23 00:26:48 +02:00
|
|
|
getControlType(dwControlType));
|
2004-08-20 21:22:24 +02:00
|
|
|
|
2001-11-06 00:53:48 +01:00
|
|
|
mc->dwLineID = lineID;
|
2004-12-06 21:55:25 +01:00
|
|
|
mc->ctrl.cbStruct = sizeof(MIXERCONTROLW);
|
2001-11-06 00:53:48 +01:00
|
|
|
mc->ctrl.dwControlID = c + 1;
|
2004-08-23 00:26:48 +02:00
|
|
|
mc->ctrl.dwControlType = dwControlType;
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2004-08-23 00:26:48 +02:00
|
|
|
switch (dwControlType)
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
|
|
|
case MIXERCONTROL_CONTROLTYPE_VOLUME:
|
|
|
|
mc->ctrl.fdwControl = 0;
|
|
|
|
mc->ctrl.cMultipleItems = 0;
|
2004-12-06 21:55:25 +01:00
|
|
|
strcpyW(mc->ctrl.szShortName, sz_short_volume);
|
|
|
|
strcpyW(mc->ctrl.szName, sz_long_volume);
|
2001-11-06 00:53:48 +01:00
|
|
|
memset(&mc->ctrl.Bounds, 0, sizeof(mc->ctrl.Bounds));
|
2002-06-01 01:06:46 +02:00
|
|
|
/* CONTROLTYPE_VOLUME uses the MIXER_CONTROLDETAILS_UNSIGNED struct,
|
2001-11-06 00:53:48 +01:00
|
|
|
* [0, 100] is the range supported by OSS
|
|
|
|
* whatever the min and max values are they must match
|
|
|
|
* conversions done in (Get|Set)ControlDetails to stay in [0, 100] range
|
|
|
|
*/
|
|
|
|
mc->ctrl.Bounds.s1.dwMinimum = 0;
|
|
|
|
mc->ctrl.Bounds.s1.dwMaximum = 65535;
|
|
|
|
memset(&mc->ctrl.Metrics, 0, sizeof(mc->ctrl.Metrics));
|
2004-08-22 04:02:27 +02:00
|
|
|
mc->ctrl.Metrics.cSteps = 656;
|
2001-11-06 00:53:48 +01:00
|
|
|
break;
|
|
|
|
case MIXERCONTROL_CONTROLTYPE_MUTE:
|
|
|
|
case MIXERCONTROL_CONTROLTYPE_ONOFF:
|
|
|
|
mc->ctrl.fdwControl = 0;
|
|
|
|
mc->ctrl.cMultipleItems = 0;
|
2004-12-06 21:55:25 +01:00
|
|
|
strcpyW(mc->ctrl.szShortName, sz_shrtlng_mute);
|
|
|
|
strcpyW(mc->ctrl.szName, sz_shrtlng_mute);
|
2001-11-06 00:53:48 +01:00
|
|
|
memset(&mc->ctrl.Bounds, 0, sizeof(mc->ctrl.Bounds));
|
|
|
|
mc->ctrl.Bounds.s1.dwMinimum = 0;
|
|
|
|
mc->ctrl.Bounds.s1.dwMaximum = 1;
|
|
|
|
memset(&mc->ctrl.Metrics, 0, sizeof(mc->ctrl.Metrics));
|
|
|
|
break;
|
|
|
|
case MIXERCONTROL_CONTROLTYPE_MUX:
|
|
|
|
case MIXERCONTROL_CONTROLTYPE_MIXER:
|
|
|
|
mc->ctrl.fdwControl = MIXERCONTROL_CONTROLF_MULTIPLE;
|
|
|
|
mc->ctrl.cMultipleItems = 0;
|
|
|
|
for (j = 0; j < SOUND_MIXER_NRDEVICES; j++)
|
|
|
|
if (WINE_CHN_SUPPORTS(mix->recMask, j))
|
|
|
|
mc->ctrl.cMultipleItems++;
|
2004-12-06 21:55:25 +01:00
|
|
|
strcpyW(mc->ctrl.szShortName, sz_shrtlng_mixer);
|
|
|
|
strcpyW(mc->ctrl.szName, sz_shrtlng_mixer);
|
2001-11-06 00:53:48 +01:00
|
|
|
memset(&mc->ctrl.Bounds, 0, sizeof(mc->ctrl.Bounds));
|
2004-08-27 21:38:47 +02:00
|
|
|
mc->ctrl.Bounds.s1.dwMaximum = mc->ctrl.cMultipleItems - 1;
|
2001-11-06 00:53:48 +01:00
|
|
|
memset(&mc->ctrl.Metrics, 0, sizeof(mc->ctrl.Metrics));
|
2004-08-27 21:38:47 +02:00
|
|
|
mc->ctrl.Metrics.cSteps = mc->ctrl.cMultipleItems;
|
2001-11-06 00:53:48 +01:00
|
|
|
break;
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2001-11-06 00:53:48 +01:00
|
|
|
default:
|
2006-10-06 22:59:51 +02:00
|
|
|
FIXME("Internal error: unknown type: %08x\n", dwControlType);
|
2001-11-06 00:53:48 +01:00
|
|
|
}
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("ctrl[%2d]: typ=%08x lin=%08x\n", c + 1, dwControlType, lineID);
|
2001-11-06 00:53:48 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************
|
|
|
|
* MIX_GetMixer
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
static struct mixer* MIX_Get(WORD wDevID)
|
|
|
|
{
|
2004-08-20 21:22:24 +02:00
|
|
|
TRACE("(%04x)\n", wDevID);
|
|
|
|
|
2004-08-23 00:26:48 +02:00
|
|
|
if (wDevID >= MIX_NumMixers || MIX_Mixers[wDevID].dev_name == NULL)
|
2004-08-20 21:22:24 +02:00
|
|
|
return NULL;
|
|
|
|
|
2001-11-06 00:53:48 +01:00
|
|
|
return &MIX_Mixers[wDevID];
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* MIX_Open [internal]
|
|
|
|
*/
|
|
|
|
static DWORD MIX_Open(WORD wDevID, LPMIXEROPENDESC lpMod, DWORD flags)
|
|
|
|
{
|
|
|
|
int mixer, i, j;
|
|
|
|
unsigned caps;
|
|
|
|
struct mixer* mix;
|
|
|
|
DWORD ret = MMSYSERR_NOERROR;
|
|
|
|
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("(%04X, %p, %u);\n", wDevID, lpMod, flags);
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2004-08-22 04:02:27 +02:00
|
|
|
/* as we partly init the mixer with MIX_Open, we can allow null open decs
|
|
|
|
* EPP if (lpMod == NULL) return MMSYSERR_INVALPARAM;
|
|
|
|
* anyway, it seems that WINMM/MMSYSTEM doesn't always open the mixer
|
|
|
|
* device before sending messages to it... it seems to be linked to all
|
2004-08-23 00:26:48 +02:00
|
|
|
* the equivalent of mixer identification
|
2001-11-06 00:53:48 +01:00
|
|
|
* (with a reference to a wave, midi.. handle
|
|
|
|
*/
|
2005-08-22 11:20:20 +02:00
|
|
|
if ((mix = MIX_Get(wDevID)) == NULL) {
|
|
|
|
WARN("bad device ID: %04X\n", wDevID);
|
2004-08-20 21:22:24 +02:00
|
|
|
return MMSYSERR_BADDEVICEID;
|
|
|
|
}
|
2001-11-06 00:53:48 +01:00
|
|
|
|
2004-08-23 00:26:48 +02:00
|
|
|
if ((mixer = open(mix->dev_name, O_RDWR)) < 0)
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
2004-08-22 04:02:27 +02:00
|
|
|
ERR("open(%s, O_RDWR) failed (%s)\n",
|
2004-08-23 00:26:48 +02:00
|
|
|
mix->dev_name, strerror(errno));
|
2004-08-22 04:02:27 +02:00
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
if (errno == ENODEV || errno == ENXIO)
|
|
|
|
{
|
2001-11-06 00:53:48 +01:00
|
|
|
/* no driver present */
|
2004-08-20 21:22:24 +02:00
|
|
|
WARN("no driver\n");
|
2001-11-06 00:53:48 +01:00
|
|
|
return MMSYSERR_NODRIVER;
|
|
|
|
}
|
|
|
|
return MMSYSERR_ERROR;
|
|
|
|
}
|
2002-06-01 01:06:46 +02:00
|
|
|
|
|
|
|
if (ioctl(mixer, SOUND_MIXER_READ_DEVMASK, &mix->devMask) == -1)
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
2004-08-20 21:22:24 +02:00
|
|
|
ERR("ioctl(%s, SOUND_MIXER_DEVMASK) failed (%s)\n",
|
2004-08-23 00:26:48 +02:00
|
|
|
mix->dev_name, strerror(errno));
|
2001-11-06 00:53:48 +01:00
|
|
|
ret = MMSYSERR_ERROR;
|
|
|
|
goto error;
|
|
|
|
}
|
2004-08-20 21:22:24 +02:00
|
|
|
|
2001-11-06 00:53:48 +01:00
|
|
|
mix->devMask &= WINE_MIXER_MASK_SPEAKER;
|
|
|
|
if (mix->devMask == 0)
|
|
|
|
{
|
2004-08-20 21:22:24 +02:00
|
|
|
WARN("no driver\n");
|
2001-11-06 00:53:48 +01:00
|
|
|
ret = MMSYSERR_NODRIVER;
|
|
|
|
goto error;
|
|
|
|
}
|
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
if (ioctl(mixer, SOUND_MIXER_READ_STEREODEVS, &mix->stereoMask) == -1)
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
2004-08-20 21:22:24 +02:00
|
|
|
ERR("ioctl(%s, SOUND_MIXER_STEREODEVS) failed (%s)\n",
|
2004-08-23 00:26:48 +02:00
|
|
|
mix->dev_name, strerror(errno));
|
2001-11-06 00:53:48 +01:00
|
|
|
ret = MMSYSERR_ERROR;
|
|
|
|
goto error;
|
|
|
|
}
|
|
|
|
mix->stereoMask &= WINE_MIXER_MASK_SPEAKER;
|
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
if (ioctl(mixer, SOUND_MIXER_READ_RECMASK, &mix->recMask) == -1)
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
2004-08-20 21:22:24 +02:00
|
|
|
ERR("ioctl(%s, SOUND_MIXER_RECMASK) failed (%s)\n",
|
2004-08-23 00:26:48 +02:00
|
|
|
mix->dev_name, strerror(errno));
|
2001-11-06 00:53:48 +01:00
|
|
|
ret = MMSYSERR_ERROR;
|
|
|
|
goto error;
|
|
|
|
}
|
|
|
|
mix->recMask &= WINE_MIXER_MASK_RECORD;
|
|
|
|
/* FIXME: we may need to support both rec lev & igain */
|
|
|
|
if (!WINE_CHN_SUPPORTS(mix->recMask, SOUND_MIXER_RECLEV))
|
|
|
|
{
|
|
|
|
WARN("The sound card doesn't support rec level\n");
|
|
|
|
if (WINE_CHN_SUPPORTS(mix->recMask, SOUND_MIXER_IGAIN))
|
|
|
|
WARN("but it does support IGain, please report\n");
|
|
|
|
}
|
2002-06-01 01:06:46 +02:00
|
|
|
if (ioctl(mixer, SOUND_MIXER_READ_CAPS, &caps) == -1)
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
2004-08-20 21:22:24 +02:00
|
|
|
ERR("ioctl(%s, SOUND_MIXER_READ_CAPS) failed (%s)\n",
|
2004-08-23 00:26:48 +02:00
|
|
|
mix->dev_name, strerror(errno));
|
2001-11-06 00:53:48 +01:00
|
|
|
ret = MMSYSERR_ERROR;
|
|
|
|
goto error;
|
|
|
|
}
|
|
|
|
mix->singleRecChannel = caps & SOUND_CAP_EXCL_INPUT;
|
2002-06-01 01:06:46 +02:00
|
|
|
TRACE("dev=%04x rec=%04x stereo=%04x %s\n",
|
|
|
|
mix->devMask, mix->recMask, mix->stereoMask,
|
2001-11-06 00:53:48 +01:00
|
|
|
mix->singleRecChannel ? "single" : "multiple");
|
2002-06-01 01:06:46 +02:00
|
|
|
for (i = 0; i < SOUND_MIXER_NRDEVICES; i++)
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
|
|
|
mix->volume[i] = -1;
|
|
|
|
}
|
|
|
|
mix->numCtrl = 4; /* dst lines... vol&mute on speakers, vol&onoff on rec */
|
|
|
|
/* FIXME: do we always have RECLEV on all cards ??? */
|
|
|
|
for (i = 0; i < SOUND_MIXER_NRDEVICES; i++)
|
|
|
|
{
|
|
|
|
if (WINE_CHN_SUPPORTS(mix->devMask, i))
|
|
|
|
mix->numCtrl += 2; /* volume & mute */
|
|
|
|
if (WINE_CHN_SUPPORTS(mix->recMask, i))
|
|
|
|
mix->numCtrl += 2; /* volume & onoff */
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2001-11-06 00:53:48 +01:00
|
|
|
}
|
2004-08-22 04:02:27 +02:00
|
|
|
if (!(mix->ctrl = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
|
|
|
|
sizeof(mix->ctrl[0]) * mix->numCtrl)))
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
|
|
|
ret = MMSYSERR_NOMEM;
|
|
|
|
goto error;
|
|
|
|
}
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2001-11-06 00:53:48 +01:00
|
|
|
j = 0;
|
2004-08-22 04:02:27 +02:00
|
|
|
MIX_FillLineControls(mix, j++, MAKELONG(0, LINEID_DST),
|
|
|
|
MIXERCONTROL_CONTROLTYPE_VOLUME);
|
|
|
|
MIX_FillLineControls(mix, j++, MAKELONG(0, LINEID_DST),
|
|
|
|
MIXERCONTROL_CONTROLTYPE_MUTE);
|
2002-06-01 01:06:46 +02:00
|
|
|
MIX_FillLineControls(mix, j++, MAKELONG(1, LINEID_DST),
|
2001-11-06 00:53:48 +01:00
|
|
|
mix->singleRecChannel ?
|
2004-08-22 04:02:27 +02:00
|
|
|
MIXERCONTROL_CONTROLTYPE_MUX :
|
|
|
|
MIXERCONTROL_CONTROLTYPE_MIXER);
|
|
|
|
MIX_FillLineControls(mix, j++, MAKELONG(1, LINEID_DST),
|
|
|
|
MIXERCONTROL_CONTROLTYPE_MUTE/*EPP*/);
|
2001-11-06 00:53:48 +01:00
|
|
|
for (i = 0; i < SOUND_MIXER_NRDEVICES; i++)
|
|
|
|
{
|
|
|
|
if (WINE_CHN_SUPPORTS(mix->devMask, i))
|
|
|
|
{
|
|
|
|
MIX_FillLineControls(mix, j++, MAKELONG(LINEID_SPEAKER, i),
|
|
|
|
MIXERCONTROL_CONTROLTYPE_VOLUME);
|
|
|
|
MIX_FillLineControls(mix, j++, MAKELONG(LINEID_SPEAKER, i),
|
|
|
|
MIXERCONTROL_CONTROLTYPE_MUTE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
for (i = 0; i < SOUND_MIXER_NRDEVICES; i++)
|
|
|
|
{
|
|
|
|
if (WINE_CHN_SUPPORTS(mix->recMask, i))
|
|
|
|
{
|
|
|
|
MIX_FillLineControls(mix, j++, MAKELONG(LINEID_RECORD, i),
|
|
|
|
MIXERCONTROL_CONTROLTYPE_VOLUME);
|
|
|
|
MIX_FillLineControls(mix, j++, MAKELONG(LINEID_RECORD, i),
|
|
|
|
MIXERCONTROL_CONTROLTYPE_MUTE/*EPP*/);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
assert(j == mix->numCtrl);
|
|
|
|
error:
|
|
|
|
close(mixer);
|
|
|
|
return ret;
|
|
|
|
}
|
1999-10-23 15:59:21 +02:00
|
|
|
|
Release 971101
Thu Oct 30 21:52:23 1997 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [windows/nonclient.c]
Changed NC_TrackSysMenu to give the same behaviour as MS-Windows,
i.e. system menu already appears when mouse button is depressed.
Changed NC_HandleNCLButtonDblClk so that double clicks on scroll
bar arrows are handled the same way as single clicks.
* [windows/winpos.c]
Fixed SetWindowPos32 to clear WIN_NO_REDRAW when SWP_SHOWWINDOW is
set; this is the way MS-Windows behaves.
Thu Oct 30 21:08:57 1997 Morten Welinder <terra@diku.dk>
* [controls/status.c]
In SW_SetText, fix condition, I hope.
* [controls/menu.c]
(GetMenuState32): Don't mask return value. Print more debug info.
(MENU_MenuBarCalcSize): Be more careful when printing debug
information.
(MENU_SetItemData): Empty strings are separators.
* [graphics/x11drv/text.c]
Don't prototype CLIPPING_IntersectClipRect.
* [include/dc.h]
Prototype CLIPPING_IntersectClipRect.
* [objects/font.c]
Remove non-portable (and faulty) smartness in FONT_TextMetric*to*.
In CreateFont32W and CreateFont16, handle null font name.
* [objects/text.c]
(TEXT_NextLine): Fix end-of-line bug.
* [if1632/shell32.spec]
Activate existing implementation of ExtractIconA.
* [misc/shell.c]
For Control_RunDLL, add types for parameters.
Thu Oct 30 14:54:11 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [controls/static.c] [include/windows.h] [misc/spy.c]
Added some win32 defines to static controls, basic SS_BITMAP style
handling implemented. [please add more, I am lacking knowledge and
time]
* [controls/status.c]
part_num 255 seems to indicate whole statusline (win95 cdplayer.exe)
* [if1632/thunk.c] [tools/build.c]
Support lret and 0x66 lret calls for CallTo16_regs
(needed for KERNEL32_45)
Fixed KERNEL32_45, QT_Thunk (should work now).
* [if1632/relay.c][if1632/builtin.c][tools/build.c][if1632/*32.spec]
Added string dumping to relay debugging for win32 apifuncs.
* [misc/ver.c]
Fixed and cleaned up VerQueryValue*.
* [multimedia/*.c][include/mmsystem.h][if1632/mmsystem.spec]
[if1632/winmm.spec]
Win32 support for lowlevel multimedia functions.
Added some mixer* lowlevel functions.
Some small fixes in the audio lowlevel queue handling, code
reformatting/cleanups.
* [debugger/hash.c]
Don't show difference between 16bit symbols if they are in
different segments.
* [objects/cursoricon.c]
Added GetIconInfo (partial) and CreateIconIndirect.
* [windows/mdi.c]
Fixed some "bad class" problems and crashes in MDICreateChild,
which happen in Win32 (jwp32.exe).
Wed Oct 29 00:57:27 1997 Bruce Milner <Bruce.Milner@genetics.utah.edu>
* [if1632/winaspi.spec] [misc/aspi.c] [include/aspi.c]
[documentation/aspi] [include/callback.h]
Added support for 16 bit ASPI calls to linux generic SCSI.
The support is not complete, but appears to run my Mustek
scanner from within ipplus.exe.
Mon Oct 27 00:59:41 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [windows/dce.c]
DC reuse framework.
Sun Oct 26 18:41:21 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [graphics/x11drv/xfont.c]
Substituted fonts are removed from the alias table. References to
the old name are also updated.
* [controls/combo.c]
LB_SELECTSTRING32 not CB_SELECTSTRING32 should be sent to
ComboLBox.
Sun Oct 26 14:25:00 1997 Nikita V. Youshchenko <yoush@cs.msu.su>
* [include/drive.h] [files/drive.c] [msdos/int21.c]
Partially implemented DOS drive mapping (int21 AX=440F).
Sat Oct 25 13:03:29 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [debugger/debug.l]
Support '.' in identifiers. Use "x . y" to access structure
fields.
* [debugger/hash.c] [loader/pe_image.c]
Load entry points of Win32 modules only when entering the
debugger.
* [debugger/break.c]
New function DEBUG_AddModuleBreakpoint() to set a breakpoint at
the start of every module.
* [files/file.c]
FILE_mmap() can now fake mmap() for unaligned offsets or broken
filesystems.
* [include/callback.h] [misc/callback.c] [if1632/thunk.c]
Use a table of callbacks instead of macros to differentiate
between emulator and Winelib.
* [loader/task.c]
Initialize current directory from cwd, not from module path.
* [tools/build.c]
Read CallTo16 prototypes directly from thunk.c source file.
* [windows/winproc.c] [windows/mdi.c]
Added translation for WM_MDIACTIVATE and WM_MDIGETACTIVE.
Fri Oct 24 21:41:25 1997 Uwe Bonnes <bon@elektron.ikp.tu-darmstadt.de>
* [files/drive.c]
Allow arguments like "a" for the drive related apis.
* [memory/global.c]
Keep the calculation for dwMemoryLoad in range.
* [misc/crtdll.c]
Make CRTDLL_getcwd use GetCurrentDirectory32A and alloc
its memory if requested.
Implemented CRTDLL_rename and CRTDLL_stat needed for
lcc-win32:wedit.exe.
Implemented CRTDLL__fullpath.
* [misc/comm.c]
High speed modes for the 16-bit mode Comm functions.
* [misc/cpu.c]
As applications may treat lpMaximumApplicationAddress as long,
use a valid long number.
* [misc/main.c]
In SystemParametersInfo16 ignore SPI_GETHIGHCONTRAST too.
* [misc/ole2nls.c]
Implement LCMAP_UPPERCASE for LCMapString32.
* [misc/wsprintf]
Made WPRINTF_ParseFormatA understand %ws.
* [win32/file.c]
Ignore FILE_ATTRIBUTE_NORMAL.
Stub for ReadFileEx.
Fri Oct 24 15:36:02 1997 Doug Ridgway <ridgway@routh.ucsd.edu>
* [memory/local.c]
Local heap exhaustion message now prints which builtin heap filled.
Fri Oct 24 00:46:34 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [windows/dialog.c]
Reversed CreateFont16/32W typo.
Thu Oct 23 23:44:20 1997 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [if1632/user.spec]
Fixed argument list for ChangeClipboardChain.
* [windows/mdi.c]
Pass correct hInstance to CreateWindow16() in MDICreateChild().
Mon Oct 20 11:51:24 1997 Carsten Fallesen <cf@it.dtu.dk>
* [objects/metafile.c]
Added support for META_SETTEXTCHAREXTRA.
* [objects/region.c]
Fixed crash in XPolygonRegion if there is only one point in
in the region.
* [if1632/gdi32.spec][include/gdi.h][include/windows.h]
[objects/gdiobj.c]
Completed OBJ_XXX defines in gdi.h, removed OBJ_XXX in gdiobj.c
and included gdi.h instead. Implemented GetObjectType32().
Thu Oct 16 17:21:32 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
* [documentation/wine.texinfo]
Fixed WIN32 and Makefiles entries of Reference manual node, that
made makeinfo dump core.
Mon Oct 13 17:15:57 1997 Robert Wilhelm <robert@physiol.med.tu-muenchen.de>
* [if1632/crtdll.spec]
Added missing math functions y0(), y1(), y2(), floor(), frexp(),
ldexp(), modf().
1997-11-01 20:08:16 +01:00
|
|
|
/**************************************************************************
|
1999-05-03 11:26:48 +02:00
|
|
|
* MIX_GetVal [internal]
|
Release 971101
Thu Oct 30 21:52:23 1997 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [windows/nonclient.c]
Changed NC_TrackSysMenu to give the same behaviour as MS-Windows,
i.e. system menu already appears when mouse button is depressed.
Changed NC_HandleNCLButtonDblClk so that double clicks on scroll
bar arrows are handled the same way as single clicks.
* [windows/winpos.c]
Fixed SetWindowPos32 to clear WIN_NO_REDRAW when SWP_SHOWWINDOW is
set; this is the way MS-Windows behaves.
Thu Oct 30 21:08:57 1997 Morten Welinder <terra@diku.dk>
* [controls/status.c]
In SW_SetText, fix condition, I hope.
* [controls/menu.c]
(GetMenuState32): Don't mask return value. Print more debug info.
(MENU_MenuBarCalcSize): Be more careful when printing debug
information.
(MENU_SetItemData): Empty strings are separators.
* [graphics/x11drv/text.c]
Don't prototype CLIPPING_IntersectClipRect.
* [include/dc.h]
Prototype CLIPPING_IntersectClipRect.
* [objects/font.c]
Remove non-portable (and faulty) smartness in FONT_TextMetric*to*.
In CreateFont32W and CreateFont16, handle null font name.
* [objects/text.c]
(TEXT_NextLine): Fix end-of-line bug.
* [if1632/shell32.spec]
Activate existing implementation of ExtractIconA.
* [misc/shell.c]
For Control_RunDLL, add types for parameters.
Thu Oct 30 14:54:11 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [controls/static.c] [include/windows.h] [misc/spy.c]
Added some win32 defines to static controls, basic SS_BITMAP style
handling implemented. [please add more, I am lacking knowledge and
time]
* [controls/status.c]
part_num 255 seems to indicate whole statusline (win95 cdplayer.exe)
* [if1632/thunk.c] [tools/build.c]
Support lret and 0x66 lret calls for CallTo16_regs
(needed for KERNEL32_45)
Fixed KERNEL32_45, QT_Thunk (should work now).
* [if1632/relay.c][if1632/builtin.c][tools/build.c][if1632/*32.spec]
Added string dumping to relay debugging for win32 apifuncs.
* [misc/ver.c]
Fixed and cleaned up VerQueryValue*.
* [multimedia/*.c][include/mmsystem.h][if1632/mmsystem.spec]
[if1632/winmm.spec]
Win32 support for lowlevel multimedia functions.
Added some mixer* lowlevel functions.
Some small fixes in the audio lowlevel queue handling, code
reformatting/cleanups.
* [debugger/hash.c]
Don't show difference between 16bit symbols if they are in
different segments.
* [objects/cursoricon.c]
Added GetIconInfo (partial) and CreateIconIndirect.
* [windows/mdi.c]
Fixed some "bad class" problems and crashes in MDICreateChild,
which happen in Win32 (jwp32.exe).
Wed Oct 29 00:57:27 1997 Bruce Milner <Bruce.Milner@genetics.utah.edu>
* [if1632/winaspi.spec] [misc/aspi.c] [include/aspi.c]
[documentation/aspi] [include/callback.h]
Added support for 16 bit ASPI calls to linux generic SCSI.
The support is not complete, but appears to run my Mustek
scanner from within ipplus.exe.
Mon Oct 27 00:59:41 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [windows/dce.c]
DC reuse framework.
Sun Oct 26 18:41:21 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [graphics/x11drv/xfont.c]
Substituted fonts are removed from the alias table. References to
the old name are also updated.
* [controls/combo.c]
LB_SELECTSTRING32 not CB_SELECTSTRING32 should be sent to
ComboLBox.
Sun Oct 26 14:25:00 1997 Nikita V. Youshchenko <yoush@cs.msu.su>
* [include/drive.h] [files/drive.c] [msdos/int21.c]
Partially implemented DOS drive mapping (int21 AX=440F).
Sat Oct 25 13:03:29 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [debugger/debug.l]
Support '.' in identifiers. Use "x . y" to access structure
fields.
* [debugger/hash.c] [loader/pe_image.c]
Load entry points of Win32 modules only when entering the
debugger.
* [debugger/break.c]
New function DEBUG_AddModuleBreakpoint() to set a breakpoint at
the start of every module.
* [files/file.c]
FILE_mmap() can now fake mmap() for unaligned offsets or broken
filesystems.
* [include/callback.h] [misc/callback.c] [if1632/thunk.c]
Use a table of callbacks instead of macros to differentiate
between emulator and Winelib.
* [loader/task.c]
Initialize current directory from cwd, not from module path.
* [tools/build.c]
Read CallTo16 prototypes directly from thunk.c source file.
* [windows/winproc.c] [windows/mdi.c]
Added translation for WM_MDIACTIVATE and WM_MDIGETACTIVE.
Fri Oct 24 21:41:25 1997 Uwe Bonnes <bon@elektron.ikp.tu-darmstadt.de>
* [files/drive.c]
Allow arguments like "a" for the drive related apis.
* [memory/global.c]
Keep the calculation for dwMemoryLoad in range.
* [misc/crtdll.c]
Make CRTDLL_getcwd use GetCurrentDirectory32A and alloc
its memory if requested.
Implemented CRTDLL_rename and CRTDLL_stat needed for
lcc-win32:wedit.exe.
Implemented CRTDLL__fullpath.
* [misc/comm.c]
High speed modes for the 16-bit mode Comm functions.
* [misc/cpu.c]
As applications may treat lpMaximumApplicationAddress as long,
use a valid long number.
* [misc/main.c]
In SystemParametersInfo16 ignore SPI_GETHIGHCONTRAST too.
* [misc/ole2nls.c]
Implement LCMAP_UPPERCASE for LCMapString32.
* [misc/wsprintf]
Made WPRINTF_ParseFormatA understand %ws.
* [win32/file.c]
Ignore FILE_ATTRIBUTE_NORMAL.
Stub for ReadFileEx.
Fri Oct 24 15:36:02 1997 Doug Ridgway <ridgway@routh.ucsd.edu>
* [memory/local.c]
Local heap exhaustion message now prints which builtin heap filled.
Fri Oct 24 00:46:34 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [windows/dialog.c]
Reversed CreateFont16/32W typo.
Thu Oct 23 23:44:20 1997 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [if1632/user.spec]
Fixed argument list for ChangeClipboardChain.
* [windows/mdi.c]
Pass correct hInstance to CreateWindow16() in MDICreateChild().
Mon Oct 20 11:51:24 1997 Carsten Fallesen <cf@it.dtu.dk>
* [objects/metafile.c]
Added support for META_SETTEXTCHAREXTRA.
* [objects/region.c]
Fixed crash in XPolygonRegion if there is only one point in
in the region.
* [if1632/gdi32.spec][include/gdi.h][include/windows.h]
[objects/gdiobj.c]
Completed OBJ_XXX defines in gdi.h, removed OBJ_XXX in gdiobj.c
and included gdi.h instead. Implemented GetObjectType32().
Thu Oct 16 17:21:32 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
* [documentation/wine.texinfo]
Fixed WIN32 and Makefiles entries of Reference manual node, that
made makeinfo dump core.
Mon Oct 13 17:15:57 1997 Robert Wilhelm <robert@physiol.med.tu-muenchen.de>
* [if1632/crtdll.spec]
Added missing math functions y0(), y1(), y2(), floor(), frexp(),
ldexp(), modf().
1997-11-01 20:08:16 +01:00
|
|
|
*/
|
2001-11-06 00:53:48 +01:00
|
|
|
static BOOL MIX_GetVal(struct mixer* mix, int chn, int* val)
|
Release 971101
Thu Oct 30 21:52:23 1997 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [windows/nonclient.c]
Changed NC_TrackSysMenu to give the same behaviour as MS-Windows,
i.e. system menu already appears when mouse button is depressed.
Changed NC_HandleNCLButtonDblClk so that double clicks on scroll
bar arrows are handled the same way as single clicks.
* [windows/winpos.c]
Fixed SetWindowPos32 to clear WIN_NO_REDRAW when SWP_SHOWWINDOW is
set; this is the way MS-Windows behaves.
Thu Oct 30 21:08:57 1997 Morten Welinder <terra@diku.dk>
* [controls/status.c]
In SW_SetText, fix condition, I hope.
* [controls/menu.c]
(GetMenuState32): Don't mask return value. Print more debug info.
(MENU_MenuBarCalcSize): Be more careful when printing debug
information.
(MENU_SetItemData): Empty strings are separators.
* [graphics/x11drv/text.c]
Don't prototype CLIPPING_IntersectClipRect.
* [include/dc.h]
Prototype CLIPPING_IntersectClipRect.
* [objects/font.c]
Remove non-portable (and faulty) smartness in FONT_TextMetric*to*.
In CreateFont32W and CreateFont16, handle null font name.
* [objects/text.c]
(TEXT_NextLine): Fix end-of-line bug.
* [if1632/shell32.spec]
Activate existing implementation of ExtractIconA.
* [misc/shell.c]
For Control_RunDLL, add types for parameters.
Thu Oct 30 14:54:11 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [controls/static.c] [include/windows.h] [misc/spy.c]
Added some win32 defines to static controls, basic SS_BITMAP style
handling implemented. [please add more, I am lacking knowledge and
time]
* [controls/status.c]
part_num 255 seems to indicate whole statusline (win95 cdplayer.exe)
* [if1632/thunk.c] [tools/build.c]
Support lret and 0x66 lret calls for CallTo16_regs
(needed for KERNEL32_45)
Fixed KERNEL32_45, QT_Thunk (should work now).
* [if1632/relay.c][if1632/builtin.c][tools/build.c][if1632/*32.spec]
Added string dumping to relay debugging for win32 apifuncs.
* [misc/ver.c]
Fixed and cleaned up VerQueryValue*.
* [multimedia/*.c][include/mmsystem.h][if1632/mmsystem.spec]
[if1632/winmm.spec]
Win32 support for lowlevel multimedia functions.
Added some mixer* lowlevel functions.
Some small fixes in the audio lowlevel queue handling, code
reformatting/cleanups.
* [debugger/hash.c]
Don't show difference between 16bit symbols if they are in
different segments.
* [objects/cursoricon.c]
Added GetIconInfo (partial) and CreateIconIndirect.
* [windows/mdi.c]
Fixed some "bad class" problems and crashes in MDICreateChild,
which happen in Win32 (jwp32.exe).
Wed Oct 29 00:57:27 1997 Bruce Milner <Bruce.Milner@genetics.utah.edu>
* [if1632/winaspi.spec] [misc/aspi.c] [include/aspi.c]
[documentation/aspi] [include/callback.h]
Added support for 16 bit ASPI calls to linux generic SCSI.
The support is not complete, but appears to run my Mustek
scanner from within ipplus.exe.
Mon Oct 27 00:59:41 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [windows/dce.c]
DC reuse framework.
Sun Oct 26 18:41:21 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [graphics/x11drv/xfont.c]
Substituted fonts are removed from the alias table. References to
the old name are also updated.
* [controls/combo.c]
LB_SELECTSTRING32 not CB_SELECTSTRING32 should be sent to
ComboLBox.
Sun Oct 26 14:25:00 1997 Nikita V. Youshchenko <yoush@cs.msu.su>
* [include/drive.h] [files/drive.c] [msdos/int21.c]
Partially implemented DOS drive mapping (int21 AX=440F).
Sat Oct 25 13:03:29 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [debugger/debug.l]
Support '.' in identifiers. Use "x . y" to access structure
fields.
* [debugger/hash.c] [loader/pe_image.c]
Load entry points of Win32 modules only when entering the
debugger.
* [debugger/break.c]
New function DEBUG_AddModuleBreakpoint() to set a breakpoint at
the start of every module.
* [files/file.c]
FILE_mmap() can now fake mmap() for unaligned offsets or broken
filesystems.
* [include/callback.h] [misc/callback.c] [if1632/thunk.c]
Use a table of callbacks instead of macros to differentiate
between emulator and Winelib.
* [loader/task.c]
Initialize current directory from cwd, not from module path.
* [tools/build.c]
Read CallTo16 prototypes directly from thunk.c source file.
* [windows/winproc.c] [windows/mdi.c]
Added translation for WM_MDIACTIVATE and WM_MDIGETACTIVE.
Fri Oct 24 21:41:25 1997 Uwe Bonnes <bon@elektron.ikp.tu-darmstadt.de>
* [files/drive.c]
Allow arguments like "a" for the drive related apis.
* [memory/global.c]
Keep the calculation for dwMemoryLoad in range.
* [misc/crtdll.c]
Make CRTDLL_getcwd use GetCurrentDirectory32A and alloc
its memory if requested.
Implemented CRTDLL_rename and CRTDLL_stat needed for
lcc-win32:wedit.exe.
Implemented CRTDLL__fullpath.
* [misc/comm.c]
High speed modes for the 16-bit mode Comm functions.
* [misc/cpu.c]
As applications may treat lpMaximumApplicationAddress as long,
use a valid long number.
* [misc/main.c]
In SystemParametersInfo16 ignore SPI_GETHIGHCONTRAST too.
* [misc/ole2nls.c]
Implement LCMAP_UPPERCASE for LCMapString32.
* [misc/wsprintf]
Made WPRINTF_ParseFormatA understand %ws.
* [win32/file.c]
Ignore FILE_ATTRIBUTE_NORMAL.
Stub for ReadFileEx.
Fri Oct 24 15:36:02 1997 Doug Ridgway <ridgway@routh.ucsd.edu>
* [memory/local.c]
Local heap exhaustion message now prints which builtin heap filled.
Fri Oct 24 00:46:34 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [windows/dialog.c]
Reversed CreateFont16/32W typo.
Thu Oct 23 23:44:20 1997 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [if1632/user.spec]
Fixed argument list for ChangeClipboardChain.
* [windows/mdi.c]
Pass correct hInstance to CreateWindow16() in MDICreateChild().
Mon Oct 20 11:51:24 1997 Carsten Fallesen <cf@it.dtu.dk>
* [objects/metafile.c]
Added support for META_SETTEXTCHAREXTRA.
* [objects/region.c]
Fixed crash in XPolygonRegion if there is only one point in
in the region.
* [if1632/gdi32.spec][include/gdi.h][include/windows.h]
[objects/gdiobj.c]
Completed OBJ_XXX defines in gdi.h, removed OBJ_XXX in gdiobj.c
and included gdi.h instead. Implemented GetObjectType32().
Thu Oct 16 17:21:32 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
* [documentation/wine.texinfo]
Fixed WIN32 and Makefiles entries of Reference manual node, that
made makeinfo dump core.
Mon Oct 13 17:15:57 1997 Robert Wilhelm <robert@physiol.med.tu-muenchen.de>
* [if1632/crtdll.spec]
Added missing math functions y0(), y1(), y2(), floor(), frexp(),
ldexp(), modf().
1997-11-01 20:08:16 +01:00
|
|
|
{
|
1999-05-03 11:26:48 +02:00
|
|
|
int mixer;
|
|
|
|
BOOL ret = FALSE;
|
Release 971101
Thu Oct 30 21:52:23 1997 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [windows/nonclient.c]
Changed NC_TrackSysMenu to give the same behaviour as MS-Windows,
i.e. system menu already appears when mouse button is depressed.
Changed NC_HandleNCLButtonDblClk so that double clicks on scroll
bar arrows are handled the same way as single clicks.
* [windows/winpos.c]
Fixed SetWindowPos32 to clear WIN_NO_REDRAW when SWP_SHOWWINDOW is
set; this is the way MS-Windows behaves.
Thu Oct 30 21:08:57 1997 Morten Welinder <terra@diku.dk>
* [controls/status.c]
In SW_SetText, fix condition, I hope.
* [controls/menu.c]
(GetMenuState32): Don't mask return value. Print more debug info.
(MENU_MenuBarCalcSize): Be more careful when printing debug
information.
(MENU_SetItemData): Empty strings are separators.
* [graphics/x11drv/text.c]
Don't prototype CLIPPING_IntersectClipRect.
* [include/dc.h]
Prototype CLIPPING_IntersectClipRect.
* [objects/font.c]
Remove non-portable (and faulty) smartness in FONT_TextMetric*to*.
In CreateFont32W and CreateFont16, handle null font name.
* [objects/text.c]
(TEXT_NextLine): Fix end-of-line bug.
* [if1632/shell32.spec]
Activate existing implementation of ExtractIconA.
* [misc/shell.c]
For Control_RunDLL, add types for parameters.
Thu Oct 30 14:54:11 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [controls/static.c] [include/windows.h] [misc/spy.c]
Added some win32 defines to static controls, basic SS_BITMAP style
handling implemented. [please add more, I am lacking knowledge and
time]
* [controls/status.c]
part_num 255 seems to indicate whole statusline (win95 cdplayer.exe)
* [if1632/thunk.c] [tools/build.c]
Support lret and 0x66 lret calls for CallTo16_regs
(needed for KERNEL32_45)
Fixed KERNEL32_45, QT_Thunk (should work now).
* [if1632/relay.c][if1632/builtin.c][tools/build.c][if1632/*32.spec]
Added string dumping to relay debugging for win32 apifuncs.
* [misc/ver.c]
Fixed and cleaned up VerQueryValue*.
* [multimedia/*.c][include/mmsystem.h][if1632/mmsystem.spec]
[if1632/winmm.spec]
Win32 support for lowlevel multimedia functions.
Added some mixer* lowlevel functions.
Some small fixes in the audio lowlevel queue handling, code
reformatting/cleanups.
* [debugger/hash.c]
Don't show difference between 16bit symbols if they are in
different segments.
* [objects/cursoricon.c]
Added GetIconInfo (partial) and CreateIconIndirect.
* [windows/mdi.c]
Fixed some "bad class" problems and crashes in MDICreateChild,
which happen in Win32 (jwp32.exe).
Wed Oct 29 00:57:27 1997 Bruce Milner <Bruce.Milner@genetics.utah.edu>
* [if1632/winaspi.spec] [misc/aspi.c] [include/aspi.c]
[documentation/aspi] [include/callback.h]
Added support for 16 bit ASPI calls to linux generic SCSI.
The support is not complete, but appears to run my Mustek
scanner from within ipplus.exe.
Mon Oct 27 00:59:41 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [windows/dce.c]
DC reuse framework.
Sun Oct 26 18:41:21 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [graphics/x11drv/xfont.c]
Substituted fonts are removed from the alias table. References to
the old name are also updated.
* [controls/combo.c]
LB_SELECTSTRING32 not CB_SELECTSTRING32 should be sent to
ComboLBox.
Sun Oct 26 14:25:00 1997 Nikita V. Youshchenko <yoush@cs.msu.su>
* [include/drive.h] [files/drive.c] [msdos/int21.c]
Partially implemented DOS drive mapping (int21 AX=440F).
Sat Oct 25 13:03:29 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [debugger/debug.l]
Support '.' in identifiers. Use "x . y" to access structure
fields.
* [debugger/hash.c] [loader/pe_image.c]
Load entry points of Win32 modules only when entering the
debugger.
* [debugger/break.c]
New function DEBUG_AddModuleBreakpoint() to set a breakpoint at
the start of every module.
* [files/file.c]
FILE_mmap() can now fake mmap() for unaligned offsets or broken
filesystems.
* [include/callback.h] [misc/callback.c] [if1632/thunk.c]
Use a table of callbacks instead of macros to differentiate
between emulator and Winelib.
* [loader/task.c]
Initialize current directory from cwd, not from module path.
* [tools/build.c]
Read CallTo16 prototypes directly from thunk.c source file.
* [windows/winproc.c] [windows/mdi.c]
Added translation for WM_MDIACTIVATE and WM_MDIGETACTIVE.
Fri Oct 24 21:41:25 1997 Uwe Bonnes <bon@elektron.ikp.tu-darmstadt.de>
* [files/drive.c]
Allow arguments like "a" for the drive related apis.
* [memory/global.c]
Keep the calculation for dwMemoryLoad in range.
* [misc/crtdll.c]
Make CRTDLL_getcwd use GetCurrentDirectory32A and alloc
its memory if requested.
Implemented CRTDLL_rename and CRTDLL_stat needed for
lcc-win32:wedit.exe.
Implemented CRTDLL__fullpath.
* [misc/comm.c]
High speed modes for the 16-bit mode Comm functions.
* [misc/cpu.c]
As applications may treat lpMaximumApplicationAddress as long,
use a valid long number.
* [misc/main.c]
In SystemParametersInfo16 ignore SPI_GETHIGHCONTRAST too.
* [misc/ole2nls.c]
Implement LCMAP_UPPERCASE for LCMapString32.
* [misc/wsprintf]
Made WPRINTF_ParseFormatA understand %ws.
* [win32/file.c]
Ignore FILE_ATTRIBUTE_NORMAL.
Stub for ReadFileEx.
Fri Oct 24 15:36:02 1997 Doug Ridgway <ridgway@routh.ucsd.edu>
* [memory/local.c]
Local heap exhaustion message now prints which builtin heap filled.
Fri Oct 24 00:46:34 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [windows/dialog.c]
Reversed CreateFont16/32W typo.
Thu Oct 23 23:44:20 1997 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [if1632/user.spec]
Fixed argument list for ChangeClipboardChain.
* [windows/mdi.c]
Pass correct hInstance to CreateWindow16() in MDICreateChild().
Mon Oct 20 11:51:24 1997 Carsten Fallesen <cf@it.dtu.dk>
* [objects/metafile.c]
Added support for META_SETTEXTCHAREXTRA.
* [objects/region.c]
Fixed crash in XPolygonRegion if there is only one point in
in the region.
* [if1632/gdi32.spec][include/gdi.h][include/windows.h]
[objects/gdiobj.c]
Completed OBJ_XXX defines in gdi.h, removed OBJ_XXX in gdiobj.c
and included gdi.h instead. Implemented GetObjectType32().
Thu Oct 16 17:21:32 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
* [documentation/wine.texinfo]
Fixed WIN32 and Makefiles entries of Reference manual node, that
made makeinfo dump core.
Mon Oct 13 17:15:57 1997 Robert Wilhelm <robert@physiol.med.tu-muenchen.de>
* [if1632/crtdll.spec]
Added missing math functions y0(), y1(), y2(), floor(), frexp(),
ldexp(), modf().
1997-11-01 20:08:16 +01:00
|
|
|
|
2004-08-22 04:02:27 +02:00
|
|
|
TRACE("(%p, %s, %p\n", mix, getIoctlCommand(chn), val);
|
2004-08-20 21:22:24 +02:00
|
|
|
|
2004-08-23 00:26:48 +02:00
|
|
|
if ((mixer = open(mix->dev_name, O_RDWR)) < 0) {
|
1999-05-03 11:26:48 +02:00
|
|
|
/* FIXME: ENXIO => no mixer installed */
|
|
|
|
WARN("mixer device not available !\n");
|
2004-08-22 04:02:27 +02:00
|
|
|
} else {
|
|
|
|
if (ioctl(mixer, MIXER_READ(chn), val) >= 0) {
|
|
|
|
TRACE("Reading %04x for %s\n", *val, getIoctlCommand(chn));
|
1999-05-03 11:26:48 +02:00
|
|
|
ret = TRUE;
|
2004-08-22 04:02:27 +02:00
|
|
|
} else {
|
|
|
|
ERR("ioctl(%s, MIXER_READ(%s)) failed (%s)\n",
|
2004-08-23 00:26:48 +02:00
|
|
|
mix->dev_name, getIoctlCommand(chn), strerror(errno));
|
2004-08-22 04:02:27 +02:00
|
|
|
}
|
1999-05-03 11:26:48 +02:00
|
|
|
close(mixer);
|
|
|
|
}
|
|
|
|
return ret;
|
|
|
|
}
|
1999-03-22 15:50:38 +01:00
|
|
|
|
1999-05-03 11:26:48 +02:00
|
|
|
/**************************************************************************
|
|
|
|
* MIX_SetVal [internal]
|
|
|
|
*/
|
2001-11-06 00:53:48 +01:00
|
|
|
static BOOL MIX_SetVal(struct mixer* mix, int chn, int val)
|
1999-05-03 11:26:48 +02:00
|
|
|
{
|
|
|
|
int mixer;
|
|
|
|
BOOL ret = FALSE;
|
1999-03-22 15:50:38 +01:00
|
|
|
|
2004-08-22 04:02:27 +02:00
|
|
|
TRACE("(%p, %s, %x)\n", mix, getIoctlCommand(chn), val);
|
1999-03-22 15:50:38 +01:00
|
|
|
|
2004-08-23 00:26:48 +02:00
|
|
|
if ((mixer = open(mix->dev_name, O_RDWR)) < 0) {
|
1999-05-03 11:26:48 +02:00
|
|
|
/* FIXME: ENXIO => no mixer installed */
|
|
|
|
WARN("mixer device not available !\n");
|
2004-08-22 04:02:27 +02:00
|
|
|
} else {
|
|
|
|
if (ioctl(mixer, MIXER_WRITE(chn), &val) >= 0) {
|
|
|
|
TRACE("Set %s to %04x\n", getIoctlCommand(chn), val);
|
1999-05-03 11:26:48 +02:00
|
|
|
ret = TRUE;
|
2004-08-22 04:02:27 +02:00
|
|
|
} else {
|
|
|
|
ERR("ioctl(%s, MIXER_WRITE(%s)) failed (%s)\n",
|
2004-08-23 00:26:48 +02:00
|
|
|
mix->dev_name, getIoctlCommand(chn), strerror(errno));
|
2004-08-22 04:02:27 +02:00
|
|
|
}
|
1999-05-03 11:26:48 +02:00
|
|
|
close(mixer);
|
|
|
|
}
|
|
|
|
return ret;
|
|
|
|
}
|
Release 971101
Thu Oct 30 21:52:23 1997 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [windows/nonclient.c]
Changed NC_TrackSysMenu to give the same behaviour as MS-Windows,
i.e. system menu already appears when mouse button is depressed.
Changed NC_HandleNCLButtonDblClk so that double clicks on scroll
bar arrows are handled the same way as single clicks.
* [windows/winpos.c]
Fixed SetWindowPos32 to clear WIN_NO_REDRAW when SWP_SHOWWINDOW is
set; this is the way MS-Windows behaves.
Thu Oct 30 21:08:57 1997 Morten Welinder <terra@diku.dk>
* [controls/status.c]
In SW_SetText, fix condition, I hope.
* [controls/menu.c]
(GetMenuState32): Don't mask return value. Print more debug info.
(MENU_MenuBarCalcSize): Be more careful when printing debug
information.
(MENU_SetItemData): Empty strings are separators.
* [graphics/x11drv/text.c]
Don't prototype CLIPPING_IntersectClipRect.
* [include/dc.h]
Prototype CLIPPING_IntersectClipRect.
* [objects/font.c]
Remove non-portable (and faulty) smartness in FONT_TextMetric*to*.
In CreateFont32W and CreateFont16, handle null font name.
* [objects/text.c]
(TEXT_NextLine): Fix end-of-line bug.
* [if1632/shell32.spec]
Activate existing implementation of ExtractIconA.
* [misc/shell.c]
For Control_RunDLL, add types for parameters.
Thu Oct 30 14:54:11 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [controls/static.c] [include/windows.h] [misc/spy.c]
Added some win32 defines to static controls, basic SS_BITMAP style
handling implemented. [please add more, I am lacking knowledge and
time]
* [controls/status.c]
part_num 255 seems to indicate whole statusline (win95 cdplayer.exe)
* [if1632/thunk.c] [tools/build.c]
Support lret and 0x66 lret calls for CallTo16_regs
(needed for KERNEL32_45)
Fixed KERNEL32_45, QT_Thunk (should work now).
* [if1632/relay.c][if1632/builtin.c][tools/build.c][if1632/*32.spec]
Added string dumping to relay debugging for win32 apifuncs.
* [misc/ver.c]
Fixed and cleaned up VerQueryValue*.
* [multimedia/*.c][include/mmsystem.h][if1632/mmsystem.spec]
[if1632/winmm.spec]
Win32 support for lowlevel multimedia functions.
Added some mixer* lowlevel functions.
Some small fixes in the audio lowlevel queue handling, code
reformatting/cleanups.
* [debugger/hash.c]
Don't show difference between 16bit symbols if they are in
different segments.
* [objects/cursoricon.c]
Added GetIconInfo (partial) and CreateIconIndirect.
* [windows/mdi.c]
Fixed some "bad class" problems and crashes in MDICreateChild,
which happen in Win32 (jwp32.exe).
Wed Oct 29 00:57:27 1997 Bruce Milner <Bruce.Milner@genetics.utah.edu>
* [if1632/winaspi.spec] [misc/aspi.c] [include/aspi.c]
[documentation/aspi] [include/callback.h]
Added support for 16 bit ASPI calls to linux generic SCSI.
The support is not complete, but appears to run my Mustek
scanner from within ipplus.exe.
Mon Oct 27 00:59:41 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [windows/dce.c]
DC reuse framework.
Sun Oct 26 18:41:21 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [graphics/x11drv/xfont.c]
Substituted fonts are removed from the alias table. References to
the old name are also updated.
* [controls/combo.c]
LB_SELECTSTRING32 not CB_SELECTSTRING32 should be sent to
ComboLBox.
Sun Oct 26 14:25:00 1997 Nikita V. Youshchenko <yoush@cs.msu.su>
* [include/drive.h] [files/drive.c] [msdos/int21.c]
Partially implemented DOS drive mapping (int21 AX=440F).
Sat Oct 25 13:03:29 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [debugger/debug.l]
Support '.' in identifiers. Use "x . y" to access structure
fields.
* [debugger/hash.c] [loader/pe_image.c]
Load entry points of Win32 modules only when entering the
debugger.
* [debugger/break.c]
New function DEBUG_AddModuleBreakpoint() to set a breakpoint at
the start of every module.
* [files/file.c]
FILE_mmap() can now fake mmap() for unaligned offsets or broken
filesystems.
* [include/callback.h] [misc/callback.c] [if1632/thunk.c]
Use a table of callbacks instead of macros to differentiate
between emulator and Winelib.
* [loader/task.c]
Initialize current directory from cwd, not from module path.
* [tools/build.c]
Read CallTo16 prototypes directly from thunk.c source file.
* [windows/winproc.c] [windows/mdi.c]
Added translation for WM_MDIACTIVATE and WM_MDIGETACTIVE.
Fri Oct 24 21:41:25 1997 Uwe Bonnes <bon@elektron.ikp.tu-darmstadt.de>
* [files/drive.c]
Allow arguments like "a" for the drive related apis.
* [memory/global.c]
Keep the calculation for dwMemoryLoad in range.
* [misc/crtdll.c]
Make CRTDLL_getcwd use GetCurrentDirectory32A and alloc
its memory if requested.
Implemented CRTDLL_rename and CRTDLL_stat needed for
lcc-win32:wedit.exe.
Implemented CRTDLL__fullpath.
* [misc/comm.c]
High speed modes for the 16-bit mode Comm functions.
* [misc/cpu.c]
As applications may treat lpMaximumApplicationAddress as long,
use a valid long number.
* [misc/main.c]
In SystemParametersInfo16 ignore SPI_GETHIGHCONTRAST too.
* [misc/ole2nls.c]
Implement LCMAP_UPPERCASE for LCMapString32.
* [misc/wsprintf]
Made WPRINTF_ParseFormatA understand %ws.
* [win32/file.c]
Ignore FILE_ATTRIBUTE_NORMAL.
Stub for ReadFileEx.
Fri Oct 24 15:36:02 1997 Doug Ridgway <ridgway@routh.ucsd.edu>
* [memory/local.c]
Local heap exhaustion message now prints which builtin heap filled.
Fri Oct 24 00:46:34 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [windows/dialog.c]
Reversed CreateFont16/32W typo.
Thu Oct 23 23:44:20 1997 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [if1632/user.spec]
Fixed argument list for ChangeClipboardChain.
* [windows/mdi.c]
Pass correct hInstance to CreateWindow16() in MDICreateChild().
Mon Oct 20 11:51:24 1997 Carsten Fallesen <cf@it.dtu.dk>
* [objects/metafile.c]
Added support for META_SETTEXTCHAREXTRA.
* [objects/region.c]
Fixed crash in XPolygonRegion if there is only one point in
in the region.
* [if1632/gdi32.spec][include/gdi.h][include/windows.h]
[objects/gdiobj.c]
Completed OBJ_XXX defines in gdi.h, removed OBJ_XXX in gdiobj.c
and included gdi.h instead. Implemented GetObjectType32().
Thu Oct 16 17:21:32 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
* [documentation/wine.texinfo]
Fixed WIN32 and Makefiles entries of Reference manual node, that
made makeinfo dump core.
Mon Oct 13 17:15:57 1997 Robert Wilhelm <robert@physiol.med.tu-muenchen.de>
* [if1632/crtdll.spec]
Added missing math functions y0(), y1(), y2(), floor(), frexp(),
ldexp(), modf().
1997-11-01 20:08:16 +01:00
|
|
|
|
2001-11-06 00:53:48 +01:00
|
|
|
/******************************************************************
|
|
|
|
* MIX_GetRecSrc
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
static BOOL MIX_GetRecSrc(struct mixer* mix, unsigned* mask)
|
|
|
|
{
|
|
|
|
int mixer;
|
|
|
|
BOOL ret = FALSE;
|
|
|
|
|
2004-08-20 21:22:24 +02:00
|
|
|
TRACE("(%p, %p)\n", mix, mask);
|
|
|
|
|
2004-08-23 00:26:48 +02:00
|
|
|
if ((mixer = open(mix->dev_name, O_RDWR)) >= 0) {
|
2004-08-22 04:02:27 +02:00
|
|
|
if (ioctl(mixer, SOUND_MIXER_READ_RECSRC, &mask) >= 0) {
|
|
|
|
ret = TRUE;
|
|
|
|
} else {
|
|
|
|
ERR("ioctl(%s, SOUND_MIXER_READ_RECSRC) failed (%s)\n",
|
2004-08-23 00:26:48 +02:00
|
|
|
mix->dev_name, strerror(errno));
|
2004-08-22 04:02:27 +02:00
|
|
|
}
|
2001-11-06 00:53:48 +01:00
|
|
|
close(mixer);
|
|
|
|
}
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************
|
|
|
|
* MIX_SetRecSrc
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
static BOOL MIX_SetRecSrc(struct mixer* mix, unsigned mask)
|
|
|
|
{
|
|
|
|
int mixer;
|
|
|
|
BOOL ret = FALSE;
|
|
|
|
|
2004-08-20 21:22:24 +02:00
|
|
|
TRACE("(%p, %08x)\n", mix, mask);
|
|
|
|
|
2004-08-23 00:26:48 +02:00
|
|
|
if ((mixer = open(mix->dev_name, O_RDWR)) >= 0) {
|
2004-08-22 04:02:27 +02:00
|
|
|
if (ioctl(mixer, SOUND_MIXER_WRITE_RECSRC, &mask) >= 0) {
|
2001-11-06 00:53:48 +01:00
|
|
|
ret = TRUE;
|
2004-08-22 04:02:27 +02:00
|
|
|
} else {
|
|
|
|
ERR("ioctl(%s, SOUND_MIXER_WRITE_RECSRC) failed (%s)\n",
|
2004-08-23 00:26:48 +02:00
|
|
|
mix->dev_name, strerror(errno));
|
2004-08-22 04:02:27 +02:00
|
|
|
}
|
2001-11-06 00:53:48 +01:00
|
|
|
close(mixer);
|
|
|
|
}
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
1999-05-03 11:26:48 +02:00
|
|
|
/**************************************************************************
|
|
|
|
* MIX_GetDevCaps [internal]
|
|
|
|
*/
|
2004-12-06 21:55:25 +01:00
|
|
|
static DWORD MIX_GetDevCaps(WORD wDevID, LPMIXERCAPSW lpCaps, DWORD dwSize)
|
1999-05-03 11:26:48 +02:00
|
|
|
{
|
2001-11-06 00:53:48 +01:00
|
|
|
struct mixer* mix;
|
2004-12-06 21:55:25 +01:00
|
|
|
MIXERCAPSW capsW;
|
|
|
|
const char* name;
|
2001-11-06 00:53:48 +01:00
|
|
|
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("(%04X, %p, %u);\n", wDevID, lpCaps, dwSize);
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2004-08-20 21:22:24 +02:00
|
|
|
if (lpCaps == NULL) {
|
|
|
|
WARN("invalid parameter: lpCaps == NULL\n");
|
|
|
|
return MMSYSERR_INVALPARAM;
|
|
|
|
}
|
|
|
|
|
2005-08-22 11:20:20 +02:00
|
|
|
if ((mix = MIX_Get(wDevID)) == NULL) {
|
|
|
|
WARN("bad device ID: %04X\n", wDevID);
|
2004-08-20 21:22:24 +02:00
|
|
|
return MMSYSERR_BADDEVICEID;
|
|
|
|
}
|
1999-10-23 15:59:21 +02:00
|
|
|
|
2004-12-06 21:55:25 +01:00
|
|
|
capsW.wMid = WINE_MIXER_MANUF_ID;
|
|
|
|
capsW.wPid = WINE_MIXER_PRODUCT_ID;
|
|
|
|
capsW.vDriverVersion = WINE_MIXER_VERSION;
|
|
|
|
if (!(name = mix->name)) name = WINE_MIXER_NAME;
|
2009-02-18 21:32:50 +01:00
|
|
|
MultiByteToWideChar(CP_UNIXCP, 0, name, -1, capsW.szPname, sizeof(capsW.szPname) / sizeof(WCHAR));
|
2004-12-06 21:55:25 +01:00
|
|
|
capsW.cDestinations = 2; /* speakers & record */
|
|
|
|
capsW.fdwSupport = 0; /* No bits defined yet */
|
2004-08-11 20:48:46 +02:00
|
|
|
|
2004-12-06 21:55:25 +01:00
|
|
|
memcpy(lpCaps, &capsW, min(dwSize, sizeof(capsW)));
|
2002-06-01 01:06:46 +02:00
|
|
|
|
1999-05-03 11:26:48 +02:00
|
|
|
return MMSYSERR_NOERROR;
|
Release 971101
Thu Oct 30 21:52:23 1997 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [windows/nonclient.c]
Changed NC_TrackSysMenu to give the same behaviour as MS-Windows,
i.e. system menu already appears when mouse button is depressed.
Changed NC_HandleNCLButtonDblClk so that double clicks on scroll
bar arrows are handled the same way as single clicks.
* [windows/winpos.c]
Fixed SetWindowPos32 to clear WIN_NO_REDRAW when SWP_SHOWWINDOW is
set; this is the way MS-Windows behaves.
Thu Oct 30 21:08:57 1997 Morten Welinder <terra@diku.dk>
* [controls/status.c]
In SW_SetText, fix condition, I hope.
* [controls/menu.c]
(GetMenuState32): Don't mask return value. Print more debug info.
(MENU_MenuBarCalcSize): Be more careful when printing debug
information.
(MENU_SetItemData): Empty strings are separators.
* [graphics/x11drv/text.c]
Don't prototype CLIPPING_IntersectClipRect.
* [include/dc.h]
Prototype CLIPPING_IntersectClipRect.
* [objects/font.c]
Remove non-portable (and faulty) smartness in FONT_TextMetric*to*.
In CreateFont32W and CreateFont16, handle null font name.
* [objects/text.c]
(TEXT_NextLine): Fix end-of-line bug.
* [if1632/shell32.spec]
Activate existing implementation of ExtractIconA.
* [misc/shell.c]
For Control_RunDLL, add types for parameters.
Thu Oct 30 14:54:11 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [controls/static.c] [include/windows.h] [misc/spy.c]
Added some win32 defines to static controls, basic SS_BITMAP style
handling implemented. [please add more, I am lacking knowledge and
time]
* [controls/status.c]
part_num 255 seems to indicate whole statusline (win95 cdplayer.exe)
* [if1632/thunk.c] [tools/build.c]
Support lret and 0x66 lret calls for CallTo16_regs
(needed for KERNEL32_45)
Fixed KERNEL32_45, QT_Thunk (should work now).
* [if1632/relay.c][if1632/builtin.c][tools/build.c][if1632/*32.spec]
Added string dumping to relay debugging for win32 apifuncs.
* [misc/ver.c]
Fixed and cleaned up VerQueryValue*.
* [multimedia/*.c][include/mmsystem.h][if1632/mmsystem.spec]
[if1632/winmm.spec]
Win32 support for lowlevel multimedia functions.
Added some mixer* lowlevel functions.
Some small fixes in the audio lowlevel queue handling, code
reformatting/cleanups.
* [debugger/hash.c]
Don't show difference between 16bit symbols if they are in
different segments.
* [objects/cursoricon.c]
Added GetIconInfo (partial) and CreateIconIndirect.
* [windows/mdi.c]
Fixed some "bad class" problems and crashes in MDICreateChild,
which happen in Win32 (jwp32.exe).
Wed Oct 29 00:57:27 1997 Bruce Milner <Bruce.Milner@genetics.utah.edu>
* [if1632/winaspi.spec] [misc/aspi.c] [include/aspi.c]
[documentation/aspi] [include/callback.h]
Added support for 16 bit ASPI calls to linux generic SCSI.
The support is not complete, but appears to run my Mustek
scanner from within ipplus.exe.
Mon Oct 27 00:59:41 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [windows/dce.c]
DC reuse framework.
Sun Oct 26 18:41:21 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [graphics/x11drv/xfont.c]
Substituted fonts are removed from the alias table. References to
the old name are also updated.
* [controls/combo.c]
LB_SELECTSTRING32 not CB_SELECTSTRING32 should be sent to
ComboLBox.
Sun Oct 26 14:25:00 1997 Nikita V. Youshchenko <yoush@cs.msu.su>
* [include/drive.h] [files/drive.c] [msdos/int21.c]
Partially implemented DOS drive mapping (int21 AX=440F).
Sat Oct 25 13:03:29 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [debugger/debug.l]
Support '.' in identifiers. Use "x . y" to access structure
fields.
* [debugger/hash.c] [loader/pe_image.c]
Load entry points of Win32 modules only when entering the
debugger.
* [debugger/break.c]
New function DEBUG_AddModuleBreakpoint() to set a breakpoint at
the start of every module.
* [files/file.c]
FILE_mmap() can now fake mmap() for unaligned offsets or broken
filesystems.
* [include/callback.h] [misc/callback.c] [if1632/thunk.c]
Use a table of callbacks instead of macros to differentiate
between emulator and Winelib.
* [loader/task.c]
Initialize current directory from cwd, not from module path.
* [tools/build.c]
Read CallTo16 prototypes directly from thunk.c source file.
* [windows/winproc.c] [windows/mdi.c]
Added translation for WM_MDIACTIVATE and WM_MDIGETACTIVE.
Fri Oct 24 21:41:25 1997 Uwe Bonnes <bon@elektron.ikp.tu-darmstadt.de>
* [files/drive.c]
Allow arguments like "a" for the drive related apis.
* [memory/global.c]
Keep the calculation for dwMemoryLoad in range.
* [misc/crtdll.c]
Make CRTDLL_getcwd use GetCurrentDirectory32A and alloc
its memory if requested.
Implemented CRTDLL_rename and CRTDLL_stat needed for
lcc-win32:wedit.exe.
Implemented CRTDLL__fullpath.
* [misc/comm.c]
High speed modes for the 16-bit mode Comm functions.
* [misc/cpu.c]
As applications may treat lpMaximumApplicationAddress as long,
use a valid long number.
* [misc/main.c]
In SystemParametersInfo16 ignore SPI_GETHIGHCONTRAST too.
* [misc/ole2nls.c]
Implement LCMAP_UPPERCASE for LCMapString32.
* [misc/wsprintf]
Made WPRINTF_ParseFormatA understand %ws.
* [win32/file.c]
Ignore FILE_ATTRIBUTE_NORMAL.
Stub for ReadFileEx.
Fri Oct 24 15:36:02 1997 Doug Ridgway <ridgway@routh.ucsd.edu>
* [memory/local.c]
Local heap exhaustion message now prints which builtin heap filled.
Fri Oct 24 00:46:34 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [windows/dialog.c]
Reversed CreateFont16/32W typo.
Thu Oct 23 23:44:20 1997 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [if1632/user.spec]
Fixed argument list for ChangeClipboardChain.
* [windows/mdi.c]
Pass correct hInstance to CreateWindow16() in MDICreateChild().
Mon Oct 20 11:51:24 1997 Carsten Fallesen <cf@it.dtu.dk>
* [objects/metafile.c]
Added support for META_SETTEXTCHAREXTRA.
* [objects/region.c]
Fixed crash in XPolygonRegion if there is only one point in
in the region.
* [if1632/gdi32.spec][include/gdi.h][include/windows.h]
[objects/gdiobj.c]
Completed OBJ_XXX defines in gdi.h, removed OBJ_XXX in gdiobj.c
and included gdi.h instead. Implemented GetObjectType32().
Thu Oct 16 17:21:32 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
* [documentation/wine.texinfo]
Fixed WIN32 and Makefiles entries of Reference manual node, that
made makeinfo dump core.
Mon Oct 13 17:15:57 1997 Robert Wilhelm <robert@physiol.med.tu-muenchen.de>
* [if1632/crtdll.spec]
Added missing math functions y0(), y1(), y2(), floor(), frexp(),
ldexp(), modf().
1997-11-01 20:08:16 +01:00
|
|
|
}
|
|
|
|
|
1999-05-03 11:26:48 +02:00
|
|
|
/**************************************************************************
|
2001-11-06 00:53:48 +01:00
|
|
|
* MIX_GetLineInfoDst [internal]
|
|
|
|
*/
|
2004-12-06 21:55:25 +01:00
|
|
|
static DWORD MIX_GetLineInfoDst(struct mixer* mix, LPMIXERLINEW lpMl,
|
2004-08-22 04:02:27 +02:00
|
|
|
DWORD dst)
|
2002-06-01 01:06:46 +02:00
|
|
|
{
|
2001-11-06 00:53:48 +01:00
|
|
|
unsigned mask;
|
|
|
|
int j;
|
|
|
|
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("(%p, %p, %08x)\n", mix, lpMl, dst);
|
2004-08-20 21:22:24 +02:00
|
|
|
|
2001-11-06 00:53:48 +01:00
|
|
|
lpMl->dwDestination = dst;
|
|
|
|
switch (dst)
|
|
|
|
{
|
2004-08-27 21:38:47 +02:00
|
|
|
case LINEID_SPEAKER:
|
2001-11-06 00:53:48 +01:00
|
|
|
lpMl->dwComponentType = MIXERLINE_COMPONENTTYPE_DST_SPEAKERS;
|
|
|
|
mask = mix->devMask;
|
|
|
|
j = SOUND_MIXER_VOLUME;
|
2004-08-27 21:38:47 +02:00
|
|
|
lpMl->Target.dwType = MIXERLINE_TARGETTYPE_WAVEOUT;
|
2001-11-06 00:53:48 +01:00
|
|
|
break;
|
2004-08-27 21:38:47 +02:00
|
|
|
case LINEID_RECORD:
|
2001-11-06 00:53:48 +01:00
|
|
|
lpMl->dwComponentType = MIXERLINE_COMPONENTTYPE_DST_WAVEIN;
|
|
|
|
mask = mix->recMask;
|
|
|
|
j = SOUND_MIXER_RECLEV;
|
2004-08-27 21:38:47 +02:00
|
|
|
lpMl->Target.dwType = MIXERLINE_TARGETTYPE_WAVEIN;
|
2001-11-06 00:53:48 +01:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
FIXME("shouldn't happen\n");
|
|
|
|
return MMSYSERR_ERROR;
|
|
|
|
}
|
|
|
|
lpMl->dwSource = 0xFFFFFFFF;
|
2009-02-18 21:32:50 +01:00
|
|
|
MultiByteToWideChar(CP_UNIXCP, 0, MIX_Labels[j], -1, lpMl->szShortName, sizeof(lpMl->szShortName) / sizeof(WCHAR));
|
|
|
|
MultiByteToWideChar(CP_UNIXCP, 0, MIX_Names[j], -1, lpMl->szName, sizeof(lpMl->szName) / sizeof(WCHAR));
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2001-11-06 00:53:48 +01:00
|
|
|
/* we have all connections found in the MIX_DevMask */
|
|
|
|
lpMl->cConnections = 0;
|
|
|
|
for (j = 0; j < SOUND_MIXER_NRDEVICES; j++)
|
|
|
|
if (WINE_CHN_SUPPORTS(mask, j))
|
|
|
|
lpMl->cConnections++;
|
|
|
|
lpMl->cChannels = 1;
|
|
|
|
if (WINE_CHN_SUPPORTS(mix->stereoMask, lpMl->dwLineID))
|
|
|
|
lpMl->cChannels++;
|
|
|
|
lpMl->dwLineID = MAKELONG(dst, LINEID_DST);
|
|
|
|
lpMl->cControls = 0;
|
|
|
|
for (j = 0; j < mix->numCtrl; j++)
|
|
|
|
if (mix->ctrl[j].dwLineID == lpMl->dwLineID)
|
|
|
|
lpMl->cControls++;
|
|
|
|
|
|
|
|
return MMSYSERR_NOERROR;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* MIX_GetLineInfoSrc [internal]
|
1999-05-03 11:26:48 +02:00
|
|
|
*/
|
2004-12-06 21:55:25 +01:00
|
|
|
static DWORD MIX_GetLineInfoSrc(struct mixer* mix, LPMIXERLINEW lpMl,
|
2004-08-22 04:02:27 +02:00
|
|
|
DWORD idx, DWORD dst)
|
1999-02-13 13:38:09 +01:00
|
|
|
{
|
2001-11-06 00:53:48 +01:00
|
|
|
int i, j;
|
|
|
|
unsigned mask = (dst) ? mix->recMask : mix->devMask;
|
|
|
|
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("(%p, %p, %d, %08x)\n", mix, lpMl, idx, dst);
|
2004-08-20 21:22:24 +02:00
|
|
|
|
2009-02-18 21:32:50 +01:00
|
|
|
MultiByteToWideChar(CP_UNIXCP, 0, MIX_Labels[idx], -1, lpMl->szShortName, sizeof(lpMl->szShortName) / sizeof(WCHAR));
|
|
|
|
MultiByteToWideChar(CP_UNIXCP, 0, MIX_Names[idx], -1, lpMl->szName, sizeof(lpMl->szName) / sizeof(WCHAR));
|
2001-11-06 00:53:48 +01:00
|
|
|
lpMl->dwLineID = MAKELONG(dst, idx);
|
|
|
|
lpMl->dwDestination = dst;
|
1999-05-03 11:26:48 +02:00
|
|
|
lpMl->cConnections = 1;
|
2001-11-06 00:53:48 +01:00
|
|
|
lpMl->cControls = 0;
|
|
|
|
for (i = 0; i < mix->numCtrl; i++)
|
|
|
|
if (mix->ctrl[i].dwLineID == lpMl->dwLineID)
|
|
|
|
lpMl->cControls++;
|
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
switch (idx)
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
1999-05-03 11:26:48 +02:00
|
|
|
case SOUND_MIXER_SYNTH:
|
|
|
|
lpMl->dwComponentType = MIXERLINE_COMPONENTTYPE_SRC_SYNTHESIZER;
|
|
|
|
lpMl->fdwLine |= MIXERLINE_LINEF_SOURCE;
|
2004-08-27 21:38:47 +02:00
|
|
|
lpMl->Target.dwType = MIXERLINE_TARGETTYPE_MIDIOUT;
|
1999-05-03 11:26:48 +02:00
|
|
|
break;
|
|
|
|
case SOUND_MIXER_CD:
|
|
|
|
lpMl->dwComponentType = MIXERLINE_COMPONENTTYPE_SRC_COMPACTDISC;
|
|
|
|
lpMl->fdwLine |= MIXERLINE_LINEF_SOURCE;
|
2004-08-27 21:38:47 +02:00
|
|
|
lpMl->Target.dwType = MIXERLINE_TARGETTYPE_UNDEFINED;
|
1999-05-03 11:26:48 +02:00
|
|
|
break;
|
|
|
|
case SOUND_MIXER_LINE:
|
|
|
|
lpMl->dwComponentType = MIXERLINE_COMPONENTTYPE_SRC_LINE;
|
|
|
|
lpMl->fdwLine |= MIXERLINE_LINEF_SOURCE;
|
2004-08-27 21:38:47 +02:00
|
|
|
lpMl->Target.dwType = MIXERLINE_TARGETTYPE_UNDEFINED;
|
1999-05-03 11:26:48 +02:00
|
|
|
break;
|
|
|
|
case SOUND_MIXER_MIC:
|
|
|
|
lpMl->dwComponentType = MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE;
|
|
|
|
lpMl->fdwLine |= MIXERLINE_LINEF_SOURCE;
|
2004-08-27 21:38:47 +02:00
|
|
|
lpMl->Target.dwType = MIXERLINE_TARGETTYPE_WAVEIN;
|
1999-05-03 11:26:48 +02:00
|
|
|
break;
|
|
|
|
case SOUND_MIXER_PCM:
|
|
|
|
lpMl->dwComponentType = MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT;
|
|
|
|
lpMl->fdwLine |= MIXERLINE_LINEF_SOURCE;
|
2004-08-27 21:38:47 +02:00
|
|
|
lpMl->Target.dwType = MIXERLINE_TARGETTYPE_WAVEOUT;
|
1999-05-03 11:26:48 +02:00
|
|
|
break;
|
2001-11-06 00:53:48 +01:00
|
|
|
case SOUND_MIXER_IMIX:
|
|
|
|
lpMl->dwComponentType = MIXERLINE_COMPONENTTYPE_SRC_UNDEFINED;
|
|
|
|
lpMl->fdwLine |= MIXERLINE_LINEF_SOURCE;
|
2004-08-27 21:38:47 +02:00
|
|
|
lpMl->Target.dwType = MIXERLINE_TARGETTYPE_UNDEFINED;
|
2001-11-06 00:53:48 +01:00
|
|
|
break;
|
1999-05-03 11:26:48 +02:00
|
|
|
default:
|
2006-10-06 22:59:51 +02:00
|
|
|
WARN("Index %d not handled.\n", idx);
|
2000-01-04 01:25:39 +01:00
|
|
|
return MIXERR_INVALLINE;
|
1999-05-03 11:26:48 +02:00
|
|
|
}
|
2001-11-06 00:53:48 +01:00
|
|
|
lpMl->cChannels = 1;
|
|
|
|
if (dst == 0 && WINE_CHN_SUPPORTS(mix->stereoMask, idx))
|
|
|
|
lpMl->cChannels++;
|
2002-06-01 01:06:46 +02:00
|
|
|
for (i = j = 0; j < SOUND_MIXER_NRDEVICES; j++)
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
|
|
|
if (WINE_CHN_SUPPORTS(mask, j))
|
|
|
|
{
|
|
|
|
if (j == idx) break;
|
|
|
|
i++;
|
|
|
|
}
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
2001-11-06 00:53:48 +01:00
|
|
|
lpMl->dwSource = i;
|
2000-01-04 01:25:39 +01:00
|
|
|
return MMSYSERR_NOERROR;
|
1999-02-13 13:38:09 +01:00
|
|
|
}
|
Release 971101
Thu Oct 30 21:52:23 1997 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [windows/nonclient.c]
Changed NC_TrackSysMenu to give the same behaviour as MS-Windows,
i.e. system menu already appears when mouse button is depressed.
Changed NC_HandleNCLButtonDblClk so that double clicks on scroll
bar arrows are handled the same way as single clicks.
* [windows/winpos.c]
Fixed SetWindowPos32 to clear WIN_NO_REDRAW when SWP_SHOWWINDOW is
set; this is the way MS-Windows behaves.
Thu Oct 30 21:08:57 1997 Morten Welinder <terra@diku.dk>
* [controls/status.c]
In SW_SetText, fix condition, I hope.
* [controls/menu.c]
(GetMenuState32): Don't mask return value. Print more debug info.
(MENU_MenuBarCalcSize): Be more careful when printing debug
information.
(MENU_SetItemData): Empty strings are separators.
* [graphics/x11drv/text.c]
Don't prototype CLIPPING_IntersectClipRect.
* [include/dc.h]
Prototype CLIPPING_IntersectClipRect.
* [objects/font.c]
Remove non-portable (and faulty) smartness in FONT_TextMetric*to*.
In CreateFont32W and CreateFont16, handle null font name.
* [objects/text.c]
(TEXT_NextLine): Fix end-of-line bug.
* [if1632/shell32.spec]
Activate existing implementation of ExtractIconA.
* [misc/shell.c]
For Control_RunDLL, add types for parameters.
Thu Oct 30 14:54:11 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [controls/static.c] [include/windows.h] [misc/spy.c]
Added some win32 defines to static controls, basic SS_BITMAP style
handling implemented. [please add more, I am lacking knowledge and
time]
* [controls/status.c]
part_num 255 seems to indicate whole statusline (win95 cdplayer.exe)
* [if1632/thunk.c] [tools/build.c]
Support lret and 0x66 lret calls for CallTo16_regs
(needed for KERNEL32_45)
Fixed KERNEL32_45, QT_Thunk (should work now).
* [if1632/relay.c][if1632/builtin.c][tools/build.c][if1632/*32.spec]
Added string dumping to relay debugging for win32 apifuncs.
* [misc/ver.c]
Fixed and cleaned up VerQueryValue*.
* [multimedia/*.c][include/mmsystem.h][if1632/mmsystem.spec]
[if1632/winmm.spec]
Win32 support for lowlevel multimedia functions.
Added some mixer* lowlevel functions.
Some small fixes in the audio lowlevel queue handling, code
reformatting/cleanups.
* [debugger/hash.c]
Don't show difference between 16bit symbols if they are in
different segments.
* [objects/cursoricon.c]
Added GetIconInfo (partial) and CreateIconIndirect.
* [windows/mdi.c]
Fixed some "bad class" problems and crashes in MDICreateChild,
which happen in Win32 (jwp32.exe).
Wed Oct 29 00:57:27 1997 Bruce Milner <Bruce.Milner@genetics.utah.edu>
* [if1632/winaspi.spec] [misc/aspi.c] [include/aspi.c]
[documentation/aspi] [include/callback.h]
Added support for 16 bit ASPI calls to linux generic SCSI.
The support is not complete, but appears to run my Mustek
scanner from within ipplus.exe.
Mon Oct 27 00:59:41 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [windows/dce.c]
DC reuse framework.
Sun Oct 26 18:41:21 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [graphics/x11drv/xfont.c]
Substituted fonts are removed from the alias table. References to
the old name are also updated.
* [controls/combo.c]
LB_SELECTSTRING32 not CB_SELECTSTRING32 should be sent to
ComboLBox.
Sun Oct 26 14:25:00 1997 Nikita V. Youshchenko <yoush@cs.msu.su>
* [include/drive.h] [files/drive.c] [msdos/int21.c]
Partially implemented DOS drive mapping (int21 AX=440F).
Sat Oct 25 13:03:29 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [debugger/debug.l]
Support '.' in identifiers. Use "x . y" to access structure
fields.
* [debugger/hash.c] [loader/pe_image.c]
Load entry points of Win32 modules only when entering the
debugger.
* [debugger/break.c]
New function DEBUG_AddModuleBreakpoint() to set a breakpoint at
the start of every module.
* [files/file.c]
FILE_mmap() can now fake mmap() for unaligned offsets or broken
filesystems.
* [include/callback.h] [misc/callback.c] [if1632/thunk.c]
Use a table of callbacks instead of macros to differentiate
between emulator and Winelib.
* [loader/task.c]
Initialize current directory from cwd, not from module path.
* [tools/build.c]
Read CallTo16 prototypes directly from thunk.c source file.
* [windows/winproc.c] [windows/mdi.c]
Added translation for WM_MDIACTIVATE and WM_MDIGETACTIVE.
Fri Oct 24 21:41:25 1997 Uwe Bonnes <bon@elektron.ikp.tu-darmstadt.de>
* [files/drive.c]
Allow arguments like "a" for the drive related apis.
* [memory/global.c]
Keep the calculation for dwMemoryLoad in range.
* [misc/crtdll.c]
Make CRTDLL_getcwd use GetCurrentDirectory32A and alloc
its memory if requested.
Implemented CRTDLL_rename and CRTDLL_stat needed for
lcc-win32:wedit.exe.
Implemented CRTDLL__fullpath.
* [misc/comm.c]
High speed modes for the 16-bit mode Comm functions.
* [misc/cpu.c]
As applications may treat lpMaximumApplicationAddress as long,
use a valid long number.
* [misc/main.c]
In SystemParametersInfo16 ignore SPI_GETHIGHCONTRAST too.
* [misc/ole2nls.c]
Implement LCMAP_UPPERCASE for LCMapString32.
* [misc/wsprintf]
Made WPRINTF_ParseFormatA understand %ws.
* [win32/file.c]
Ignore FILE_ATTRIBUTE_NORMAL.
Stub for ReadFileEx.
Fri Oct 24 15:36:02 1997 Doug Ridgway <ridgway@routh.ucsd.edu>
* [memory/local.c]
Local heap exhaustion message now prints which builtin heap filled.
Fri Oct 24 00:46:34 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [windows/dialog.c]
Reversed CreateFont16/32W typo.
Thu Oct 23 23:44:20 1997 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [if1632/user.spec]
Fixed argument list for ChangeClipboardChain.
* [windows/mdi.c]
Pass correct hInstance to CreateWindow16() in MDICreateChild().
Mon Oct 20 11:51:24 1997 Carsten Fallesen <cf@it.dtu.dk>
* [objects/metafile.c]
Added support for META_SETTEXTCHAREXTRA.
* [objects/region.c]
Fixed crash in XPolygonRegion if there is only one point in
in the region.
* [if1632/gdi32.spec][include/gdi.h][include/windows.h]
[objects/gdiobj.c]
Completed OBJ_XXX defines in gdi.h, removed OBJ_XXX in gdiobj.c
and included gdi.h instead. Implemented GetObjectType32().
Thu Oct 16 17:21:32 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
* [documentation/wine.texinfo]
Fixed WIN32 and Makefiles entries of Reference manual node, that
made makeinfo dump core.
Mon Oct 13 17:15:57 1997 Robert Wilhelm <robert@physiol.med.tu-muenchen.de>
* [if1632/crtdll.spec]
Added missing math functions y0(), y1(), y2(), floor(), frexp(),
ldexp(), modf().
1997-11-01 20:08:16 +01:00
|
|
|
|
2001-11-06 00:53:48 +01:00
|
|
|
/******************************************************************
|
|
|
|
* MIX_CheckLine
|
|
|
|
*/
|
|
|
|
static BOOL MIX_CheckLine(DWORD lineID)
|
|
|
|
{
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("(%08x)\n",lineID);
|
2004-08-20 21:22:24 +02:00
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
return ((HIWORD(lineID) < SOUND_MIXER_NRDEVICES && LOWORD(lineID) < 2) ||
|
2004-08-23 00:26:48 +02:00
|
|
|
(HIWORD(lineID) == LINEID_DST &&
|
2004-08-22 04:02:27 +02:00
|
|
|
LOWORD(lineID) < SOUND_MIXER_NRDEVICES));
|
2001-11-06 00:53:48 +01:00
|
|
|
}
|
|
|
|
|
Release 971101
Thu Oct 30 21:52:23 1997 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [windows/nonclient.c]
Changed NC_TrackSysMenu to give the same behaviour as MS-Windows,
i.e. system menu already appears when mouse button is depressed.
Changed NC_HandleNCLButtonDblClk so that double clicks on scroll
bar arrows are handled the same way as single clicks.
* [windows/winpos.c]
Fixed SetWindowPos32 to clear WIN_NO_REDRAW when SWP_SHOWWINDOW is
set; this is the way MS-Windows behaves.
Thu Oct 30 21:08:57 1997 Morten Welinder <terra@diku.dk>
* [controls/status.c]
In SW_SetText, fix condition, I hope.
* [controls/menu.c]
(GetMenuState32): Don't mask return value. Print more debug info.
(MENU_MenuBarCalcSize): Be more careful when printing debug
information.
(MENU_SetItemData): Empty strings are separators.
* [graphics/x11drv/text.c]
Don't prototype CLIPPING_IntersectClipRect.
* [include/dc.h]
Prototype CLIPPING_IntersectClipRect.
* [objects/font.c]
Remove non-portable (and faulty) smartness in FONT_TextMetric*to*.
In CreateFont32W and CreateFont16, handle null font name.
* [objects/text.c]
(TEXT_NextLine): Fix end-of-line bug.
* [if1632/shell32.spec]
Activate existing implementation of ExtractIconA.
* [misc/shell.c]
For Control_RunDLL, add types for parameters.
Thu Oct 30 14:54:11 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [controls/static.c] [include/windows.h] [misc/spy.c]
Added some win32 defines to static controls, basic SS_BITMAP style
handling implemented. [please add more, I am lacking knowledge and
time]
* [controls/status.c]
part_num 255 seems to indicate whole statusline (win95 cdplayer.exe)
* [if1632/thunk.c] [tools/build.c]
Support lret and 0x66 lret calls for CallTo16_regs
(needed for KERNEL32_45)
Fixed KERNEL32_45, QT_Thunk (should work now).
* [if1632/relay.c][if1632/builtin.c][tools/build.c][if1632/*32.spec]
Added string dumping to relay debugging for win32 apifuncs.
* [misc/ver.c]
Fixed and cleaned up VerQueryValue*.
* [multimedia/*.c][include/mmsystem.h][if1632/mmsystem.spec]
[if1632/winmm.spec]
Win32 support for lowlevel multimedia functions.
Added some mixer* lowlevel functions.
Some small fixes in the audio lowlevel queue handling, code
reformatting/cleanups.
* [debugger/hash.c]
Don't show difference between 16bit symbols if they are in
different segments.
* [objects/cursoricon.c]
Added GetIconInfo (partial) and CreateIconIndirect.
* [windows/mdi.c]
Fixed some "bad class" problems and crashes in MDICreateChild,
which happen in Win32 (jwp32.exe).
Wed Oct 29 00:57:27 1997 Bruce Milner <Bruce.Milner@genetics.utah.edu>
* [if1632/winaspi.spec] [misc/aspi.c] [include/aspi.c]
[documentation/aspi] [include/callback.h]
Added support for 16 bit ASPI calls to linux generic SCSI.
The support is not complete, but appears to run my Mustek
scanner from within ipplus.exe.
Mon Oct 27 00:59:41 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [windows/dce.c]
DC reuse framework.
Sun Oct 26 18:41:21 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [graphics/x11drv/xfont.c]
Substituted fonts are removed from the alias table. References to
the old name are also updated.
* [controls/combo.c]
LB_SELECTSTRING32 not CB_SELECTSTRING32 should be sent to
ComboLBox.
Sun Oct 26 14:25:00 1997 Nikita V. Youshchenko <yoush@cs.msu.su>
* [include/drive.h] [files/drive.c] [msdos/int21.c]
Partially implemented DOS drive mapping (int21 AX=440F).
Sat Oct 25 13:03:29 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [debugger/debug.l]
Support '.' in identifiers. Use "x . y" to access structure
fields.
* [debugger/hash.c] [loader/pe_image.c]
Load entry points of Win32 modules only when entering the
debugger.
* [debugger/break.c]
New function DEBUG_AddModuleBreakpoint() to set a breakpoint at
the start of every module.
* [files/file.c]
FILE_mmap() can now fake mmap() for unaligned offsets or broken
filesystems.
* [include/callback.h] [misc/callback.c] [if1632/thunk.c]
Use a table of callbacks instead of macros to differentiate
between emulator and Winelib.
* [loader/task.c]
Initialize current directory from cwd, not from module path.
* [tools/build.c]
Read CallTo16 prototypes directly from thunk.c source file.
* [windows/winproc.c] [windows/mdi.c]
Added translation for WM_MDIACTIVATE and WM_MDIGETACTIVE.
Fri Oct 24 21:41:25 1997 Uwe Bonnes <bon@elektron.ikp.tu-darmstadt.de>
* [files/drive.c]
Allow arguments like "a" for the drive related apis.
* [memory/global.c]
Keep the calculation for dwMemoryLoad in range.
* [misc/crtdll.c]
Make CRTDLL_getcwd use GetCurrentDirectory32A and alloc
its memory if requested.
Implemented CRTDLL_rename and CRTDLL_stat needed for
lcc-win32:wedit.exe.
Implemented CRTDLL__fullpath.
* [misc/comm.c]
High speed modes for the 16-bit mode Comm functions.
* [misc/cpu.c]
As applications may treat lpMaximumApplicationAddress as long,
use a valid long number.
* [misc/main.c]
In SystemParametersInfo16 ignore SPI_GETHIGHCONTRAST too.
* [misc/ole2nls.c]
Implement LCMAP_UPPERCASE for LCMapString32.
* [misc/wsprintf]
Made WPRINTF_ParseFormatA understand %ws.
* [win32/file.c]
Ignore FILE_ATTRIBUTE_NORMAL.
Stub for ReadFileEx.
Fri Oct 24 15:36:02 1997 Doug Ridgway <ridgway@routh.ucsd.edu>
* [memory/local.c]
Local heap exhaustion message now prints which builtin heap filled.
Fri Oct 24 00:46:34 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [windows/dialog.c]
Reversed CreateFont16/32W typo.
Thu Oct 23 23:44:20 1997 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [if1632/user.spec]
Fixed argument list for ChangeClipboardChain.
* [windows/mdi.c]
Pass correct hInstance to CreateWindow16() in MDICreateChild().
Mon Oct 20 11:51:24 1997 Carsten Fallesen <cf@it.dtu.dk>
* [objects/metafile.c]
Added support for META_SETTEXTCHAREXTRA.
* [objects/region.c]
Fixed crash in XPolygonRegion if there is only one point in
in the region.
* [if1632/gdi32.spec][include/gdi.h][include/windows.h]
[objects/gdiobj.c]
Completed OBJ_XXX defines in gdi.h, removed OBJ_XXX in gdiobj.c
and included gdi.h instead. Implemented GetObjectType32().
Thu Oct 16 17:21:32 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
* [documentation/wine.texinfo]
Fixed WIN32 and Makefiles entries of Reference manual node, that
made makeinfo dump core.
Mon Oct 13 17:15:57 1997 Robert Wilhelm <robert@physiol.med.tu-muenchen.de>
* [if1632/crtdll.spec]
Added missing math functions y0(), y1(), y2(), floor(), frexp(),
ldexp(), modf().
1997-11-01 20:08:16 +01:00
|
|
|
/**************************************************************************
|
1999-05-03 11:26:48 +02:00
|
|
|
* MIX_GetLineInfo [internal]
|
Release 971101
Thu Oct 30 21:52:23 1997 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [windows/nonclient.c]
Changed NC_TrackSysMenu to give the same behaviour as MS-Windows,
i.e. system menu already appears when mouse button is depressed.
Changed NC_HandleNCLButtonDblClk so that double clicks on scroll
bar arrows are handled the same way as single clicks.
* [windows/winpos.c]
Fixed SetWindowPos32 to clear WIN_NO_REDRAW when SWP_SHOWWINDOW is
set; this is the way MS-Windows behaves.
Thu Oct 30 21:08:57 1997 Morten Welinder <terra@diku.dk>
* [controls/status.c]
In SW_SetText, fix condition, I hope.
* [controls/menu.c]
(GetMenuState32): Don't mask return value. Print more debug info.
(MENU_MenuBarCalcSize): Be more careful when printing debug
information.
(MENU_SetItemData): Empty strings are separators.
* [graphics/x11drv/text.c]
Don't prototype CLIPPING_IntersectClipRect.
* [include/dc.h]
Prototype CLIPPING_IntersectClipRect.
* [objects/font.c]
Remove non-portable (and faulty) smartness in FONT_TextMetric*to*.
In CreateFont32W and CreateFont16, handle null font name.
* [objects/text.c]
(TEXT_NextLine): Fix end-of-line bug.
* [if1632/shell32.spec]
Activate existing implementation of ExtractIconA.
* [misc/shell.c]
For Control_RunDLL, add types for parameters.
Thu Oct 30 14:54:11 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [controls/static.c] [include/windows.h] [misc/spy.c]
Added some win32 defines to static controls, basic SS_BITMAP style
handling implemented. [please add more, I am lacking knowledge and
time]
* [controls/status.c]
part_num 255 seems to indicate whole statusline (win95 cdplayer.exe)
* [if1632/thunk.c] [tools/build.c]
Support lret and 0x66 lret calls for CallTo16_regs
(needed for KERNEL32_45)
Fixed KERNEL32_45, QT_Thunk (should work now).
* [if1632/relay.c][if1632/builtin.c][tools/build.c][if1632/*32.spec]
Added string dumping to relay debugging for win32 apifuncs.
* [misc/ver.c]
Fixed and cleaned up VerQueryValue*.
* [multimedia/*.c][include/mmsystem.h][if1632/mmsystem.spec]
[if1632/winmm.spec]
Win32 support for lowlevel multimedia functions.
Added some mixer* lowlevel functions.
Some small fixes in the audio lowlevel queue handling, code
reformatting/cleanups.
* [debugger/hash.c]
Don't show difference between 16bit symbols if they are in
different segments.
* [objects/cursoricon.c]
Added GetIconInfo (partial) and CreateIconIndirect.
* [windows/mdi.c]
Fixed some "bad class" problems and crashes in MDICreateChild,
which happen in Win32 (jwp32.exe).
Wed Oct 29 00:57:27 1997 Bruce Milner <Bruce.Milner@genetics.utah.edu>
* [if1632/winaspi.spec] [misc/aspi.c] [include/aspi.c]
[documentation/aspi] [include/callback.h]
Added support for 16 bit ASPI calls to linux generic SCSI.
The support is not complete, but appears to run my Mustek
scanner from within ipplus.exe.
Mon Oct 27 00:59:41 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [windows/dce.c]
DC reuse framework.
Sun Oct 26 18:41:21 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [graphics/x11drv/xfont.c]
Substituted fonts are removed from the alias table. References to
the old name are also updated.
* [controls/combo.c]
LB_SELECTSTRING32 not CB_SELECTSTRING32 should be sent to
ComboLBox.
Sun Oct 26 14:25:00 1997 Nikita V. Youshchenko <yoush@cs.msu.su>
* [include/drive.h] [files/drive.c] [msdos/int21.c]
Partially implemented DOS drive mapping (int21 AX=440F).
Sat Oct 25 13:03:29 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [debugger/debug.l]
Support '.' in identifiers. Use "x . y" to access structure
fields.
* [debugger/hash.c] [loader/pe_image.c]
Load entry points of Win32 modules only when entering the
debugger.
* [debugger/break.c]
New function DEBUG_AddModuleBreakpoint() to set a breakpoint at
the start of every module.
* [files/file.c]
FILE_mmap() can now fake mmap() for unaligned offsets or broken
filesystems.
* [include/callback.h] [misc/callback.c] [if1632/thunk.c]
Use a table of callbacks instead of macros to differentiate
between emulator and Winelib.
* [loader/task.c]
Initialize current directory from cwd, not from module path.
* [tools/build.c]
Read CallTo16 prototypes directly from thunk.c source file.
* [windows/winproc.c] [windows/mdi.c]
Added translation for WM_MDIACTIVATE and WM_MDIGETACTIVE.
Fri Oct 24 21:41:25 1997 Uwe Bonnes <bon@elektron.ikp.tu-darmstadt.de>
* [files/drive.c]
Allow arguments like "a" for the drive related apis.
* [memory/global.c]
Keep the calculation for dwMemoryLoad in range.
* [misc/crtdll.c]
Make CRTDLL_getcwd use GetCurrentDirectory32A and alloc
its memory if requested.
Implemented CRTDLL_rename and CRTDLL_stat needed for
lcc-win32:wedit.exe.
Implemented CRTDLL__fullpath.
* [misc/comm.c]
High speed modes for the 16-bit mode Comm functions.
* [misc/cpu.c]
As applications may treat lpMaximumApplicationAddress as long,
use a valid long number.
* [misc/main.c]
In SystemParametersInfo16 ignore SPI_GETHIGHCONTRAST too.
* [misc/ole2nls.c]
Implement LCMAP_UPPERCASE for LCMapString32.
* [misc/wsprintf]
Made WPRINTF_ParseFormatA understand %ws.
* [win32/file.c]
Ignore FILE_ATTRIBUTE_NORMAL.
Stub for ReadFileEx.
Fri Oct 24 15:36:02 1997 Doug Ridgway <ridgway@routh.ucsd.edu>
* [memory/local.c]
Local heap exhaustion message now prints which builtin heap filled.
Fri Oct 24 00:46:34 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [windows/dialog.c]
Reversed CreateFont16/32W typo.
Thu Oct 23 23:44:20 1997 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [if1632/user.spec]
Fixed argument list for ChangeClipboardChain.
* [windows/mdi.c]
Pass correct hInstance to CreateWindow16() in MDICreateChild().
Mon Oct 20 11:51:24 1997 Carsten Fallesen <cf@it.dtu.dk>
* [objects/metafile.c]
Added support for META_SETTEXTCHAREXTRA.
* [objects/region.c]
Fixed crash in XPolygonRegion if there is only one point in
in the region.
* [if1632/gdi32.spec][include/gdi.h][include/windows.h]
[objects/gdiobj.c]
Completed OBJ_XXX defines in gdi.h, removed OBJ_XXX in gdiobj.c
and included gdi.h instead. Implemented GetObjectType32().
Thu Oct 16 17:21:32 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
* [documentation/wine.texinfo]
Fixed WIN32 and Makefiles entries of Reference manual node, that
made makeinfo dump core.
Mon Oct 13 17:15:57 1997 Robert Wilhelm <robert@physiol.med.tu-muenchen.de>
* [if1632/crtdll.spec]
Added missing math functions y0(), y1(), y2(), floor(), frexp(),
ldexp(), modf().
1997-11-01 20:08:16 +01:00
|
|
|
*/
|
2004-12-06 21:55:25 +01:00
|
|
|
static DWORD MIX_GetLineInfo(WORD wDevID, LPMIXERLINEW lpMl, DWORD fdwInfo)
|
Release 971101
Thu Oct 30 21:52:23 1997 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [windows/nonclient.c]
Changed NC_TrackSysMenu to give the same behaviour as MS-Windows,
i.e. system menu already appears when mouse button is depressed.
Changed NC_HandleNCLButtonDblClk so that double clicks on scroll
bar arrows are handled the same way as single clicks.
* [windows/winpos.c]
Fixed SetWindowPos32 to clear WIN_NO_REDRAW when SWP_SHOWWINDOW is
set; this is the way MS-Windows behaves.
Thu Oct 30 21:08:57 1997 Morten Welinder <terra@diku.dk>
* [controls/status.c]
In SW_SetText, fix condition, I hope.
* [controls/menu.c]
(GetMenuState32): Don't mask return value. Print more debug info.
(MENU_MenuBarCalcSize): Be more careful when printing debug
information.
(MENU_SetItemData): Empty strings are separators.
* [graphics/x11drv/text.c]
Don't prototype CLIPPING_IntersectClipRect.
* [include/dc.h]
Prototype CLIPPING_IntersectClipRect.
* [objects/font.c]
Remove non-portable (and faulty) smartness in FONT_TextMetric*to*.
In CreateFont32W and CreateFont16, handle null font name.
* [objects/text.c]
(TEXT_NextLine): Fix end-of-line bug.
* [if1632/shell32.spec]
Activate existing implementation of ExtractIconA.
* [misc/shell.c]
For Control_RunDLL, add types for parameters.
Thu Oct 30 14:54:11 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [controls/static.c] [include/windows.h] [misc/spy.c]
Added some win32 defines to static controls, basic SS_BITMAP style
handling implemented. [please add more, I am lacking knowledge and
time]
* [controls/status.c]
part_num 255 seems to indicate whole statusline (win95 cdplayer.exe)
* [if1632/thunk.c] [tools/build.c]
Support lret and 0x66 lret calls for CallTo16_regs
(needed for KERNEL32_45)
Fixed KERNEL32_45, QT_Thunk (should work now).
* [if1632/relay.c][if1632/builtin.c][tools/build.c][if1632/*32.spec]
Added string dumping to relay debugging for win32 apifuncs.
* [misc/ver.c]
Fixed and cleaned up VerQueryValue*.
* [multimedia/*.c][include/mmsystem.h][if1632/mmsystem.spec]
[if1632/winmm.spec]
Win32 support for lowlevel multimedia functions.
Added some mixer* lowlevel functions.
Some small fixes in the audio lowlevel queue handling, code
reformatting/cleanups.
* [debugger/hash.c]
Don't show difference between 16bit symbols if they are in
different segments.
* [objects/cursoricon.c]
Added GetIconInfo (partial) and CreateIconIndirect.
* [windows/mdi.c]
Fixed some "bad class" problems and crashes in MDICreateChild,
which happen in Win32 (jwp32.exe).
Wed Oct 29 00:57:27 1997 Bruce Milner <Bruce.Milner@genetics.utah.edu>
* [if1632/winaspi.spec] [misc/aspi.c] [include/aspi.c]
[documentation/aspi] [include/callback.h]
Added support for 16 bit ASPI calls to linux generic SCSI.
The support is not complete, but appears to run my Mustek
scanner from within ipplus.exe.
Mon Oct 27 00:59:41 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [windows/dce.c]
DC reuse framework.
Sun Oct 26 18:41:21 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [graphics/x11drv/xfont.c]
Substituted fonts are removed from the alias table. References to
the old name are also updated.
* [controls/combo.c]
LB_SELECTSTRING32 not CB_SELECTSTRING32 should be sent to
ComboLBox.
Sun Oct 26 14:25:00 1997 Nikita V. Youshchenko <yoush@cs.msu.su>
* [include/drive.h] [files/drive.c] [msdos/int21.c]
Partially implemented DOS drive mapping (int21 AX=440F).
Sat Oct 25 13:03:29 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [debugger/debug.l]
Support '.' in identifiers. Use "x . y" to access structure
fields.
* [debugger/hash.c] [loader/pe_image.c]
Load entry points of Win32 modules only when entering the
debugger.
* [debugger/break.c]
New function DEBUG_AddModuleBreakpoint() to set a breakpoint at
the start of every module.
* [files/file.c]
FILE_mmap() can now fake mmap() for unaligned offsets or broken
filesystems.
* [include/callback.h] [misc/callback.c] [if1632/thunk.c]
Use a table of callbacks instead of macros to differentiate
between emulator and Winelib.
* [loader/task.c]
Initialize current directory from cwd, not from module path.
* [tools/build.c]
Read CallTo16 prototypes directly from thunk.c source file.
* [windows/winproc.c] [windows/mdi.c]
Added translation for WM_MDIACTIVATE and WM_MDIGETACTIVE.
Fri Oct 24 21:41:25 1997 Uwe Bonnes <bon@elektron.ikp.tu-darmstadt.de>
* [files/drive.c]
Allow arguments like "a" for the drive related apis.
* [memory/global.c]
Keep the calculation for dwMemoryLoad in range.
* [misc/crtdll.c]
Make CRTDLL_getcwd use GetCurrentDirectory32A and alloc
its memory if requested.
Implemented CRTDLL_rename and CRTDLL_stat needed for
lcc-win32:wedit.exe.
Implemented CRTDLL__fullpath.
* [misc/comm.c]
High speed modes for the 16-bit mode Comm functions.
* [misc/cpu.c]
As applications may treat lpMaximumApplicationAddress as long,
use a valid long number.
* [misc/main.c]
In SystemParametersInfo16 ignore SPI_GETHIGHCONTRAST too.
* [misc/ole2nls.c]
Implement LCMAP_UPPERCASE for LCMapString32.
* [misc/wsprintf]
Made WPRINTF_ParseFormatA understand %ws.
* [win32/file.c]
Ignore FILE_ATTRIBUTE_NORMAL.
Stub for ReadFileEx.
Fri Oct 24 15:36:02 1997 Doug Ridgway <ridgway@routh.ucsd.edu>
* [memory/local.c]
Local heap exhaustion message now prints which builtin heap filled.
Fri Oct 24 00:46:34 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [windows/dialog.c]
Reversed CreateFont16/32W typo.
Thu Oct 23 23:44:20 1997 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [if1632/user.spec]
Fixed argument list for ChangeClipboardChain.
* [windows/mdi.c]
Pass correct hInstance to CreateWindow16() in MDICreateChild().
Mon Oct 20 11:51:24 1997 Carsten Fallesen <cf@it.dtu.dk>
* [objects/metafile.c]
Added support for META_SETTEXTCHAREXTRA.
* [objects/region.c]
Fixed crash in XPolygonRegion if there is only one point in
in the region.
* [if1632/gdi32.spec][include/gdi.h][include/windows.h]
[objects/gdiobj.c]
Completed OBJ_XXX defines in gdi.h, removed OBJ_XXX in gdiobj.c
and included gdi.h instead. Implemented GetObjectType32().
Thu Oct 16 17:21:32 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
* [documentation/wine.texinfo]
Fixed WIN32 and Makefiles entries of Reference manual node, that
made makeinfo dump core.
Mon Oct 13 17:15:57 1997 Robert Wilhelm <robert@physiol.med.tu-muenchen.de>
* [if1632/crtdll.spec]
Added missing math functions y0(), y1(), y2(), floor(), frexp(),
ldexp(), modf().
1997-11-01 20:08:16 +01:00
|
|
|
{
|
1999-10-23 15:59:21 +02:00
|
|
|
int i, j;
|
1999-05-03 11:26:48 +02:00
|
|
|
DWORD ret = MMSYSERR_NOERROR;
|
2001-11-06 00:53:48 +01:00
|
|
|
unsigned mask;
|
|
|
|
struct mixer* mix;
|
|
|
|
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("(%04X, %p, %u);\n", wDevID, lpMl, fdwInfo);
|
2001-11-06 00:53:48 +01:00
|
|
|
|
2004-08-23 00:26:48 +02:00
|
|
|
if (lpMl == NULL) {
|
|
|
|
WARN("invalid parameter: lpMl = NULL\n");
|
|
|
|
return MMSYSERR_INVALPARAM;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (lpMl->cbStruct != sizeof(*lpMl)) {
|
2008-12-02 15:01:48 +01:00
|
|
|
WARN("invalid parameter: lpMl->cbStruct = %d\n",
|
|
|
|
lpMl->cbStruct);
|
1999-05-03 11:26:48 +02:00
|
|
|
return MMSYSERR_INVALPARAM;
|
2004-08-20 21:22:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
if ((mix = MIX_Get(wDevID)) == NULL) {
|
2005-08-22 11:20:20 +02:00
|
|
|
WARN("bad device ID: %04X\n", wDevID);
|
2004-08-20 21:22:24 +02:00
|
|
|
return MMSYSERR_BADDEVICEID;
|
|
|
|
}
|
2002-06-01 01:06:46 +02:00
|
|
|
|
1999-05-03 11:26:48 +02:00
|
|
|
/* FIXME: set all the variables correctly... the lines below
|
|
|
|
* are very wrong...
|
|
|
|
*/
|
|
|
|
lpMl->fdwLine = MIXERLINE_LINEF_ACTIVE;
|
|
|
|
lpMl->dwUser = 0;
|
2002-06-01 01:06:46 +02:00
|
|
|
|
|
|
|
switch (fdwInfo & MIXER_GETLINEINFOF_QUERYMASK)
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
1999-05-03 11:26:48 +02:00
|
|
|
case MIXER_GETLINEINFOF_DESTINATION:
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("MIXER_GETLINEINFOF_DESTINATION (%08x)\n", lpMl->dwDestination);
|
2004-08-20 21:22:24 +02:00
|
|
|
if (lpMl->dwDestination >= 2) {
|
2006-10-06 22:59:51 +02:00
|
|
|
WARN("invalid parameter: lpMl->dwDestination = %d >= 2\n",
|
2004-08-23 00:26:48 +02:00
|
|
|
lpMl->dwDestination);
|
2001-11-06 00:53:48 +01:00
|
|
|
return MMSYSERR_INVALPARAM;
|
2004-08-20 21:22:24 +02:00
|
|
|
}
|
2004-08-22 04:02:27 +02:00
|
|
|
ret = MIX_GetLineInfoDst(mix, lpMl, lpMl->dwDestination);
|
|
|
|
if (ret != MMSYSERR_NOERROR) {
|
|
|
|
WARN("error\n");
|
2001-11-06 00:53:48 +01:00
|
|
|
return ret;
|
2004-08-22 04:02:27 +02:00
|
|
|
}
|
1999-05-03 11:26:48 +02:00
|
|
|
break;
|
|
|
|
case MIXER_GETLINEINFOF_SOURCE:
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("MIXER_GETLINEINFOF_SOURCE (%08x), dst=%08x\n", lpMl->dwSource,
|
2004-08-22 04:02:27 +02:00
|
|
|
lpMl->dwDestination);
|
2001-11-06 00:53:48 +01:00
|
|
|
switch (lpMl->dwDestination)
|
|
|
|
{
|
2004-08-27 21:38:47 +02:00
|
|
|
case LINEID_SPEAKER: mask = mix->devMask; break;
|
|
|
|
case LINEID_RECORD: mask = mix->recMask; break;
|
2004-08-22 04:02:27 +02:00
|
|
|
default:
|
2004-08-20 21:22:24 +02:00
|
|
|
WARN("invalid parameter\n");
|
|
|
|
return MMSYSERR_INVALPARAM;
|
2001-11-06 00:53:48 +01:00
|
|
|
}
|
1999-05-03 11:26:48 +02:00
|
|
|
i = lpMl->dwSource;
|
2002-06-01 01:06:46 +02:00
|
|
|
for (j = 0; j < SOUND_MIXER_NRDEVICES; j++)
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
|
|
|
if (WINE_CHN_SUPPORTS(mask, j) && (i-- == 0))
|
Release 971101
Thu Oct 30 21:52:23 1997 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [windows/nonclient.c]
Changed NC_TrackSysMenu to give the same behaviour as MS-Windows,
i.e. system menu already appears when mouse button is depressed.
Changed NC_HandleNCLButtonDblClk so that double clicks on scroll
bar arrows are handled the same way as single clicks.
* [windows/winpos.c]
Fixed SetWindowPos32 to clear WIN_NO_REDRAW when SWP_SHOWWINDOW is
set; this is the way MS-Windows behaves.
Thu Oct 30 21:08:57 1997 Morten Welinder <terra@diku.dk>
* [controls/status.c]
In SW_SetText, fix condition, I hope.
* [controls/menu.c]
(GetMenuState32): Don't mask return value. Print more debug info.
(MENU_MenuBarCalcSize): Be more careful when printing debug
information.
(MENU_SetItemData): Empty strings are separators.
* [graphics/x11drv/text.c]
Don't prototype CLIPPING_IntersectClipRect.
* [include/dc.h]
Prototype CLIPPING_IntersectClipRect.
* [objects/font.c]
Remove non-portable (and faulty) smartness in FONT_TextMetric*to*.
In CreateFont32W and CreateFont16, handle null font name.
* [objects/text.c]
(TEXT_NextLine): Fix end-of-line bug.
* [if1632/shell32.spec]
Activate existing implementation of ExtractIconA.
* [misc/shell.c]
For Control_RunDLL, add types for parameters.
Thu Oct 30 14:54:11 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [controls/static.c] [include/windows.h] [misc/spy.c]
Added some win32 defines to static controls, basic SS_BITMAP style
handling implemented. [please add more, I am lacking knowledge and
time]
* [controls/status.c]
part_num 255 seems to indicate whole statusline (win95 cdplayer.exe)
* [if1632/thunk.c] [tools/build.c]
Support lret and 0x66 lret calls for CallTo16_regs
(needed for KERNEL32_45)
Fixed KERNEL32_45, QT_Thunk (should work now).
* [if1632/relay.c][if1632/builtin.c][tools/build.c][if1632/*32.spec]
Added string dumping to relay debugging for win32 apifuncs.
* [misc/ver.c]
Fixed and cleaned up VerQueryValue*.
* [multimedia/*.c][include/mmsystem.h][if1632/mmsystem.spec]
[if1632/winmm.spec]
Win32 support for lowlevel multimedia functions.
Added some mixer* lowlevel functions.
Some small fixes in the audio lowlevel queue handling, code
reformatting/cleanups.
* [debugger/hash.c]
Don't show difference between 16bit symbols if they are in
different segments.
* [objects/cursoricon.c]
Added GetIconInfo (partial) and CreateIconIndirect.
* [windows/mdi.c]
Fixed some "bad class" problems and crashes in MDICreateChild,
which happen in Win32 (jwp32.exe).
Wed Oct 29 00:57:27 1997 Bruce Milner <Bruce.Milner@genetics.utah.edu>
* [if1632/winaspi.spec] [misc/aspi.c] [include/aspi.c]
[documentation/aspi] [include/callback.h]
Added support for 16 bit ASPI calls to linux generic SCSI.
The support is not complete, but appears to run my Mustek
scanner from within ipplus.exe.
Mon Oct 27 00:59:41 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [windows/dce.c]
DC reuse framework.
Sun Oct 26 18:41:21 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [graphics/x11drv/xfont.c]
Substituted fonts are removed from the alias table. References to
the old name are also updated.
* [controls/combo.c]
LB_SELECTSTRING32 not CB_SELECTSTRING32 should be sent to
ComboLBox.
Sun Oct 26 14:25:00 1997 Nikita V. Youshchenko <yoush@cs.msu.su>
* [include/drive.h] [files/drive.c] [msdos/int21.c]
Partially implemented DOS drive mapping (int21 AX=440F).
Sat Oct 25 13:03:29 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [debugger/debug.l]
Support '.' in identifiers. Use "x . y" to access structure
fields.
* [debugger/hash.c] [loader/pe_image.c]
Load entry points of Win32 modules only when entering the
debugger.
* [debugger/break.c]
New function DEBUG_AddModuleBreakpoint() to set a breakpoint at
the start of every module.
* [files/file.c]
FILE_mmap() can now fake mmap() for unaligned offsets or broken
filesystems.
* [include/callback.h] [misc/callback.c] [if1632/thunk.c]
Use a table of callbacks instead of macros to differentiate
between emulator and Winelib.
* [loader/task.c]
Initialize current directory from cwd, not from module path.
* [tools/build.c]
Read CallTo16 prototypes directly from thunk.c source file.
* [windows/winproc.c] [windows/mdi.c]
Added translation for WM_MDIACTIVATE and WM_MDIGETACTIVE.
Fri Oct 24 21:41:25 1997 Uwe Bonnes <bon@elektron.ikp.tu-darmstadt.de>
* [files/drive.c]
Allow arguments like "a" for the drive related apis.
* [memory/global.c]
Keep the calculation for dwMemoryLoad in range.
* [misc/crtdll.c]
Make CRTDLL_getcwd use GetCurrentDirectory32A and alloc
its memory if requested.
Implemented CRTDLL_rename and CRTDLL_stat needed for
lcc-win32:wedit.exe.
Implemented CRTDLL__fullpath.
* [misc/comm.c]
High speed modes for the 16-bit mode Comm functions.
* [misc/cpu.c]
As applications may treat lpMaximumApplicationAddress as long,
use a valid long number.
* [misc/main.c]
In SystemParametersInfo16 ignore SPI_GETHIGHCONTRAST too.
* [misc/ole2nls.c]
Implement LCMAP_UPPERCASE for LCMapString32.
* [misc/wsprintf]
Made WPRINTF_ParseFormatA understand %ws.
* [win32/file.c]
Ignore FILE_ATTRIBUTE_NORMAL.
Stub for ReadFileEx.
Fri Oct 24 15:36:02 1997 Doug Ridgway <ridgway@routh.ucsd.edu>
* [memory/local.c]
Local heap exhaustion message now prints which builtin heap filled.
Fri Oct 24 00:46:34 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [windows/dialog.c]
Reversed CreateFont16/32W typo.
Thu Oct 23 23:44:20 1997 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [if1632/user.spec]
Fixed argument list for ChangeClipboardChain.
* [windows/mdi.c]
Pass correct hInstance to CreateWindow16() in MDICreateChild().
Mon Oct 20 11:51:24 1997 Carsten Fallesen <cf@it.dtu.dk>
* [objects/metafile.c]
Added support for META_SETTEXTCHAREXTRA.
* [objects/region.c]
Fixed crash in XPolygonRegion if there is only one point in
in the region.
* [if1632/gdi32.spec][include/gdi.h][include/windows.h]
[objects/gdiobj.c]
Completed OBJ_XXX defines in gdi.h, removed OBJ_XXX in gdiobj.c
and included gdi.h instead. Implemented GetObjectType32().
Thu Oct 16 17:21:32 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
* [documentation/wine.texinfo]
Fixed WIN32 and Makefiles entries of Reference manual node, that
made makeinfo dump core.
Mon Oct 13 17:15:57 1997 Robert Wilhelm <robert@physiol.med.tu-muenchen.de>
* [if1632/crtdll.spec]
Added missing math functions y0(), y1(), y2(), floor(), frexp(),
ldexp(), modf().
1997-11-01 20:08:16 +01:00
|
|
|
break;
|
|
|
|
}
|
2004-08-20 21:22:24 +02:00
|
|
|
if (j >= SOUND_MIXER_NRDEVICES) {
|
|
|
|
WARN("invalid line\n");
|
1999-05-03 11:26:48 +02:00
|
|
|
return MIXERR_INVALLINE;
|
2004-08-20 21:22:24 +02:00
|
|
|
}
|
2004-08-22 04:02:27 +02:00
|
|
|
ret = MIX_GetLineInfoSrc(mix, lpMl, j, lpMl->dwDestination);
|
|
|
|
if (ret != MMSYSERR_NOERROR) {
|
|
|
|
WARN("error\n");
|
2000-01-04 01:25:39 +01:00
|
|
|
return ret;
|
2004-08-22 04:02:27 +02:00
|
|
|
}
|
1999-05-03 11:26:48 +02:00
|
|
|
break;
|
|
|
|
case MIXER_GETLINEINFOF_LINEID:
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("MIXER_GETLINEINFOF_LINEID (%08x)\n", lpMl->dwLineID);
|
2001-11-06 00:53:48 +01:00
|
|
|
|
2004-08-20 21:22:24 +02:00
|
|
|
if (!MIX_CheckLine(lpMl->dwLineID)) {
|
|
|
|
WARN("invalid line\n");
|
1999-05-03 11:26:48 +02:00
|
|
|
return MIXERR_INVALLINE;
|
2004-08-20 21:22:24 +02:00
|
|
|
}
|
2001-11-06 00:53:48 +01:00
|
|
|
if (HIWORD(lpMl->dwLineID) == LINEID_DST)
|
|
|
|
ret = MIX_GetLineInfoDst(mix, lpMl, LOWORD(lpMl->dwLineID));
|
|
|
|
else
|
2004-08-22 04:02:27 +02:00
|
|
|
ret = MIX_GetLineInfoSrc(mix, lpMl, HIWORD(lpMl->dwLineID),
|
|
|
|
LOWORD(lpMl->dwLineID));
|
|
|
|
if (ret != MMSYSERR_NOERROR) {
|
|
|
|
WARN("error\n");
|
2000-01-04 01:25:39 +01:00
|
|
|
return ret;
|
2004-08-22 04:02:27 +02:00
|
|
|
}
|
1999-05-03 11:26:48 +02:00
|
|
|
break;
|
|
|
|
case MIXER_GETLINEINFOF_COMPONENTTYPE:
|
2004-08-23 00:26:48 +02:00
|
|
|
TRACE("MIXER_GETLINEINFOF_COMPONENTTYPE (%s)\n",
|
|
|
|
getComponentType(lpMl->dwComponentType));
|
2002-06-01 01:06:46 +02:00
|
|
|
switch (lpMl->dwComponentType)
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
2005-03-07 11:59:28 +01:00
|
|
|
case MIXERLINE_COMPONENTTYPE_DST_HEADPHONES:
|
1999-05-03 11:26:48 +02:00
|
|
|
case MIXERLINE_COMPONENTTYPE_DST_SPEAKERS:
|
2005-03-07 11:59:28 +01:00
|
|
|
ret = MIX_GetLineInfoDst(mix, lpMl, LINEID_SPEAKER);
|
2001-11-06 00:53:48 +01:00
|
|
|
break;
|
2005-03-07 11:59:28 +01:00
|
|
|
case MIXERLINE_COMPONENTTYPE_DST_LINE:
|
|
|
|
case MIXERLINE_COMPONENTTYPE_DST_VOICEIN:
|
2001-11-06 00:53:48 +01:00
|
|
|
case MIXERLINE_COMPONENTTYPE_DST_WAVEIN:
|
2005-03-07 11:59:28 +01:00
|
|
|
ret = MIX_GetLineInfoDst(mix, lpMl, LINEID_RECORD);
|
1999-05-03 11:26:48 +02:00
|
|
|
break;
|
|
|
|
case MIXERLINE_COMPONENTTYPE_SRC_SYNTHESIZER:
|
2001-11-06 00:53:48 +01:00
|
|
|
ret = MIX_GetLineInfoSrc(mix, lpMl, SOUND_MIXER_SYNTH, 0);
|
1999-05-03 11:26:48 +02:00
|
|
|
break;
|
|
|
|
case MIXERLINE_COMPONENTTYPE_SRC_COMPACTDISC:
|
2001-11-06 00:53:48 +01:00
|
|
|
ret = MIX_GetLineInfoSrc(mix, lpMl, SOUND_MIXER_CD, 0);
|
1999-05-03 11:26:48 +02:00
|
|
|
break;
|
|
|
|
case MIXERLINE_COMPONENTTYPE_SRC_LINE:
|
2001-11-06 00:53:48 +01:00
|
|
|
ret = MIX_GetLineInfoSrc(mix, lpMl, SOUND_MIXER_LINE, 0);
|
1999-05-03 11:26:48 +02:00
|
|
|
break;
|
|
|
|
case MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE:
|
2001-11-06 00:53:48 +01:00
|
|
|
ret = MIX_GetLineInfoSrc(mix, lpMl, SOUND_MIXER_MIC, 1);
|
1999-05-03 11:26:48 +02:00
|
|
|
break;
|
|
|
|
case MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT:
|
2001-11-06 00:53:48 +01:00
|
|
|
ret = MIX_GetLineInfoSrc(mix, lpMl, SOUND_MIXER_PCM, 0);
|
|
|
|
break;
|
|
|
|
case MIXERLINE_COMPONENTTYPE_SRC_UNDEFINED:
|
|
|
|
ret = MIX_GetLineInfoSrc(mix, lpMl, SOUND_MIXER_IMIX, 1);
|
1999-05-03 11:26:48 +02:00
|
|
|
break;
|
|
|
|
default:
|
2004-08-23 00:26:48 +02:00
|
|
|
FIXME("Unhandled component type (%s)\n",
|
|
|
|
getComponentType(lpMl->dwComponentType));
|
1999-05-03 11:26:48 +02:00
|
|
|
return MMSYSERR_INVALPARAM;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case MIXER_GETLINEINFOF_TARGETTYPE:
|
2004-08-22 04:02:27 +02:00
|
|
|
FIXME("MIXER_GETLINEINFOF_TARGETTYPE not implemented yet.\n");
|
2004-08-23 00:26:48 +02:00
|
|
|
TRACE("MIXER_GETLINEINFOF_TARGETTYPE (%s)\n",
|
|
|
|
getTargetType(lpMl->Target.dwType));
|
|
|
|
switch (lpMl->Target.dwType) {
|
|
|
|
case MIXERLINE_TARGETTYPE_UNDEFINED:
|
|
|
|
case MIXERLINE_TARGETTYPE_WAVEOUT:
|
|
|
|
case MIXERLINE_TARGETTYPE_WAVEIN:
|
|
|
|
case MIXERLINE_TARGETTYPE_MIDIOUT:
|
|
|
|
case MIXERLINE_TARGETTYPE_MIDIIN:
|
|
|
|
case MIXERLINE_TARGETTYPE_AUX:
|
|
|
|
default:
|
|
|
|
FIXME("Unhandled target type (%s)\n",
|
|
|
|
getTargetType(lpMl->Target.dwType));
|
|
|
|
return MMSYSERR_INVALPARAM;
|
|
|
|
}
|
1999-05-03 11:26:48 +02:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
WARN("Unknown flag (%08lx)\n", fdwInfo & MIXER_GETLINEINFOF_QUERYMASK);
|
|
|
|
break;
|
|
|
|
}
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2004-08-27 21:38:47 +02:00
|
|
|
if ((fdwInfo & MIXER_GETLINEINFOF_QUERYMASK) != MIXER_GETLINEINFOF_TARGETTYPE) {
|
2004-12-06 21:55:25 +01:00
|
|
|
const char* name;
|
2004-08-27 21:38:47 +02:00
|
|
|
lpMl->Target.dwDeviceID = 0xFFFFFFFF;
|
|
|
|
lpMl->Target.wMid = WINE_MIXER_MANUF_ID;
|
|
|
|
lpMl->Target.wPid = WINE_MIXER_PRODUCT_ID;
|
|
|
|
lpMl->Target.vDriverVersion = WINE_MIXER_VERSION;
|
2004-12-06 21:55:25 +01:00
|
|
|
if (!(name = mix->name)) name = WINE_MIXER_NAME;
|
2009-02-18 21:32:50 +01:00
|
|
|
MultiByteToWideChar(CP_UNIXCP, 0, name, -1, lpMl->Target.szPname, sizeof(lpMl->Target.szPname) / sizeof(WCHAR));
|
2004-08-27 21:38:47 +02:00
|
|
|
}
|
2002-06-01 01:06:46 +02:00
|
|
|
|
1999-05-03 11:26:48 +02:00
|
|
|
return ret;
|
Release 971101
Thu Oct 30 21:52:23 1997 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [windows/nonclient.c]
Changed NC_TrackSysMenu to give the same behaviour as MS-Windows,
i.e. system menu already appears when mouse button is depressed.
Changed NC_HandleNCLButtonDblClk so that double clicks on scroll
bar arrows are handled the same way as single clicks.
* [windows/winpos.c]
Fixed SetWindowPos32 to clear WIN_NO_REDRAW when SWP_SHOWWINDOW is
set; this is the way MS-Windows behaves.
Thu Oct 30 21:08:57 1997 Morten Welinder <terra@diku.dk>
* [controls/status.c]
In SW_SetText, fix condition, I hope.
* [controls/menu.c]
(GetMenuState32): Don't mask return value. Print more debug info.
(MENU_MenuBarCalcSize): Be more careful when printing debug
information.
(MENU_SetItemData): Empty strings are separators.
* [graphics/x11drv/text.c]
Don't prototype CLIPPING_IntersectClipRect.
* [include/dc.h]
Prototype CLIPPING_IntersectClipRect.
* [objects/font.c]
Remove non-portable (and faulty) smartness in FONT_TextMetric*to*.
In CreateFont32W and CreateFont16, handle null font name.
* [objects/text.c]
(TEXT_NextLine): Fix end-of-line bug.
* [if1632/shell32.spec]
Activate existing implementation of ExtractIconA.
* [misc/shell.c]
For Control_RunDLL, add types for parameters.
Thu Oct 30 14:54:11 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [controls/static.c] [include/windows.h] [misc/spy.c]
Added some win32 defines to static controls, basic SS_BITMAP style
handling implemented. [please add more, I am lacking knowledge and
time]
* [controls/status.c]
part_num 255 seems to indicate whole statusline (win95 cdplayer.exe)
* [if1632/thunk.c] [tools/build.c]
Support lret and 0x66 lret calls for CallTo16_regs
(needed for KERNEL32_45)
Fixed KERNEL32_45, QT_Thunk (should work now).
* [if1632/relay.c][if1632/builtin.c][tools/build.c][if1632/*32.spec]
Added string dumping to relay debugging for win32 apifuncs.
* [misc/ver.c]
Fixed and cleaned up VerQueryValue*.
* [multimedia/*.c][include/mmsystem.h][if1632/mmsystem.spec]
[if1632/winmm.spec]
Win32 support for lowlevel multimedia functions.
Added some mixer* lowlevel functions.
Some small fixes in the audio lowlevel queue handling, code
reformatting/cleanups.
* [debugger/hash.c]
Don't show difference between 16bit symbols if they are in
different segments.
* [objects/cursoricon.c]
Added GetIconInfo (partial) and CreateIconIndirect.
* [windows/mdi.c]
Fixed some "bad class" problems and crashes in MDICreateChild,
which happen in Win32 (jwp32.exe).
Wed Oct 29 00:57:27 1997 Bruce Milner <Bruce.Milner@genetics.utah.edu>
* [if1632/winaspi.spec] [misc/aspi.c] [include/aspi.c]
[documentation/aspi] [include/callback.h]
Added support for 16 bit ASPI calls to linux generic SCSI.
The support is not complete, but appears to run my Mustek
scanner from within ipplus.exe.
Mon Oct 27 00:59:41 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [windows/dce.c]
DC reuse framework.
Sun Oct 26 18:41:21 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [graphics/x11drv/xfont.c]
Substituted fonts are removed from the alias table. References to
the old name are also updated.
* [controls/combo.c]
LB_SELECTSTRING32 not CB_SELECTSTRING32 should be sent to
ComboLBox.
Sun Oct 26 14:25:00 1997 Nikita V. Youshchenko <yoush@cs.msu.su>
* [include/drive.h] [files/drive.c] [msdos/int21.c]
Partially implemented DOS drive mapping (int21 AX=440F).
Sat Oct 25 13:03:29 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [debugger/debug.l]
Support '.' in identifiers. Use "x . y" to access structure
fields.
* [debugger/hash.c] [loader/pe_image.c]
Load entry points of Win32 modules only when entering the
debugger.
* [debugger/break.c]
New function DEBUG_AddModuleBreakpoint() to set a breakpoint at
the start of every module.
* [files/file.c]
FILE_mmap() can now fake mmap() for unaligned offsets or broken
filesystems.
* [include/callback.h] [misc/callback.c] [if1632/thunk.c]
Use a table of callbacks instead of macros to differentiate
between emulator and Winelib.
* [loader/task.c]
Initialize current directory from cwd, not from module path.
* [tools/build.c]
Read CallTo16 prototypes directly from thunk.c source file.
* [windows/winproc.c] [windows/mdi.c]
Added translation for WM_MDIACTIVATE and WM_MDIGETACTIVE.
Fri Oct 24 21:41:25 1997 Uwe Bonnes <bon@elektron.ikp.tu-darmstadt.de>
* [files/drive.c]
Allow arguments like "a" for the drive related apis.
* [memory/global.c]
Keep the calculation for dwMemoryLoad in range.
* [misc/crtdll.c]
Make CRTDLL_getcwd use GetCurrentDirectory32A and alloc
its memory if requested.
Implemented CRTDLL_rename and CRTDLL_stat needed for
lcc-win32:wedit.exe.
Implemented CRTDLL__fullpath.
* [misc/comm.c]
High speed modes for the 16-bit mode Comm functions.
* [misc/cpu.c]
As applications may treat lpMaximumApplicationAddress as long,
use a valid long number.
* [misc/main.c]
In SystemParametersInfo16 ignore SPI_GETHIGHCONTRAST too.
* [misc/ole2nls.c]
Implement LCMAP_UPPERCASE for LCMapString32.
* [misc/wsprintf]
Made WPRINTF_ParseFormatA understand %ws.
* [win32/file.c]
Ignore FILE_ATTRIBUTE_NORMAL.
Stub for ReadFileEx.
Fri Oct 24 15:36:02 1997 Doug Ridgway <ridgway@routh.ucsd.edu>
* [memory/local.c]
Local heap exhaustion message now prints which builtin heap filled.
Fri Oct 24 00:46:34 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [windows/dialog.c]
Reversed CreateFont16/32W typo.
Thu Oct 23 23:44:20 1997 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [if1632/user.spec]
Fixed argument list for ChangeClipboardChain.
* [windows/mdi.c]
Pass correct hInstance to CreateWindow16() in MDICreateChild().
Mon Oct 20 11:51:24 1997 Carsten Fallesen <cf@it.dtu.dk>
* [objects/metafile.c]
Added support for META_SETTEXTCHAREXTRA.
* [objects/region.c]
Fixed crash in XPolygonRegion if there is only one point in
in the region.
* [if1632/gdi32.spec][include/gdi.h][include/windows.h]
[objects/gdiobj.c]
Completed OBJ_XXX defines in gdi.h, removed OBJ_XXX in gdiobj.c
and included gdi.h instead. Implemented GetObjectType32().
Thu Oct 16 17:21:32 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
* [documentation/wine.texinfo]
Fixed WIN32 and Makefiles entries of Reference manual node, that
made makeinfo dump core.
Mon Oct 13 17:15:57 1997 Robert Wilhelm <robert@physiol.med.tu-muenchen.de>
* [if1632/crtdll.spec]
Added missing math functions y0(), y1(), y2(), floor(), frexp(),
ldexp(), modf().
1997-11-01 20:08:16 +01:00
|
|
|
}
|
|
|
|
|
2001-11-06 00:53:48 +01:00
|
|
|
/******************************************************************
|
|
|
|
* MIX_CheckControl
|
|
|
|
*
|
1999-10-23 15:59:21 +02:00
|
|
|
*/
|
2001-11-06 00:53:48 +01:00
|
|
|
static BOOL MIX_CheckControl(struct mixer* mix, DWORD ctrlID)
|
1999-10-23 15:59:21 +02:00
|
|
|
{
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("(%p, %08x)\n", mix, ctrlID);
|
2004-08-22 04:02:27 +02:00
|
|
|
|
2001-11-06 00:53:48 +01:00
|
|
|
return (ctrlID >= 1 && ctrlID <= mix->numCtrl);
|
Release 971101
Thu Oct 30 21:52:23 1997 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [windows/nonclient.c]
Changed NC_TrackSysMenu to give the same behaviour as MS-Windows,
i.e. system menu already appears when mouse button is depressed.
Changed NC_HandleNCLButtonDblClk so that double clicks on scroll
bar arrows are handled the same way as single clicks.
* [windows/winpos.c]
Fixed SetWindowPos32 to clear WIN_NO_REDRAW when SWP_SHOWWINDOW is
set; this is the way MS-Windows behaves.
Thu Oct 30 21:08:57 1997 Morten Welinder <terra@diku.dk>
* [controls/status.c]
In SW_SetText, fix condition, I hope.
* [controls/menu.c]
(GetMenuState32): Don't mask return value. Print more debug info.
(MENU_MenuBarCalcSize): Be more careful when printing debug
information.
(MENU_SetItemData): Empty strings are separators.
* [graphics/x11drv/text.c]
Don't prototype CLIPPING_IntersectClipRect.
* [include/dc.h]
Prototype CLIPPING_IntersectClipRect.
* [objects/font.c]
Remove non-portable (and faulty) smartness in FONT_TextMetric*to*.
In CreateFont32W and CreateFont16, handle null font name.
* [objects/text.c]
(TEXT_NextLine): Fix end-of-line bug.
* [if1632/shell32.spec]
Activate existing implementation of ExtractIconA.
* [misc/shell.c]
For Control_RunDLL, add types for parameters.
Thu Oct 30 14:54:11 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [controls/static.c] [include/windows.h] [misc/spy.c]
Added some win32 defines to static controls, basic SS_BITMAP style
handling implemented. [please add more, I am lacking knowledge and
time]
* [controls/status.c]
part_num 255 seems to indicate whole statusline (win95 cdplayer.exe)
* [if1632/thunk.c] [tools/build.c]
Support lret and 0x66 lret calls for CallTo16_regs
(needed for KERNEL32_45)
Fixed KERNEL32_45, QT_Thunk (should work now).
* [if1632/relay.c][if1632/builtin.c][tools/build.c][if1632/*32.spec]
Added string dumping to relay debugging for win32 apifuncs.
* [misc/ver.c]
Fixed and cleaned up VerQueryValue*.
* [multimedia/*.c][include/mmsystem.h][if1632/mmsystem.spec]
[if1632/winmm.spec]
Win32 support for lowlevel multimedia functions.
Added some mixer* lowlevel functions.
Some small fixes in the audio lowlevel queue handling, code
reformatting/cleanups.
* [debugger/hash.c]
Don't show difference between 16bit symbols if they are in
different segments.
* [objects/cursoricon.c]
Added GetIconInfo (partial) and CreateIconIndirect.
* [windows/mdi.c]
Fixed some "bad class" problems and crashes in MDICreateChild,
which happen in Win32 (jwp32.exe).
Wed Oct 29 00:57:27 1997 Bruce Milner <Bruce.Milner@genetics.utah.edu>
* [if1632/winaspi.spec] [misc/aspi.c] [include/aspi.c]
[documentation/aspi] [include/callback.h]
Added support for 16 bit ASPI calls to linux generic SCSI.
The support is not complete, but appears to run my Mustek
scanner from within ipplus.exe.
Mon Oct 27 00:59:41 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [windows/dce.c]
DC reuse framework.
Sun Oct 26 18:41:21 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [graphics/x11drv/xfont.c]
Substituted fonts are removed from the alias table. References to
the old name are also updated.
* [controls/combo.c]
LB_SELECTSTRING32 not CB_SELECTSTRING32 should be sent to
ComboLBox.
Sun Oct 26 14:25:00 1997 Nikita V. Youshchenko <yoush@cs.msu.su>
* [include/drive.h] [files/drive.c] [msdos/int21.c]
Partially implemented DOS drive mapping (int21 AX=440F).
Sat Oct 25 13:03:29 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [debugger/debug.l]
Support '.' in identifiers. Use "x . y" to access structure
fields.
* [debugger/hash.c] [loader/pe_image.c]
Load entry points of Win32 modules only when entering the
debugger.
* [debugger/break.c]
New function DEBUG_AddModuleBreakpoint() to set a breakpoint at
the start of every module.
* [files/file.c]
FILE_mmap() can now fake mmap() for unaligned offsets or broken
filesystems.
* [include/callback.h] [misc/callback.c] [if1632/thunk.c]
Use a table of callbacks instead of macros to differentiate
between emulator and Winelib.
* [loader/task.c]
Initialize current directory from cwd, not from module path.
* [tools/build.c]
Read CallTo16 prototypes directly from thunk.c source file.
* [windows/winproc.c] [windows/mdi.c]
Added translation for WM_MDIACTIVATE and WM_MDIGETACTIVE.
Fri Oct 24 21:41:25 1997 Uwe Bonnes <bon@elektron.ikp.tu-darmstadt.de>
* [files/drive.c]
Allow arguments like "a" for the drive related apis.
* [memory/global.c]
Keep the calculation for dwMemoryLoad in range.
* [misc/crtdll.c]
Make CRTDLL_getcwd use GetCurrentDirectory32A and alloc
its memory if requested.
Implemented CRTDLL_rename and CRTDLL_stat needed for
lcc-win32:wedit.exe.
Implemented CRTDLL__fullpath.
* [misc/comm.c]
High speed modes for the 16-bit mode Comm functions.
* [misc/cpu.c]
As applications may treat lpMaximumApplicationAddress as long,
use a valid long number.
* [misc/main.c]
In SystemParametersInfo16 ignore SPI_GETHIGHCONTRAST too.
* [misc/ole2nls.c]
Implement LCMAP_UPPERCASE for LCMapString32.
* [misc/wsprintf]
Made WPRINTF_ParseFormatA understand %ws.
* [win32/file.c]
Ignore FILE_ATTRIBUTE_NORMAL.
Stub for ReadFileEx.
Fri Oct 24 15:36:02 1997 Doug Ridgway <ridgway@routh.ucsd.edu>
* [memory/local.c]
Local heap exhaustion message now prints which builtin heap filled.
Fri Oct 24 00:46:34 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [windows/dialog.c]
Reversed CreateFont16/32W typo.
Thu Oct 23 23:44:20 1997 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [if1632/user.spec]
Fixed argument list for ChangeClipboardChain.
* [windows/mdi.c]
Pass correct hInstance to CreateWindow16() in MDICreateChild().
Mon Oct 20 11:51:24 1997 Carsten Fallesen <cf@it.dtu.dk>
* [objects/metafile.c]
Added support for META_SETTEXTCHAREXTRA.
* [objects/region.c]
Fixed crash in XPolygonRegion if there is only one point in
in the region.
* [if1632/gdi32.spec][include/gdi.h][include/windows.h]
[objects/gdiobj.c]
Completed OBJ_XXX defines in gdi.h, removed OBJ_XXX in gdiobj.c
and included gdi.h instead. Implemented GetObjectType32().
Thu Oct 16 17:21:32 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
* [documentation/wine.texinfo]
Fixed WIN32 and Makefiles entries of Reference manual node, that
made makeinfo dump core.
Mon Oct 13 17:15:57 1997 Robert Wilhelm <robert@physiol.med.tu-muenchen.de>
* [if1632/crtdll.spec]
Added missing math functions y0(), y1(), y2(), floor(), frexp(),
ldexp(), modf().
1997-11-01 20:08:16 +01:00
|
|
|
}
|
|
|
|
|
1999-05-03 11:26:48 +02:00
|
|
|
/**************************************************************************
|
|
|
|
* MIX_GetLineControls [internal]
|
|
|
|
*/
|
2004-12-06 21:55:25 +01:00
|
|
|
static DWORD MIX_GetLineControls(WORD wDevID, LPMIXERLINECONTROLSW lpMlc,
|
2004-08-20 21:22:24 +02:00
|
|
|
DWORD flags)
|
1999-03-22 15:50:38 +01:00
|
|
|
{
|
1999-10-23 15:59:21 +02:00
|
|
|
DWORD dwRet = MMSYSERR_NOERROR;
|
2001-11-06 00:53:48 +01:00
|
|
|
struct mixer* mix;
|
1999-03-22 15:50:38 +01:00
|
|
|
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("(%04X, %p, %u);\n", wDevID, lpMlc, flags);
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2004-08-20 21:22:24 +02:00
|
|
|
if (lpMlc == NULL) {
|
|
|
|
WARN("invalid parameter: lpMlc == NULL\n");
|
|
|
|
return MMSYSERR_INVALPARAM;
|
|
|
|
}
|
|
|
|
|
2004-08-23 00:26:48 +02:00
|
|
|
if (lpMlc->cbStruct < sizeof(*lpMlc)) {
|
2008-12-02 15:01:48 +01:00
|
|
|
WARN("invalid parameter: lpMlc->cbStruct = %d\n",
|
|
|
|
lpMlc->cbStruct);
|
2004-08-23 00:26:48 +02:00
|
|
|
return MMSYSERR_INVALPARAM;
|
|
|
|
}
|
|
|
|
|
2004-12-06 21:55:25 +01:00
|
|
|
if (lpMlc->cbmxctrl < sizeof(MIXERCONTROLW)) {
|
2008-12-02 15:01:48 +01:00
|
|
|
WARN("invalid parameter: lpMlc->cbmxctrl = %d\n",
|
|
|
|
lpMlc->cbmxctrl);
|
1999-05-03 11:26:48 +02:00
|
|
|
return MMSYSERR_INVALPARAM;
|
2004-08-20 21:22:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
if ((mix = MIX_Get(wDevID)) == NULL) {
|
2005-08-22 11:20:20 +02:00
|
|
|
WARN("bad device ID: %04X\n", wDevID);
|
2004-08-20 21:22:24 +02:00
|
|
|
return MMSYSERR_BADDEVICEID;
|
|
|
|
}
|
1999-03-22 15:50:38 +01:00
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
switch (flags & MIXER_GETLINECONTROLSF_QUERYMASK)
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
1999-05-03 11:26:48 +02:00
|
|
|
case MIXER_GETLINECONTROLSF_ALL:
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
|
|
|
int i, j;
|
|
|
|
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("line=%08x MIXER_GETLINECONTROLSF_ALL (%d)\n",
|
2004-08-22 04:02:27 +02:00
|
|
|
lpMlc->dwLineID, lpMlc->cControls);
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2001-11-06 00:53:48 +01:00
|
|
|
for (i = j = 0; i < mix->numCtrl; i++)
|
|
|
|
{
|
|
|
|
if (mix->ctrl[i].dwLineID == lpMlc->dwLineID)
|
|
|
|
j++;
|
|
|
|
}
|
2004-08-20 21:22:24 +02:00
|
|
|
|
|
|
|
if (!j || lpMlc->cControls != j) {
|
|
|
|
WARN("invalid parameter\n");
|
|
|
|
dwRet = MMSYSERR_INVALPARAM;
|
|
|
|
} else if (!MIX_CheckLine(lpMlc->dwLineID)) {
|
|
|
|
WARN("invalid line\n");
|
|
|
|
dwRet = MIXERR_INVALLINE;
|
|
|
|
} else {
|
2001-11-06 00:53:48 +01:00
|
|
|
for (i = j = 0; i < mix->numCtrl; i++)
|
|
|
|
{
|
|
|
|
if (mix->ctrl[i].dwLineID == lpMlc->dwLineID)
|
|
|
|
{
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("[%d] => [%2d]: typ=%08x\n", j, i + 1,
|
2004-08-20 21:22:24 +02:00
|
|
|
mix->ctrl[i].ctrl.dwControlType);
|
2001-11-06 00:53:48 +01:00
|
|
|
lpMlc->pamxctrl[j++] = mix->ctrl[i].ctrl;
|
2004-10-11 21:57:10 +02:00
|
|
|
}
|
2001-11-06 00:53:48 +01:00
|
|
|
}
|
|
|
|
}
|
1999-10-23 15:59:21 +02:00
|
|
|
}
|
1999-05-03 11:26:48 +02:00
|
|
|
break;
|
|
|
|
case MIXER_GETLINECONTROLSF_ONEBYID:
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("line=%08x MIXER_GETLINECONTROLSF_ONEBYID (%x)\n",
|
2004-08-22 04:02:27 +02:00
|
|
|
lpMlc->dwLineID, lpMlc->u.dwControlID);
|
2001-11-06 00:53:48 +01:00
|
|
|
|
|
|
|
if (!MIX_CheckControl(mix, lpMlc->u.dwControlID) ||
|
2004-08-20 21:22:24 +02:00
|
|
|
mix->ctrl[lpMlc->u.dwControlID - 1].dwLineID != lpMlc->dwLineID) {
|
|
|
|
WARN("invalid parameter\n");
|
1999-10-23 15:59:21 +02:00
|
|
|
dwRet = MMSYSERR_INVALPARAM;
|
2004-08-20 21:22:24 +02:00
|
|
|
} else
|
2001-11-06 00:53:48 +01:00
|
|
|
lpMlc->pamxctrl[0] = mix->ctrl[lpMlc->u.dwControlID - 1].ctrl;
|
1999-05-03 11:26:48 +02:00
|
|
|
break;
|
|
|
|
case MIXER_GETLINECONTROLSF_ONEBYTYPE:
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("line=%08x MIXER_GETLINECONTROLSF_ONEBYTYPE (%s)\n",
|
2004-08-22 04:02:27 +02:00
|
|
|
lpMlc->dwLineID, getControlType(lpMlc->u.dwControlType));
|
2004-08-20 21:22:24 +02:00
|
|
|
if (!MIX_CheckLine(lpMlc->dwLineID)) {
|
|
|
|
WARN("invalid line\n");
|
|
|
|
dwRet = MIXERR_INVALLINE;
|
|
|
|
} else {
|
|
|
|
int i;
|
|
|
|
DWORD ct = lpMlc->u.dwControlType & MIXERCONTROL_CT_CLASS_MASK;
|
|
|
|
for (i = 0; i < mix->numCtrl; i++) {
|
2001-11-06 00:53:48 +01:00
|
|
|
if (mix->ctrl[i].dwLineID == lpMlc->dwLineID &&
|
2004-08-20 21:22:24 +02:00
|
|
|
ct == (mix->ctrl[i].ctrl.dwControlType &
|
|
|
|
MIXERCONTROL_CT_CLASS_MASK)) {
|
2001-11-06 00:53:48 +01:00
|
|
|
lpMlc->pamxctrl[0] = mix->ctrl[i].ctrl;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2004-08-20 21:22:24 +02:00
|
|
|
|
|
|
|
if (i == mix->numCtrl) {
|
2004-08-22 04:02:27 +02:00
|
|
|
WARN("invalid parameter: control not found\n");
|
2004-08-20 21:22:24 +02:00
|
|
|
dwRet = MMSYSERR_INVALPARAM;
|
|
|
|
}
|
1999-10-23 15:59:21 +02:00
|
|
|
}
|
1999-05-03 11:26:48 +02:00
|
|
|
break;
|
|
|
|
default:
|
1999-05-24 10:16:31 +02:00
|
|
|
ERR("Unknown flag %08lx\n", flags & MIXER_GETLINECONTROLSF_QUERYMASK);
|
1999-10-23 15:59:21 +02:00
|
|
|
dwRet = MMSYSERR_INVALPARAM;
|
1999-05-03 11:26:48 +02:00
|
|
|
}
|
1999-10-23 15:59:21 +02:00
|
|
|
|
|
|
|
return dwRet;
|
1999-03-22 15:50:38 +01:00
|
|
|
}
|
1999-05-03 11:26:48 +02:00
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* MIX_GetControlDetails [internal]
|
|
|
|
*/
|
2004-08-22 04:02:27 +02:00
|
|
|
static DWORD MIX_GetControlDetails(WORD wDevID, LPMIXERCONTROLDETAILS lpmcd,
|
|
|
|
DWORD fdwDetails)
|
1999-05-03 11:26:48 +02:00
|
|
|
{
|
2001-11-06 00:53:48 +01:00
|
|
|
DWORD ret = MMSYSERR_NOTSUPPORTED;
|
2007-12-14 00:18:05 +01:00
|
|
|
DWORD chnl;
|
2001-11-06 00:53:48 +01:00
|
|
|
struct mixer* mix;
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("(%04X, %p, %u);\n", wDevID, lpmcd, fdwDetails);
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2004-08-20 21:22:24 +02:00
|
|
|
if (lpmcd == NULL) {
|
|
|
|
WARN("invalid parameter: lpmcd == NULL\n");
|
|
|
|
return MMSYSERR_INVALPARAM;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ((mix = MIX_Get(wDevID)) == NULL) {
|
2005-08-22 11:20:20 +02:00
|
|
|
WARN("bad device ID: %04X\n", wDevID);
|
2004-08-20 21:22:24 +02:00
|
|
|
return MMSYSERR_BADDEVICEID;
|
|
|
|
}
|
1999-05-03 11:26:48 +02:00
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
switch (fdwDetails & MIXER_GETCONTROLDETAILSF_QUERYMASK)
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
1999-05-03 11:26:48 +02:00
|
|
|
case MIXER_GETCONTROLDETAILSF_VALUE:
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("MIXER_GETCONTROLDETAILSF_VALUE (%08x)\n", lpmcd->dwControlID);
|
2001-11-06 00:53:48 +01:00
|
|
|
if (MIX_CheckControl(mix, lpmcd->dwControlID))
|
|
|
|
{
|
2007-12-14 00:18:05 +01:00
|
|
|
DWORD c = lpmcd->dwControlID - 1;
|
2001-11-06 00:53:48 +01:00
|
|
|
chnl = HIWORD(mix->ctrl[c].dwLineID);
|
2002-06-01 01:06:46 +02:00
|
|
|
if (chnl == LINEID_DST)
|
2004-08-22 04:02:27 +02:00
|
|
|
chnl = LOWORD(mix->ctrl[c].dwLineID) ? SOUND_MIXER_RECLEV :
|
|
|
|
SOUND_MIXER_VOLUME;
|
2002-06-01 01:06:46 +02:00
|
|
|
switch (mix->ctrl[c].ctrl.dwControlType)
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
1999-10-23 15:59:21 +02:00
|
|
|
case MIXERCONTROL_CONTROLTYPE_VOLUME:
|
|
|
|
{
|
|
|
|
LPMIXERCONTROLDETAILS_UNSIGNED mcdu;
|
|
|
|
int val;
|
|
|
|
|
2004-08-23 00:26:48 +02:00
|
|
|
if (lpmcd->cbDetails !=
|
2004-08-22 04:02:27 +02:00
|
|
|
sizeof(MIXERCONTROLDETAILS_UNSIGNED)) {
|
2008-12-02 15:01:48 +01:00
|
|
|
WARN("invalid parameter: cbDetails = %d\n",
|
|
|
|
lpmcd->cbDetails);
|
2004-08-22 04:02:27 +02:00
|
|
|
return MMSYSERR_INVALPARAM;
|
|
|
|
}
|
|
|
|
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("%s MIXERCONTROLDETAILS_UNSIGNED[%u]\n",
|
2004-08-22 04:02:27 +02:00
|
|
|
getControlType(mix->ctrl[c].ctrl.dwControlType),
|
|
|
|
lpmcd->cChannels);
|
|
|
|
|
2009-01-22 09:52:59 +01:00
|
|
|
mcdu = lpmcd->paDetails;
|
2004-08-22 04:02:27 +02:00
|
|
|
|
1999-10-23 15:59:21 +02:00
|
|
|
/* return value is 00RL (4 bytes)... */
|
2004-08-22 04:02:27 +02:00
|
|
|
if ((val = mix->volume[chnl]) == -1 &&
|
|
|
|
!MIX_GetVal(mix, chnl, &val)) {
|
|
|
|
WARN("invalid parameter\n");
|
1999-10-23 15:59:21 +02:00
|
|
|
return MMSYSERR_INVALPARAM;
|
2004-08-22 04:02:27 +02:00
|
|
|
}
|
2002-06-01 01:06:46 +02:00
|
|
|
|
|
|
|
switch (lpmcd->cChannels)
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
1999-10-23 15:59:21 +02:00
|
|
|
case 1:
|
|
|
|
/* mono... so R = L */
|
2004-08-30 20:35:53 +02:00
|
|
|
mcdu->dwValue = ((LOBYTE(LOWORD(val)) * 65536.0) / 100.0) + 0.5;
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("Reading RL = %d\n", mcdu->dwValue);
|
1999-10-23 15:59:21 +02:00
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
/* stereo, left is paDetails[0] */
|
2004-08-30 20:35:53 +02:00
|
|
|
mcdu->dwValue = ((LOBYTE(LOWORD(val)) * 65536.0) / 100.0) + 0.5;
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("Reading L = %d\n", mcdu->dwValue);
|
2004-08-22 04:02:27 +02:00
|
|
|
mcdu++;
|
2004-08-30 20:35:53 +02:00
|
|
|
mcdu->dwValue = ((HIBYTE(LOWORD(val)) * 65536.0) / 100.0) + 0.5;
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("Reading R = %d\n", mcdu->dwValue);
|
1999-10-23 15:59:21 +02:00
|
|
|
break;
|
|
|
|
default:
|
2006-10-06 22:59:51 +02:00
|
|
|
WARN("Unsupported cChannels (%d)\n", lpmcd->cChannels);
|
1999-10-23 15:59:21 +02:00
|
|
|
return MMSYSERR_INVALPARAM;
|
|
|
|
}
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("=> %08x\n", mcdu->dwValue);
|
1999-10-23 15:59:21 +02:00
|
|
|
}
|
1999-05-03 11:26:48 +02:00
|
|
|
break;
|
1999-10-23 15:59:21 +02:00
|
|
|
case MIXERCONTROL_CONTROLTYPE_MUTE:
|
2001-11-06 00:53:48 +01:00
|
|
|
case MIXERCONTROL_CONTROLTYPE_ONOFF:
|
1999-10-23 15:59:21 +02:00
|
|
|
{
|
|
|
|
LPMIXERCONTROLDETAILS_BOOLEAN mcdb;
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2004-08-23 00:26:48 +02:00
|
|
|
if (lpmcd->cbDetails !=
|
2004-08-22 04:02:27 +02:00
|
|
|
sizeof(MIXERCONTROLDETAILS_BOOLEAN)) {
|
2008-12-02 15:01:48 +01:00
|
|
|
WARN("invalid parameter: cbDetails = %d\n",
|
|
|
|
lpmcd->cbDetails);
|
2004-08-22 04:02:27 +02:00
|
|
|
return MMSYSERR_INVALPARAM;
|
|
|
|
}
|
|
|
|
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("%s MIXERCONTROLDETAILS_BOOLEAN[%u]\n",
|
2004-08-22 04:02:27 +02:00
|
|
|
getControlType(mix->ctrl[c].ctrl.dwControlType),
|
|
|
|
lpmcd->cChannels);
|
|
|
|
|
1999-10-23 15:59:21 +02:00
|
|
|
/* we mute both channels at the same time */
|
2009-01-22 09:52:59 +01:00
|
|
|
mcdb = lpmcd->paDetails;
|
2001-11-06 00:53:48 +01:00
|
|
|
mcdb->fValue = (mix->volume[chnl] != -1);
|
|
|
|
TRACE("=> %s\n", mcdb->fValue ? "on" : "off");
|
1999-10-23 15:59:21 +02:00
|
|
|
}
|
1999-05-03 11:26:48 +02:00
|
|
|
break;
|
2001-11-06 00:53:48 +01:00
|
|
|
case MIXERCONTROL_CONTROLTYPE_MIXER:
|
|
|
|
case MIXERCONTROL_CONTROLTYPE_MUX:
|
|
|
|
{
|
|
|
|
unsigned mask;
|
|
|
|
|
2004-08-23 00:26:48 +02:00
|
|
|
if (lpmcd->cbDetails !=
|
2004-08-22 04:02:27 +02:00
|
|
|
sizeof(MIXERCONTROLDETAILS_BOOLEAN)) {
|
2008-12-02 15:01:48 +01:00
|
|
|
WARN("invalid parameter: cbDetails = %d\n",
|
|
|
|
lpmcd->cbDetails);
|
2004-08-22 04:02:27 +02:00
|
|
|
return MMSYSERR_INVALPARAM;
|
|
|
|
}
|
|
|
|
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("%s MIXERCONTROLDETAILS_BOOLEAN[%u]\n",
|
2004-08-22 04:02:27 +02:00
|
|
|
getControlType(mix->ctrl[c].ctrl.dwControlType),
|
|
|
|
lpmcd->cChannels);
|
|
|
|
|
2001-11-06 00:53:48 +01:00
|
|
|
if (!MIX_GetRecSrc(mix, &mask))
|
|
|
|
{
|
|
|
|
/* FIXME: ENXIO => no mixer installed */
|
|
|
|
WARN("mixer device not available !\n");
|
|
|
|
ret = MMSYSERR_ERROR;
|
|
|
|
}
|
2002-06-01 01:06:46 +02:00
|
|
|
else
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
|
|
|
LPMIXERCONTROLDETAILS_BOOLEAN mcdb;
|
|
|
|
int i, j;
|
|
|
|
|
|
|
|
/* we mute both channels at the same time */
|
2009-01-22 09:52:59 +01:00
|
|
|
mcdb = lpmcd->paDetails;
|
2001-11-06 00:53:48 +01:00
|
|
|
|
|
|
|
for (i = j = 0; j < SOUND_MIXER_NRDEVICES; j++)
|
|
|
|
{
|
|
|
|
if (WINE_CHN_SUPPORTS(mix->recMask, j))
|
|
|
|
{
|
2002-06-01 01:06:46 +02:00
|
|
|
if (i >= lpmcd->u.cMultipleItems)
|
2001-11-06 00:53:48 +01:00
|
|
|
return MMSYSERR_INVALPARAM;
|
|
|
|
mcdb[i++].fValue = WINE_CHN_SUPPORTS(mask, j);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
default:
|
2004-08-22 04:02:27 +02:00
|
|
|
WARN("%s Unsupported\n",
|
|
|
|
getControlType(mix->ctrl[c].ctrl.dwControlType));
|
1999-05-03 11:26:48 +02:00
|
|
|
}
|
1999-10-23 15:59:21 +02:00
|
|
|
ret = MMSYSERR_NOERROR;
|
2001-11-06 00:53:48 +01:00
|
|
|
}
|
2002-06-01 01:06:46 +02:00
|
|
|
else
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
2004-08-22 04:02:27 +02:00
|
|
|
WARN("invalid parameter\n");
|
1999-10-23 15:59:21 +02:00
|
|
|
ret = MMSYSERR_INVALPARAM;
|
1999-05-03 11:26:48 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case MIXER_GETCONTROLDETAILSF_LISTTEXT:
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("MIXER_GETCONTROLDETAILSF_LISTTEXT (%08x)\n",
|
2004-08-22 04:02:27 +02:00
|
|
|
lpmcd->dwControlID);
|
2001-11-06 00:53:48 +01:00
|
|
|
|
|
|
|
ret = MMSYSERR_INVALPARAM;
|
|
|
|
if (MIX_CheckControl(mix, lpmcd->dwControlID))
|
|
|
|
{
|
2007-12-14 00:18:05 +01:00
|
|
|
DWORD c = lpmcd->dwControlID - 1;
|
2001-11-06 00:53:48 +01:00
|
|
|
|
|
|
|
if (mix->ctrl[c].ctrl.dwControlType == MIXERCONTROL_CONTROLTYPE_MUX ||
|
|
|
|
mix->ctrl[c].ctrl.dwControlType == MIXERCONTROL_CONTROLTYPE_MIXER)
|
|
|
|
{
|
2004-12-06 21:55:25 +01:00
|
|
|
LPMIXERCONTROLDETAILS_LISTTEXTW mcdlt;
|
2001-11-06 00:53:48 +01:00
|
|
|
int i, j;
|
|
|
|
|
2009-01-22 09:52:59 +01:00
|
|
|
mcdlt = lpmcd->paDetails;
|
2001-11-06 00:53:48 +01:00
|
|
|
for (i = j = 0; j < SOUND_MIXER_NRDEVICES; j++)
|
|
|
|
{
|
|
|
|
if (WINE_CHN_SUPPORTS(mix->recMask, j))
|
|
|
|
{
|
|
|
|
mcdlt[i].dwParam1 = MAKELONG(LINEID_RECORD, j);
|
|
|
|
mcdlt[i].dwParam2 = 0;
|
2009-02-18 21:32:50 +01:00
|
|
|
MultiByteToWideChar(CP_UNIXCP, 0, MIX_Names[j], -1,
|
2004-12-06 21:55:25 +01:00
|
|
|
mcdlt[i].szName, sizeof(mcdlt[i]) / sizeof(WCHAR));
|
2001-11-06 00:53:48 +01:00
|
|
|
i++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (i != lpmcd->u.cMultipleItems) FIXME("bad count\n");
|
|
|
|
ret = MMSYSERR_NOERROR;
|
|
|
|
}
|
|
|
|
}
|
1999-05-03 11:26:48 +02:00
|
|
|
break;
|
|
|
|
default:
|
2004-08-22 04:02:27 +02:00
|
|
|
WARN("Unknown flag (%08lx)\n",
|
|
|
|
fdwDetails & MIXER_GETCONTROLDETAILSF_QUERYMASK);
|
1999-05-03 11:26:48 +02:00
|
|
|
}
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* MIX_SetControlDetails [internal]
|
|
|
|
*/
|
2004-08-22 04:02:27 +02:00
|
|
|
static DWORD MIX_SetControlDetails(WORD wDevID, LPMIXERCONTROLDETAILS lpmcd,
|
|
|
|
DWORD fdwDetails)
|
1999-05-03 11:26:48 +02:00
|
|
|
{
|
2001-11-06 00:53:48 +01:00
|
|
|
DWORD ret = MMSYSERR_NOTSUPPORTED;
|
|
|
|
DWORD c, chnl;
|
|
|
|
int val;
|
|
|
|
struct mixer* mix;
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("(%04X, %p, %u);\n", wDevID, lpmcd, fdwDetails);
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2004-08-20 21:22:24 +02:00
|
|
|
if (lpmcd == NULL) {
|
|
|
|
TRACE("invalid parameter: lpmcd == NULL\n");
|
|
|
|
return MMSYSERR_INVALPARAM;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ((mix = MIX_Get(wDevID)) == NULL) {
|
2005-08-22 11:20:20 +02:00
|
|
|
WARN("bad device ID: %04X\n", wDevID);
|
2004-08-20 21:22:24 +02:00
|
|
|
return MMSYSERR_BADDEVICEID;
|
|
|
|
}
|
2002-06-01 01:06:46 +02:00
|
|
|
|
|
|
|
switch (fdwDetails & MIXER_GETCONTROLDETAILSF_QUERYMASK)
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
1999-05-03 11:26:48 +02:00
|
|
|
case MIXER_GETCONTROLDETAILSF_VALUE:
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("MIXER_GETCONTROLDETAILSF_VALUE (%08x)\n", lpmcd->dwControlID);
|
2001-11-06 00:53:48 +01:00
|
|
|
if (MIX_CheckControl(mix, lpmcd->dwControlID))
|
|
|
|
{
|
|
|
|
c = lpmcd->dwControlID - 1;
|
2004-08-22 04:02:27 +02:00
|
|
|
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("dwLineID=%08x\n",mix->ctrl[c].dwLineID);
|
2004-08-22 04:02:27 +02:00
|
|
|
|
2001-11-06 00:53:48 +01:00
|
|
|
chnl = HIWORD(mix->ctrl[c].dwLineID);
|
2002-06-01 01:06:46 +02:00
|
|
|
if (chnl == LINEID_DST)
|
2004-08-22 04:02:27 +02:00
|
|
|
chnl = LOWORD(mix->ctrl[c].dwLineID) ?
|
|
|
|
SOUND_MIXER_RECLEV : SOUND_MIXER_VOLUME;
|
2001-11-06 00:53:48 +01:00
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
switch (mix->ctrl[c].ctrl.dwControlType)
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
1999-10-23 15:59:21 +02:00
|
|
|
case MIXERCONTROL_CONTROLTYPE_VOLUME:
|
|
|
|
{
|
|
|
|
LPMIXERCONTROLDETAILS_UNSIGNED mcdu;
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2004-08-23 00:26:48 +02:00
|
|
|
if (lpmcd->cbDetails !=
|
2004-08-22 04:02:27 +02:00
|
|
|
sizeof(MIXERCONTROLDETAILS_UNSIGNED)) {
|
2008-12-02 15:01:48 +01:00
|
|
|
WARN("invalid parameter: cbDetails = %d\n",
|
|
|
|
lpmcd->cbDetails);
|
2004-08-22 04:02:27 +02:00
|
|
|
return MMSYSERR_INVALPARAM;
|
|
|
|
}
|
|
|
|
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("%s MIXERCONTROLDETAILS_UNSIGNED[%u]\n",
|
2004-08-22 04:02:27 +02:00
|
|
|
getControlType(mix->ctrl[c].ctrl.dwControlType),
|
|
|
|
lpmcd->cChannels);
|
|
|
|
|
2009-01-22 09:52:59 +01:00
|
|
|
mcdu = lpmcd->paDetails;
|
1999-10-23 15:59:21 +02:00
|
|
|
/* val should contain 00RL */
|
2002-06-01 01:06:46 +02:00
|
|
|
switch (lpmcd->cChannels)
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
1999-10-23 15:59:21 +02:00
|
|
|
case 1:
|
|
|
|
/* mono... so R = L */
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("Setting RL to %d\n", mcdu->dwValue);
|
1999-10-23 15:59:21 +02:00
|
|
|
val = 0x101 * ((mcdu->dwValue * 100) >> 16);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
/* stereo, left is paDetails[0] */
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("Setting L to %d\n", mcdu->dwValue);
|
2004-08-30 20:35:53 +02:00
|
|
|
val = ((mcdu->dwValue * 100.0) / 65536.0) + 0.5;
|
2004-08-22 04:02:27 +02:00
|
|
|
mcdu++;
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("Setting R to %d\n", mcdu->dwValue);
|
2004-08-30 20:35:53 +02:00
|
|
|
val += (int)(((mcdu->dwValue * 100) / 65536.0) + 0.5) << 8;
|
1999-10-23 15:59:21 +02:00
|
|
|
break;
|
|
|
|
default:
|
2006-10-06 22:59:51 +02:00
|
|
|
WARN("Unsupported cChannels (%d)\n", lpmcd->cChannels);
|
1999-10-23 15:59:21 +02:00
|
|
|
return MMSYSERR_INVALPARAM;
|
|
|
|
}
|
2002-06-01 01:06:46 +02:00
|
|
|
|
|
|
|
if (mix->volume[chnl] == -1)
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
2004-08-22 04:02:27 +02:00
|
|
|
if (!MIX_SetVal(mix, chnl, val)) {
|
|
|
|
WARN("invalid parameter\n");
|
1999-10-23 15:59:21 +02:00
|
|
|
return MMSYSERR_INVALPARAM;
|
2004-08-22 04:02:27 +02:00
|
|
|
}
|
2001-11-06 00:53:48 +01:00
|
|
|
}
|
2002-06-01 01:06:46 +02:00
|
|
|
else
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
|
|
|
mix->volume[chnl] = val;
|
1999-10-23 15:59:21 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
ret = MMSYSERR_NOERROR;
|
1999-05-03 11:26:48 +02:00
|
|
|
break;
|
1999-10-23 15:59:21 +02:00
|
|
|
case MIXERCONTROL_CONTROLTYPE_MUTE:
|
2001-11-06 00:53:48 +01:00
|
|
|
case MIXERCONTROL_CONTROLTYPE_ONOFF:
|
1999-10-23 15:59:21 +02:00
|
|
|
{
|
|
|
|
LPMIXERCONTROLDETAILS_BOOLEAN mcdb;
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2004-08-23 00:26:48 +02:00
|
|
|
if (lpmcd->cbDetails !=
|
2004-08-22 04:02:27 +02:00
|
|
|
sizeof(MIXERCONTROLDETAILS_BOOLEAN)) {
|
2008-12-02 15:01:48 +01:00
|
|
|
WARN("invalid parameter: cbDetails = %d\n",
|
|
|
|
lpmcd->cbDetails);
|
2004-08-22 04:02:27 +02:00
|
|
|
return MMSYSERR_INVALPARAM;
|
|
|
|
}
|
|
|
|
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("%s MIXERCONTROLDETAILS_BOOLEAN[%u]\n",
|
2004-08-22 04:02:27 +02:00
|
|
|
getControlType(mix->ctrl[c].ctrl.dwControlType),
|
|
|
|
lpmcd->cChannels);
|
|
|
|
|
2009-01-22 09:52:59 +01:00
|
|
|
mcdb = lpmcd->paDetails;
|
2002-06-01 01:06:46 +02:00
|
|
|
if (mcdb->fValue)
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
2004-08-22 04:02:27 +02:00
|
|
|
/* save the volume and then set it to 0 */
|
|
|
|
if (!MIX_GetVal(mix, chnl, &mix->volume[chnl]) ||
|
|
|
|
!MIX_SetVal(mix, chnl, 0)) {
|
|
|
|
WARN("invalid parameter\n");
|
1999-10-23 15:59:21 +02:00
|
|
|
return MMSYSERR_INVALPARAM;
|
2004-08-22 04:02:27 +02:00
|
|
|
}
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
|
|
|
else
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
2002-06-01 01:06:46 +02:00
|
|
|
if (mix->volume[chnl] == -1)
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
|
|
|
ret = MMSYSERR_NOERROR;
|
|
|
|
break;
|
2000-07-15 23:28:51 +02:00
|
|
|
}
|
2004-08-22 04:02:27 +02:00
|
|
|
if (!MIX_SetVal(mix, chnl, mix->volume[chnl])) {
|
|
|
|
WARN("invalid parameter\n");
|
1999-10-23 15:59:21 +02:00
|
|
|
return MMSYSERR_INVALPARAM;
|
2004-08-22 04:02:27 +02:00
|
|
|
}
|
2001-11-06 00:53:48 +01:00
|
|
|
mix->volume[chnl] = -1;
|
1999-10-23 15:59:21 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
ret = MMSYSERR_NOERROR;
|
1999-05-03 11:26:48 +02:00
|
|
|
break;
|
2001-11-06 00:53:48 +01:00
|
|
|
case MIXERCONTROL_CONTROLTYPE_MIXER:
|
|
|
|
case MIXERCONTROL_CONTROLTYPE_MUX:
|
|
|
|
{
|
|
|
|
LPMIXERCONTROLDETAILS_BOOLEAN mcdb;
|
|
|
|
unsigned mask;
|
|
|
|
int i, j;
|
|
|
|
|
2004-08-23 00:26:48 +02:00
|
|
|
if (lpmcd->cbDetails !=
|
2004-08-22 04:02:27 +02:00
|
|
|
sizeof(MIXERCONTROLDETAILS_BOOLEAN)) {
|
2008-12-02 15:01:48 +01:00
|
|
|
WARN("invalid parameter: cbDetails = %d\n",
|
|
|
|
lpmcd->cbDetails);
|
2004-08-22 04:02:27 +02:00
|
|
|
return MMSYSERR_INVALPARAM;
|
|
|
|
}
|
|
|
|
|
2006-10-06 22:59:51 +02:00
|
|
|
TRACE("%s MIXERCONTROLDETAILS_BOOLEAN[%u]\n",
|
2004-08-22 04:02:27 +02:00
|
|
|
getControlType(mix->ctrl[c].ctrl.dwControlType),
|
|
|
|
lpmcd->cChannels);
|
|
|
|
|
2001-11-06 00:53:48 +01:00
|
|
|
/* we mute both channels at the same time */
|
2009-01-22 09:52:59 +01:00
|
|
|
mcdb = lpmcd->paDetails;
|
2001-11-06 00:53:48 +01:00
|
|
|
mask = 0;
|
|
|
|
for (i = j = 0; j < SOUND_MIXER_NRDEVICES; j++)
|
|
|
|
{
|
2004-08-22 04:02:27 +02:00
|
|
|
if (WINE_CHN_SUPPORTS(mix->recMask, j) &&
|
|
|
|
mcdb[i++].fValue)
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
|
|
|
/* a mux can only select one line at a time... */
|
2002-06-01 01:06:46 +02:00
|
|
|
if (mix->singleRecChannel && mask != 0)
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
|
|
|
FIXME("!!!\n");
|
|
|
|
return MMSYSERR_INVALPARAM;
|
|
|
|
}
|
|
|
|
mask |= WINE_CHN_MASK(j);
|
|
|
|
}
|
|
|
|
}
|
2004-08-22 04:02:27 +02:00
|
|
|
if (i != lpmcd->u.cMultipleItems)
|
|
|
|
FIXME("bad count\n");
|
2001-11-06 00:53:48 +01:00
|
|
|
TRACE("writing %04x as rec src\n", mask);
|
2002-06-01 01:06:46 +02:00
|
|
|
if (!MIX_SetRecSrc(mix, mask))
|
2001-11-06 00:53:48 +01:00
|
|
|
ERR("Can't write new mixer settings\n");
|
|
|
|
else
|
|
|
|
ret = MMSYSERR_NOERROR;
|
|
|
|
}
|
|
|
|
break;
|
1999-05-03 11:26:48 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
default:
|
2004-08-22 04:02:27 +02:00
|
|
|
WARN("Unknown SetControlDetails flag (%08lx)\n",
|
|
|
|
fdwDetails & MIXER_GETCONTROLDETAILSF_QUERYMASK);
|
1999-05-03 11:26:48 +02:00
|
|
|
}
|
2001-11-06 00:53:48 +01:00
|
|
|
return ret;
|
1999-10-23 15:59:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* MIX_Init [internal]
|
|
|
|
*/
|
2010-04-21 13:45:31 +02:00
|
|
|
static LRESULT OSS_MixerInit(void)
|
1999-10-23 15:59:21 +02:00
|
|
|
{
|
2004-08-23 00:26:48 +02:00
|
|
|
int i, mixer;
|
1999-09-27 15:36:17 +02:00
|
|
|
|
2004-08-20 21:22:24 +02:00
|
|
|
TRACE("()\n");
|
|
|
|
|
2004-08-23 00:26:48 +02:00
|
|
|
MIX_NumMixers = 0;
|
|
|
|
|
|
|
|
for (i = 0; i < MAX_MIXERDRV; i++) {
|
|
|
|
char name[32];
|
|
|
|
|
|
|
|
if (i == 0)
|
|
|
|
sprintf(name, "/dev/mixer");
|
|
|
|
else
|
|
|
|
sprintf(name, "/dev/mixer%d", i);
|
|
|
|
|
|
|
|
if ((mixer = open(name, O_RDWR)) >= 0) {
|
|
|
|
#ifdef SOUND_MIXER_INFO
|
|
|
|
mixer_info info;
|
|
|
|
if (ioctl(mixer, SOUND_MIXER_INFO, &info) >= 0) {
|
2005-08-22 11:20:20 +02:00
|
|
|
MIX_Mixers[MIX_NumMixers].name = HeapAlloc(GetProcessHeap(),0,strlen(info.name) + 1);
|
|
|
|
strcpy(MIX_Mixers[MIX_NumMixers].name, info.name);
|
2004-08-23 00:26:48 +02:00
|
|
|
} else {
|
|
|
|
/* FreeBSD up to at least 5.2 provides this ioctl, but does not
|
|
|
|
* implement it properly, and there are probably similar issues
|
|
|
|
* on other platforms, so we warn but try to go ahead.
|
|
|
|
*/
|
|
|
|
WARN("%s: cannot read SOUND_MIXER_INFO!\n", name);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
close(mixer);
|
|
|
|
|
2005-08-22 11:20:20 +02:00
|
|
|
MIX_Mixers[MIX_NumMixers].dev_name = HeapAlloc(GetProcessHeap(),0,strlen(name) + 1);
|
|
|
|
strcpy(MIX_Mixers[MIX_NumMixers].dev_name, name);
|
2004-08-23 00:26:48 +02:00
|
|
|
MIX_NumMixers++;
|
2005-08-22 11:20:20 +02:00
|
|
|
MIX_Open(MIX_NumMixers - 1, NULL, 0); /* FIXME */
|
2004-08-23 00:26:48 +02:00
|
|
|
} else {
|
|
|
|
WARN("couldn't open %s\n", name);
|
|
|
|
}
|
1999-10-23 15:59:21 +02:00
|
|
|
}
|
2004-08-23 00:26:48 +02:00
|
|
|
|
|
|
|
if (MIX_NumMixers == 0) {
|
|
|
|
WARN("no driver\n");
|
|
|
|
return MMSYSERR_NODRIVER;
|
|
|
|
}
|
|
|
|
|
|
|
|
return MMSYSERR_NOERROR;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* MIX_Exit [internal]
|
|
|
|
*/
|
2010-04-21 13:45:31 +02:00
|
|
|
static LRESULT OSS_MixerExit(void)
|
2004-08-23 00:26:48 +02:00
|
|
|
{
|
|
|
|
int i;
|
|
|
|
|
|
|
|
TRACE("()\n");
|
|
|
|
|
|
|
|
for (i = 0; i < MIX_NumMixers; i++) {
|
2005-01-03 15:56:42 +01:00
|
|
|
HeapFree(GetProcessHeap(),0,MIX_Mixers[i].name);
|
|
|
|
HeapFree(GetProcessHeap(),0,MIX_Mixers[i].dev_name);
|
2004-08-23 00:26:48 +02:00
|
|
|
}
|
|
|
|
|
1999-10-23 15:59:21 +02:00
|
|
|
return MMSYSERR_NOERROR;
|
1999-09-27 15:36:17 +02:00
|
|
|
}
|
1999-10-23 15:59:21 +02:00
|
|
|
|
2001-11-06 00:53:48 +01:00
|
|
|
/**************************************************************************
|
|
|
|
* MIX_GetNumDevs [internal]
|
|
|
|
*/
|
|
|
|
static DWORD MIX_GetNumDevs(void)
|
|
|
|
{
|
2004-08-20 21:22:24 +02:00
|
|
|
TRACE("()\n");
|
|
|
|
|
2001-11-06 00:53:48 +01:00
|
|
|
return MIX_NumMixers;
|
|
|
|
}
|
|
|
|
|
Release 971101
Thu Oct 30 21:52:23 1997 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [windows/nonclient.c]
Changed NC_TrackSysMenu to give the same behaviour as MS-Windows,
i.e. system menu already appears when mouse button is depressed.
Changed NC_HandleNCLButtonDblClk so that double clicks on scroll
bar arrows are handled the same way as single clicks.
* [windows/winpos.c]
Fixed SetWindowPos32 to clear WIN_NO_REDRAW when SWP_SHOWWINDOW is
set; this is the way MS-Windows behaves.
Thu Oct 30 21:08:57 1997 Morten Welinder <terra@diku.dk>
* [controls/status.c]
In SW_SetText, fix condition, I hope.
* [controls/menu.c]
(GetMenuState32): Don't mask return value. Print more debug info.
(MENU_MenuBarCalcSize): Be more careful when printing debug
information.
(MENU_SetItemData): Empty strings are separators.
* [graphics/x11drv/text.c]
Don't prototype CLIPPING_IntersectClipRect.
* [include/dc.h]
Prototype CLIPPING_IntersectClipRect.
* [objects/font.c]
Remove non-portable (and faulty) smartness in FONT_TextMetric*to*.
In CreateFont32W and CreateFont16, handle null font name.
* [objects/text.c]
(TEXT_NextLine): Fix end-of-line bug.
* [if1632/shell32.spec]
Activate existing implementation of ExtractIconA.
* [misc/shell.c]
For Control_RunDLL, add types for parameters.
Thu Oct 30 14:54:11 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [controls/static.c] [include/windows.h] [misc/spy.c]
Added some win32 defines to static controls, basic SS_BITMAP style
handling implemented. [please add more, I am lacking knowledge and
time]
* [controls/status.c]
part_num 255 seems to indicate whole statusline (win95 cdplayer.exe)
* [if1632/thunk.c] [tools/build.c]
Support lret and 0x66 lret calls for CallTo16_regs
(needed for KERNEL32_45)
Fixed KERNEL32_45, QT_Thunk (should work now).
* [if1632/relay.c][if1632/builtin.c][tools/build.c][if1632/*32.spec]
Added string dumping to relay debugging for win32 apifuncs.
* [misc/ver.c]
Fixed and cleaned up VerQueryValue*.
* [multimedia/*.c][include/mmsystem.h][if1632/mmsystem.spec]
[if1632/winmm.spec]
Win32 support for lowlevel multimedia functions.
Added some mixer* lowlevel functions.
Some small fixes in the audio lowlevel queue handling, code
reformatting/cleanups.
* [debugger/hash.c]
Don't show difference between 16bit symbols if they are in
different segments.
* [objects/cursoricon.c]
Added GetIconInfo (partial) and CreateIconIndirect.
* [windows/mdi.c]
Fixed some "bad class" problems and crashes in MDICreateChild,
which happen in Win32 (jwp32.exe).
Wed Oct 29 00:57:27 1997 Bruce Milner <Bruce.Milner@genetics.utah.edu>
* [if1632/winaspi.spec] [misc/aspi.c] [include/aspi.c]
[documentation/aspi] [include/callback.h]
Added support for 16 bit ASPI calls to linux generic SCSI.
The support is not complete, but appears to run my Mustek
scanner from within ipplus.exe.
Mon Oct 27 00:59:41 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [windows/dce.c]
DC reuse framework.
Sun Oct 26 18:41:21 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [graphics/x11drv/xfont.c]
Substituted fonts are removed from the alias table. References to
the old name are also updated.
* [controls/combo.c]
LB_SELECTSTRING32 not CB_SELECTSTRING32 should be sent to
ComboLBox.
Sun Oct 26 14:25:00 1997 Nikita V. Youshchenko <yoush@cs.msu.su>
* [include/drive.h] [files/drive.c] [msdos/int21.c]
Partially implemented DOS drive mapping (int21 AX=440F).
Sat Oct 25 13:03:29 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [debugger/debug.l]
Support '.' in identifiers. Use "x . y" to access structure
fields.
* [debugger/hash.c] [loader/pe_image.c]
Load entry points of Win32 modules only when entering the
debugger.
* [debugger/break.c]
New function DEBUG_AddModuleBreakpoint() to set a breakpoint at
the start of every module.
* [files/file.c]
FILE_mmap() can now fake mmap() for unaligned offsets or broken
filesystems.
* [include/callback.h] [misc/callback.c] [if1632/thunk.c]
Use a table of callbacks instead of macros to differentiate
between emulator and Winelib.
* [loader/task.c]
Initialize current directory from cwd, not from module path.
* [tools/build.c]
Read CallTo16 prototypes directly from thunk.c source file.
* [windows/winproc.c] [windows/mdi.c]
Added translation for WM_MDIACTIVATE and WM_MDIGETACTIVE.
Fri Oct 24 21:41:25 1997 Uwe Bonnes <bon@elektron.ikp.tu-darmstadt.de>
* [files/drive.c]
Allow arguments like "a" for the drive related apis.
* [memory/global.c]
Keep the calculation for dwMemoryLoad in range.
* [misc/crtdll.c]
Make CRTDLL_getcwd use GetCurrentDirectory32A and alloc
its memory if requested.
Implemented CRTDLL_rename and CRTDLL_stat needed for
lcc-win32:wedit.exe.
Implemented CRTDLL__fullpath.
* [misc/comm.c]
High speed modes for the 16-bit mode Comm functions.
* [misc/cpu.c]
As applications may treat lpMaximumApplicationAddress as long,
use a valid long number.
* [misc/main.c]
In SystemParametersInfo16 ignore SPI_GETHIGHCONTRAST too.
* [misc/ole2nls.c]
Implement LCMAP_UPPERCASE for LCMapString32.
* [misc/wsprintf]
Made WPRINTF_ParseFormatA understand %ws.
* [win32/file.c]
Ignore FILE_ATTRIBUTE_NORMAL.
Stub for ReadFileEx.
Fri Oct 24 15:36:02 1997 Doug Ridgway <ridgway@routh.ucsd.edu>
* [memory/local.c]
Local heap exhaustion message now prints which builtin heap filled.
Fri Oct 24 00:46:34 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [windows/dialog.c]
Reversed CreateFont16/32W typo.
Thu Oct 23 23:44:20 1997 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [if1632/user.spec]
Fixed argument list for ChangeClipboardChain.
* [windows/mdi.c]
Pass correct hInstance to CreateWindow16() in MDICreateChild().
Mon Oct 20 11:51:24 1997 Carsten Fallesen <cf@it.dtu.dk>
* [objects/metafile.c]
Added support for META_SETTEXTCHAREXTRA.
* [objects/region.c]
Fixed crash in XPolygonRegion if there is only one point in
in the region.
* [if1632/gdi32.spec][include/gdi.h][include/windows.h]
[objects/gdiobj.c]
Completed OBJ_XXX defines in gdi.h, removed OBJ_XXX in gdiobj.c
and included gdi.h instead. Implemented GetObjectType32().
Thu Oct 16 17:21:32 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
* [documentation/wine.texinfo]
Fixed WIN32 and Makefiles entries of Reference manual node, that
made makeinfo dump core.
Mon Oct 13 17:15:57 1997 Robert Wilhelm <robert@physiol.med.tu-muenchen.de>
* [if1632/crtdll.spec]
Added missing math functions y0(), y1(), y2(), floor(), frexp(),
ldexp(), modf().
1997-11-01 20:08:16 +01:00
|
|
|
/**************************************************************************
|
2002-12-23 03:05:30 +01:00
|
|
|
* mxdMessage (WINEOSS.3)
|
Release 971101
Thu Oct 30 21:52:23 1997 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [windows/nonclient.c]
Changed NC_TrackSysMenu to give the same behaviour as MS-Windows,
i.e. system menu already appears when mouse button is depressed.
Changed NC_HandleNCLButtonDblClk so that double clicks on scroll
bar arrows are handled the same way as single clicks.
* [windows/winpos.c]
Fixed SetWindowPos32 to clear WIN_NO_REDRAW when SWP_SHOWWINDOW is
set; this is the way MS-Windows behaves.
Thu Oct 30 21:08:57 1997 Morten Welinder <terra@diku.dk>
* [controls/status.c]
In SW_SetText, fix condition, I hope.
* [controls/menu.c]
(GetMenuState32): Don't mask return value. Print more debug info.
(MENU_MenuBarCalcSize): Be more careful when printing debug
information.
(MENU_SetItemData): Empty strings are separators.
* [graphics/x11drv/text.c]
Don't prototype CLIPPING_IntersectClipRect.
* [include/dc.h]
Prototype CLIPPING_IntersectClipRect.
* [objects/font.c]
Remove non-portable (and faulty) smartness in FONT_TextMetric*to*.
In CreateFont32W and CreateFont16, handle null font name.
* [objects/text.c]
(TEXT_NextLine): Fix end-of-line bug.
* [if1632/shell32.spec]
Activate existing implementation of ExtractIconA.
* [misc/shell.c]
For Control_RunDLL, add types for parameters.
Thu Oct 30 14:54:11 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [controls/static.c] [include/windows.h] [misc/spy.c]
Added some win32 defines to static controls, basic SS_BITMAP style
handling implemented. [please add more, I am lacking knowledge and
time]
* [controls/status.c]
part_num 255 seems to indicate whole statusline (win95 cdplayer.exe)
* [if1632/thunk.c] [tools/build.c]
Support lret and 0x66 lret calls for CallTo16_regs
(needed for KERNEL32_45)
Fixed KERNEL32_45, QT_Thunk (should work now).
* [if1632/relay.c][if1632/builtin.c][tools/build.c][if1632/*32.spec]
Added string dumping to relay debugging for win32 apifuncs.
* [misc/ver.c]
Fixed and cleaned up VerQueryValue*.
* [multimedia/*.c][include/mmsystem.h][if1632/mmsystem.spec]
[if1632/winmm.spec]
Win32 support for lowlevel multimedia functions.
Added some mixer* lowlevel functions.
Some small fixes in the audio lowlevel queue handling, code
reformatting/cleanups.
* [debugger/hash.c]
Don't show difference between 16bit symbols if they are in
different segments.
* [objects/cursoricon.c]
Added GetIconInfo (partial) and CreateIconIndirect.
* [windows/mdi.c]
Fixed some "bad class" problems and crashes in MDICreateChild,
which happen in Win32 (jwp32.exe).
Wed Oct 29 00:57:27 1997 Bruce Milner <Bruce.Milner@genetics.utah.edu>
* [if1632/winaspi.spec] [misc/aspi.c] [include/aspi.c]
[documentation/aspi] [include/callback.h]
Added support for 16 bit ASPI calls to linux generic SCSI.
The support is not complete, but appears to run my Mustek
scanner from within ipplus.exe.
Mon Oct 27 00:59:41 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [windows/dce.c]
DC reuse framework.
Sun Oct 26 18:41:21 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [graphics/x11drv/xfont.c]
Substituted fonts are removed from the alias table. References to
the old name are also updated.
* [controls/combo.c]
LB_SELECTSTRING32 not CB_SELECTSTRING32 should be sent to
ComboLBox.
Sun Oct 26 14:25:00 1997 Nikita V. Youshchenko <yoush@cs.msu.su>
* [include/drive.h] [files/drive.c] [msdos/int21.c]
Partially implemented DOS drive mapping (int21 AX=440F).
Sat Oct 25 13:03:29 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [debugger/debug.l]
Support '.' in identifiers. Use "x . y" to access structure
fields.
* [debugger/hash.c] [loader/pe_image.c]
Load entry points of Win32 modules only when entering the
debugger.
* [debugger/break.c]
New function DEBUG_AddModuleBreakpoint() to set a breakpoint at
the start of every module.
* [files/file.c]
FILE_mmap() can now fake mmap() for unaligned offsets or broken
filesystems.
* [include/callback.h] [misc/callback.c] [if1632/thunk.c]
Use a table of callbacks instead of macros to differentiate
between emulator and Winelib.
* [loader/task.c]
Initialize current directory from cwd, not from module path.
* [tools/build.c]
Read CallTo16 prototypes directly from thunk.c source file.
* [windows/winproc.c] [windows/mdi.c]
Added translation for WM_MDIACTIVATE and WM_MDIGETACTIVE.
Fri Oct 24 21:41:25 1997 Uwe Bonnes <bon@elektron.ikp.tu-darmstadt.de>
* [files/drive.c]
Allow arguments like "a" for the drive related apis.
* [memory/global.c]
Keep the calculation for dwMemoryLoad in range.
* [misc/crtdll.c]
Make CRTDLL_getcwd use GetCurrentDirectory32A and alloc
its memory if requested.
Implemented CRTDLL_rename and CRTDLL_stat needed for
lcc-win32:wedit.exe.
Implemented CRTDLL__fullpath.
* [misc/comm.c]
High speed modes for the 16-bit mode Comm functions.
* [misc/cpu.c]
As applications may treat lpMaximumApplicationAddress as long,
use a valid long number.
* [misc/main.c]
In SystemParametersInfo16 ignore SPI_GETHIGHCONTRAST too.
* [misc/ole2nls.c]
Implement LCMAP_UPPERCASE for LCMapString32.
* [misc/wsprintf]
Made WPRINTF_ParseFormatA understand %ws.
* [win32/file.c]
Ignore FILE_ATTRIBUTE_NORMAL.
Stub for ReadFileEx.
Fri Oct 24 15:36:02 1997 Doug Ridgway <ridgway@routh.ucsd.edu>
* [memory/local.c]
Local heap exhaustion message now prints which builtin heap filled.
Fri Oct 24 00:46:34 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [windows/dialog.c]
Reversed CreateFont16/32W typo.
Thu Oct 23 23:44:20 1997 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [if1632/user.spec]
Fixed argument list for ChangeClipboardChain.
* [windows/mdi.c]
Pass correct hInstance to CreateWindow16() in MDICreateChild().
Mon Oct 20 11:51:24 1997 Carsten Fallesen <cf@it.dtu.dk>
* [objects/metafile.c]
Added support for META_SETTEXTCHAREXTRA.
* [objects/region.c]
Fixed crash in XPolygonRegion if there is only one point in
in the region.
* [if1632/gdi32.spec][include/gdi.h][include/windows.h]
[objects/gdiobj.c]
Completed OBJ_XXX defines in gdi.h, removed OBJ_XXX in gdiobj.c
and included gdi.h instead. Implemented GetObjectType32().
Thu Oct 16 17:21:32 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
* [documentation/wine.texinfo]
Fixed WIN32 and Makefiles entries of Reference manual node, that
made makeinfo dump core.
Mon Oct 13 17:15:57 1997 Robert Wilhelm <robert@physiol.med.tu-muenchen.de>
* [if1632/crtdll.spec]
Added missing math functions y0(), y1(), y2(), floor(), frexp(),
ldexp(), modf().
1997-11-01 20:08:16 +01:00
|
|
|
*/
|
2008-12-02 15:40:52 +01:00
|
|
|
DWORD WINAPI OSS_mxdMessage(UINT wDevID, UINT wMsg, DWORD_PTR dwUser,
|
|
|
|
DWORD_PTR dwParam1, DWORD_PTR dwParam2)
|
Release 971101
Thu Oct 30 21:52:23 1997 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [windows/nonclient.c]
Changed NC_TrackSysMenu to give the same behaviour as MS-Windows,
i.e. system menu already appears when mouse button is depressed.
Changed NC_HandleNCLButtonDblClk so that double clicks on scroll
bar arrows are handled the same way as single clicks.
* [windows/winpos.c]
Fixed SetWindowPos32 to clear WIN_NO_REDRAW when SWP_SHOWWINDOW is
set; this is the way MS-Windows behaves.
Thu Oct 30 21:08:57 1997 Morten Welinder <terra@diku.dk>
* [controls/status.c]
In SW_SetText, fix condition, I hope.
* [controls/menu.c]
(GetMenuState32): Don't mask return value. Print more debug info.
(MENU_MenuBarCalcSize): Be more careful when printing debug
information.
(MENU_SetItemData): Empty strings are separators.
* [graphics/x11drv/text.c]
Don't prototype CLIPPING_IntersectClipRect.
* [include/dc.h]
Prototype CLIPPING_IntersectClipRect.
* [objects/font.c]
Remove non-portable (and faulty) smartness in FONT_TextMetric*to*.
In CreateFont32W and CreateFont16, handle null font name.
* [objects/text.c]
(TEXT_NextLine): Fix end-of-line bug.
* [if1632/shell32.spec]
Activate existing implementation of ExtractIconA.
* [misc/shell.c]
For Control_RunDLL, add types for parameters.
Thu Oct 30 14:54:11 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [controls/static.c] [include/windows.h] [misc/spy.c]
Added some win32 defines to static controls, basic SS_BITMAP style
handling implemented. [please add more, I am lacking knowledge and
time]
* [controls/status.c]
part_num 255 seems to indicate whole statusline (win95 cdplayer.exe)
* [if1632/thunk.c] [tools/build.c]
Support lret and 0x66 lret calls for CallTo16_regs
(needed for KERNEL32_45)
Fixed KERNEL32_45, QT_Thunk (should work now).
* [if1632/relay.c][if1632/builtin.c][tools/build.c][if1632/*32.spec]
Added string dumping to relay debugging for win32 apifuncs.
* [misc/ver.c]
Fixed and cleaned up VerQueryValue*.
* [multimedia/*.c][include/mmsystem.h][if1632/mmsystem.spec]
[if1632/winmm.spec]
Win32 support for lowlevel multimedia functions.
Added some mixer* lowlevel functions.
Some small fixes in the audio lowlevel queue handling, code
reformatting/cleanups.
* [debugger/hash.c]
Don't show difference between 16bit symbols if they are in
different segments.
* [objects/cursoricon.c]
Added GetIconInfo (partial) and CreateIconIndirect.
* [windows/mdi.c]
Fixed some "bad class" problems and crashes in MDICreateChild,
which happen in Win32 (jwp32.exe).
Wed Oct 29 00:57:27 1997 Bruce Milner <Bruce.Milner@genetics.utah.edu>
* [if1632/winaspi.spec] [misc/aspi.c] [include/aspi.c]
[documentation/aspi] [include/callback.h]
Added support for 16 bit ASPI calls to linux generic SCSI.
The support is not complete, but appears to run my Mustek
scanner from within ipplus.exe.
Mon Oct 27 00:59:41 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [windows/dce.c]
DC reuse framework.
Sun Oct 26 18:41:21 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [graphics/x11drv/xfont.c]
Substituted fonts are removed from the alias table. References to
the old name are also updated.
* [controls/combo.c]
LB_SELECTSTRING32 not CB_SELECTSTRING32 should be sent to
ComboLBox.
Sun Oct 26 14:25:00 1997 Nikita V. Youshchenko <yoush@cs.msu.su>
* [include/drive.h] [files/drive.c] [msdos/int21.c]
Partially implemented DOS drive mapping (int21 AX=440F).
Sat Oct 25 13:03:29 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [debugger/debug.l]
Support '.' in identifiers. Use "x . y" to access structure
fields.
* [debugger/hash.c] [loader/pe_image.c]
Load entry points of Win32 modules only when entering the
debugger.
* [debugger/break.c]
New function DEBUG_AddModuleBreakpoint() to set a breakpoint at
the start of every module.
* [files/file.c]
FILE_mmap() can now fake mmap() for unaligned offsets or broken
filesystems.
* [include/callback.h] [misc/callback.c] [if1632/thunk.c]
Use a table of callbacks instead of macros to differentiate
between emulator and Winelib.
* [loader/task.c]
Initialize current directory from cwd, not from module path.
* [tools/build.c]
Read CallTo16 prototypes directly from thunk.c source file.
* [windows/winproc.c] [windows/mdi.c]
Added translation for WM_MDIACTIVATE and WM_MDIGETACTIVE.
Fri Oct 24 21:41:25 1997 Uwe Bonnes <bon@elektron.ikp.tu-darmstadt.de>
* [files/drive.c]
Allow arguments like "a" for the drive related apis.
* [memory/global.c]
Keep the calculation for dwMemoryLoad in range.
* [misc/crtdll.c]
Make CRTDLL_getcwd use GetCurrentDirectory32A and alloc
its memory if requested.
Implemented CRTDLL_rename and CRTDLL_stat needed for
lcc-win32:wedit.exe.
Implemented CRTDLL__fullpath.
* [misc/comm.c]
High speed modes for the 16-bit mode Comm functions.
* [misc/cpu.c]
As applications may treat lpMaximumApplicationAddress as long,
use a valid long number.
* [misc/main.c]
In SystemParametersInfo16 ignore SPI_GETHIGHCONTRAST too.
* [misc/ole2nls.c]
Implement LCMAP_UPPERCASE for LCMapString32.
* [misc/wsprintf]
Made WPRINTF_ParseFormatA understand %ws.
* [win32/file.c]
Ignore FILE_ATTRIBUTE_NORMAL.
Stub for ReadFileEx.
Fri Oct 24 15:36:02 1997 Doug Ridgway <ridgway@routh.ucsd.edu>
* [memory/local.c]
Local heap exhaustion message now prints which builtin heap filled.
Fri Oct 24 00:46:34 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [windows/dialog.c]
Reversed CreateFont16/32W typo.
Thu Oct 23 23:44:20 1997 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [if1632/user.spec]
Fixed argument list for ChangeClipboardChain.
* [windows/mdi.c]
Pass correct hInstance to CreateWindow16() in MDICreateChild().
Mon Oct 20 11:51:24 1997 Carsten Fallesen <cf@it.dtu.dk>
* [objects/metafile.c]
Added support for META_SETTEXTCHAREXTRA.
* [objects/region.c]
Fixed crash in XPolygonRegion if there is only one point in
in the region.
* [if1632/gdi32.spec][include/gdi.h][include/windows.h]
[objects/gdiobj.c]
Completed OBJ_XXX defines in gdi.h, removed OBJ_XXX in gdiobj.c
and included gdi.h instead. Implemented GetObjectType32().
Thu Oct 16 17:21:32 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
* [documentation/wine.texinfo]
Fixed WIN32 and Makefiles entries of Reference manual node, that
made makeinfo dump core.
Mon Oct 13 17:15:57 1997 Robert Wilhelm <robert@physiol.med.tu-muenchen.de>
* [if1632/crtdll.spec]
Added missing math functions y0(), y1(), y2(), floor(), frexp(),
ldexp(), modf().
1997-11-01 20:08:16 +01:00
|
|
|
{
|
2008-12-02 15:40:52 +01:00
|
|
|
TRACE("(%04X, %s, %08lX, %08lX, %08lX);\n", wDevID, getMessage(wMsg),
|
2004-08-22 04:02:27 +02:00
|
|
|
dwUser, dwParam1, dwParam2);
|
2002-06-01 01:06:46 +02:00
|
|
|
|
|
|
|
switch (wMsg)
|
2001-11-06 00:53:48 +01:00
|
|
|
{
|
1999-09-22 18:45:33 +02:00
|
|
|
case DRVM_INIT:
|
2010-04-21 13:45:31 +02:00
|
|
|
return OSS_MixerInit();
|
1999-09-22 18:45:33 +02:00
|
|
|
case DRVM_EXIT:
|
2010-04-21 13:45:31 +02:00
|
|
|
return OSS_MixerExit();
|
1999-09-22 18:45:33 +02:00
|
|
|
case DRVM_ENABLE:
|
|
|
|
case DRVM_DISABLE:
|
|
|
|
/* FIXME: Pretend this is supported */
|
|
|
|
return 0;
|
2002-06-01 01:06:46 +02:00
|
|
|
case MXDM_GETDEVCAPS:
|
2008-12-02 15:40:52 +01:00
|
|
|
return MIX_GetDevCaps(wDevID, (LPMIXERCAPSW)dwParam1, dwParam2);
|
1999-05-03 11:26:48 +02:00
|
|
|
case MXDM_GETLINEINFO:
|
2004-12-06 21:55:25 +01:00
|
|
|
return MIX_GetLineInfo(wDevID, (LPMIXERLINEW)dwParam1, dwParam2);
|
1999-05-03 11:26:48 +02:00
|
|
|
case MXDM_GETNUMDEVS:
|
2001-11-06 00:53:48 +01:00
|
|
|
return MIX_GetNumDevs();
|
1999-05-03 11:26:48 +02:00
|
|
|
case MXDM_OPEN:
|
2001-11-06 00:53:48 +01:00
|
|
|
return MMSYSERR_NOERROR;
|
|
|
|
/* MIX_Open(wDevID, (LPMIXEROPENDESC)dwParam1, dwParam2); */
|
1999-05-03 11:26:48 +02:00
|
|
|
case MXDM_CLOSE:
|
|
|
|
return MMSYSERR_NOERROR;
|
|
|
|
case MXDM_GETLINECONTROLS:
|
2004-12-06 21:55:25 +01:00
|
|
|
return MIX_GetLineControls(wDevID, (LPMIXERLINECONTROLSW)dwParam1, dwParam2);
|
1999-05-03 11:26:48 +02:00
|
|
|
case MXDM_GETCONTROLDETAILS:
|
|
|
|
return MIX_GetControlDetails(wDevID, (LPMIXERCONTROLDETAILS)dwParam1, dwParam2);
|
|
|
|
case MXDM_SETCONTROLDETAILS:
|
|
|
|
return MIX_SetControlDetails(wDevID, (LPMIXERCONTROLDETAILS)dwParam1, dwParam2);
|
|
|
|
default:
|
|
|
|
WARN("unknown message %d!\n", wMsg);
|
2001-11-06 00:53:48 +01:00
|
|
|
return MMSYSERR_NOTSUPPORTED;
|
1999-05-03 11:26:48 +02:00
|
|
|
}
|
Release 971101
Thu Oct 30 21:52:23 1997 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [windows/nonclient.c]
Changed NC_TrackSysMenu to give the same behaviour as MS-Windows,
i.e. system menu already appears when mouse button is depressed.
Changed NC_HandleNCLButtonDblClk so that double clicks on scroll
bar arrows are handled the same way as single clicks.
* [windows/winpos.c]
Fixed SetWindowPos32 to clear WIN_NO_REDRAW when SWP_SHOWWINDOW is
set; this is the way MS-Windows behaves.
Thu Oct 30 21:08:57 1997 Morten Welinder <terra@diku.dk>
* [controls/status.c]
In SW_SetText, fix condition, I hope.
* [controls/menu.c]
(GetMenuState32): Don't mask return value. Print more debug info.
(MENU_MenuBarCalcSize): Be more careful when printing debug
information.
(MENU_SetItemData): Empty strings are separators.
* [graphics/x11drv/text.c]
Don't prototype CLIPPING_IntersectClipRect.
* [include/dc.h]
Prototype CLIPPING_IntersectClipRect.
* [objects/font.c]
Remove non-portable (and faulty) smartness in FONT_TextMetric*to*.
In CreateFont32W and CreateFont16, handle null font name.
* [objects/text.c]
(TEXT_NextLine): Fix end-of-line bug.
* [if1632/shell32.spec]
Activate existing implementation of ExtractIconA.
* [misc/shell.c]
For Control_RunDLL, add types for parameters.
Thu Oct 30 14:54:11 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [controls/static.c] [include/windows.h] [misc/spy.c]
Added some win32 defines to static controls, basic SS_BITMAP style
handling implemented. [please add more, I am lacking knowledge and
time]
* [controls/status.c]
part_num 255 seems to indicate whole statusline (win95 cdplayer.exe)
* [if1632/thunk.c] [tools/build.c]
Support lret and 0x66 lret calls for CallTo16_regs
(needed for KERNEL32_45)
Fixed KERNEL32_45, QT_Thunk (should work now).
* [if1632/relay.c][if1632/builtin.c][tools/build.c][if1632/*32.spec]
Added string dumping to relay debugging for win32 apifuncs.
* [misc/ver.c]
Fixed and cleaned up VerQueryValue*.
* [multimedia/*.c][include/mmsystem.h][if1632/mmsystem.spec]
[if1632/winmm.spec]
Win32 support for lowlevel multimedia functions.
Added some mixer* lowlevel functions.
Some small fixes in the audio lowlevel queue handling, code
reformatting/cleanups.
* [debugger/hash.c]
Don't show difference between 16bit symbols if they are in
different segments.
* [objects/cursoricon.c]
Added GetIconInfo (partial) and CreateIconIndirect.
* [windows/mdi.c]
Fixed some "bad class" problems and crashes in MDICreateChild,
which happen in Win32 (jwp32.exe).
Wed Oct 29 00:57:27 1997 Bruce Milner <Bruce.Milner@genetics.utah.edu>
* [if1632/winaspi.spec] [misc/aspi.c] [include/aspi.c]
[documentation/aspi] [include/callback.h]
Added support for 16 bit ASPI calls to linux generic SCSI.
The support is not complete, but appears to run my Mustek
scanner from within ipplus.exe.
Mon Oct 27 00:59:41 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [windows/dce.c]
DC reuse framework.
Sun Oct 26 18:41:21 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [graphics/x11drv/xfont.c]
Substituted fonts are removed from the alias table. References to
the old name are also updated.
* [controls/combo.c]
LB_SELECTSTRING32 not CB_SELECTSTRING32 should be sent to
ComboLBox.
Sun Oct 26 14:25:00 1997 Nikita V. Youshchenko <yoush@cs.msu.su>
* [include/drive.h] [files/drive.c] [msdos/int21.c]
Partially implemented DOS drive mapping (int21 AX=440F).
Sat Oct 25 13:03:29 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [debugger/debug.l]
Support '.' in identifiers. Use "x . y" to access structure
fields.
* [debugger/hash.c] [loader/pe_image.c]
Load entry points of Win32 modules only when entering the
debugger.
* [debugger/break.c]
New function DEBUG_AddModuleBreakpoint() to set a breakpoint at
the start of every module.
* [files/file.c]
FILE_mmap() can now fake mmap() for unaligned offsets or broken
filesystems.
* [include/callback.h] [misc/callback.c] [if1632/thunk.c]
Use a table of callbacks instead of macros to differentiate
between emulator and Winelib.
* [loader/task.c]
Initialize current directory from cwd, not from module path.
* [tools/build.c]
Read CallTo16 prototypes directly from thunk.c source file.
* [windows/winproc.c] [windows/mdi.c]
Added translation for WM_MDIACTIVATE and WM_MDIGETACTIVE.
Fri Oct 24 21:41:25 1997 Uwe Bonnes <bon@elektron.ikp.tu-darmstadt.de>
* [files/drive.c]
Allow arguments like "a" for the drive related apis.
* [memory/global.c]
Keep the calculation for dwMemoryLoad in range.
* [misc/crtdll.c]
Make CRTDLL_getcwd use GetCurrentDirectory32A and alloc
its memory if requested.
Implemented CRTDLL_rename and CRTDLL_stat needed for
lcc-win32:wedit.exe.
Implemented CRTDLL__fullpath.
* [misc/comm.c]
High speed modes for the 16-bit mode Comm functions.
* [misc/cpu.c]
As applications may treat lpMaximumApplicationAddress as long,
use a valid long number.
* [misc/main.c]
In SystemParametersInfo16 ignore SPI_GETHIGHCONTRAST too.
* [misc/ole2nls.c]
Implement LCMAP_UPPERCASE for LCMapString32.
* [misc/wsprintf]
Made WPRINTF_ParseFormatA understand %ws.
* [win32/file.c]
Ignore FILE_ATTRIBUTE_NORMAL.
Stub for ReadFileEx.
Fri Oct 24 15:36:02 1997 Doug Ridgway <ridgway@routh.ucsd.edu>
* [memory/local.c]
Local heap exhaustion message now prints which builtin heap filled.
Fri Oct 24 00:46:34 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [windows/dialog.c]
Reversed CreateFont16/32W typo.
Thu Oct 23 23:44:20 1997 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [if1632/user.spec]
Fixed argument list for ChangeClipboardChain.
* [windows/mdi.c]
Pass correct hInstance to CreateWindow16() in MDICreateChild().
Mon Oct 20 11:51:24 1997 Carsten Fallesen <cf@it.dtu.dk>
* [objects/metafile.c]
Added support for META_SETTEXTCHAREXTRA.
* [objects/region.c]
Fixed crash in XPolygonRegion if there is only one point in
in the region.
* [if1632/gdi32.spec][include/gdi.h][include/windows.h]
[objects/gdiobj.c]
Completed OBJ_XXX defines in gdi.h, removed OBJ_XXX in gdiobj.c
and included gdi.h instead. Implemented GetObjectType32().
Thu Oct 16 17:21:32 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
* [documentation/wine.texinfo]
Fixed WIN32 and Makefiles entries of Reference manual node, that
made makeinfo dump core.
Mon Oct 13 17:15:57 1997 Robert Wilhelm <robert@physiol.med.tu-muenchen.de>
* [if1632/crtdll.spec]
Added missing math functions y0(), y1(), y2(), floor(), frexp(),
ldexp(), modf().
1997-11-01 20:08:16 +01:00
|
|
|
}
|