Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
8b97a3a3
Commit
8b97a3a3
authored
Dec 15, 2002
by
Francois Gouget
Committed by
Alexandre Julliard
Dec 15, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
In the latest sdk the {waveOut,midiOut}{Get,Set}Volume functions take
a handle as the first parameter.
parent
59227d6b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
22 deletions
+22
-22
mmsystem.c
dlls/winmm/mmsystem.c
+4
-4
wavemap.c
dlls/winmm/wavemap/wavemap.c
+2
-2
winmm.c
dlls/winmm/winmm.c
+12
-12
mmsystem.h
include/mmsystem.h
+4
-4
No files found.
dlls/winmm/mmsystem.c
View file @
8b97a3a3
...
...
@@ -808,7 +808,7 @@ UINT16 WINAPI midiOutReset16(HMIDIOUT16 hMidiOut)
*/
UINT16
WINAPI
midiOutGetVolume16
(
UINT16
uDeviceID
,
DWORD
*
lpdwVolume
)
{
return
midiOutGetVolume
(
uDeviceID
,
lpdwVolume
);
return
midiOutGetVolume
(
HMIDIOUT_32
(
uDeviceID
)
,
lpdwVolume
);
}
/**************************************************************************
...
...
@@ -816,7 +816,7 @@ UINT16 WINAPI midiOutGetVolume16(UINT16 uDeviceID, DWORD* lpdwVolume)
*/
UINT16
WINAPI
midiOutSetVolume16
(
UINT16
uDeviceID
,
DWORD
dwVolume
)
{
return
midiOutSetVolume
(
uDeviceID
,
dwVolume
);
return
midiOutSetVolume
(
HMIDIOUT_32
(
uDeviceID
)
,
dwVolume
);
}
/**************************************************************************
...
...
@@ -1413,7 +1413,7 @@ UINT16 WINAPI waveOutSetPlaybackRate16(HWAVEOUT16 hWaveOut16, DWORD dw)
*/
UINT16
WINAPI
waveOutGetVolume16
(
UINT16
devid
,
LPDWORD
lpdw
)
{
return
waveOutGetVolume
(
devid
,
lpdw
);
return
waveOutGetVolume
(
HWAVEOUT_32
(
devid
)
,
lpdw
);
}
/**************************************************************************
...
...
@@ -1421,7 +1421,7 @@ UINT16 WINAPI waveOutGetVolume16(UINT16 devid, LPDWORD lpdw)
*/
UINT16
WINAPI
waveOutSetVolume16
(
UINT16
devid
,
DWORD
dw
)
{
return
waveOutSetVolume
(
devid
,
dw
);
return
waveOutSetVolume
(
HWAVEOUT_32
(
devid
)
,
dw
);
}
/**************************************************************************
...
...
dlls/winmm/wavemap/wavemap.c
View file @
8b97a3a3
...
...
@@ -405,14 +405,14 @@ static DWORD wodGetDevCaps(UINT wDevID, WAVEMAPDATA* wom, LPWAVEOUTCAPSA lpWaveC
static
DWORD
wodGetVolume
(
UINT
wDevID
,
WAVEMAPDATA
*
wom
,
LPDWORD
lpVol
)
{
if
(
WAVEMAP_IsData
(
wom
))
return
waveOutGetVolume
(
(
UINT
)
wom
->
u
.
out
.
hInnerWave
,
lpVol
);
return
waveOutGetVolume
(
wom
->
u
.
out
.
hInnerWave
,
lpVol
);
return
MMSYSERR_NOERROR
;
}
static
DWORD
wodSetVolume
(
UINT
wDevID
,
WAVEMAPDATA
*
wom
,
DWORD
vol
)
{
if
(
WAVEMAP_IsData
(
wom
))
return
waveOutSetVolume
(
(
UINT
)
wom
->
u
.
out
.
hInnerWave
,
vol
);
return
waveOutSetVolume
(
wom
->
u
.
out
.
hInnerWave
,
vol
);
return
MMSYSERR_NOERROR
;
}
...
...
dlls/winmm/winmm.c
View file @
8b97a3a3
...
...
@@ -1182,13 +1182,13 @@ UINT WINAPI midiOutReset(HMIDIOUT hMidiOut)
/**************************************************************************
* midiOutGetVolume [WINMM.@]
*/
UINT
WINAPI
midiOutGetVolume
(
UINT
uDeviceID
,
DWORD
*
lpdwVolume
)
UINT
WINAPI
midiOutGetVolume
(
HMIDIOUT
hMidiOut
,
DWORD
*
lpdwVolume
)
{
LPWINE_MLD
wmld
;
TRACE
(
"(%
04X, %p);
\n
"
,
uDeviceID
,
lpdwVolume
);
TRACE
(
"(%
p, %p);
\n
"
,
hMidiOut
,
lpdwVolume
);
if
((
wmld
=
MMDRV_Get
(
(
HANDLE
)
uDeviceID
,
MMDRV_MIDIOUT
,
TRUE
))
==
NULL
)
if
((
wmld
=
MMDRV_Get
(
hMidiOut
,
MMDRV_MIDIOUT
,
TRUE
))
==
NULL
)
return
MMSYSERR_INVALHANDLE
;
return
MMDRV_Message
(
wmld
,
MODM_GETVOLUME
,
(
DWORD
)
lpdwVolume
,
0L
,
TRUE
);
...
...
@@ -1197,13 +1197,13 @@ UINT WINAPI midiOutGetVolume(UINT uDeviceID, DWORD* lpdwVolume)
/**************************************************************************
* midiOutSetVolume [WINMM.@]
*/
UINT
WINAPI
midiOutSetVolume
(
UINT
uDeviceID
,
DWORD
dwVolume
)
UINT
WINAPI
midiOutSetVolume
(
HMIDIOUT
hMidiOut
,
DWORD
dwVolume
)
{
LPWINE_MLD
wmld
;
TRACE
(
"(%
04X, %ld);
\n
"
,
uDeviceID
,
dwVolume
);
TRACE
(
"(%
p, %ld);
\n
"
,
hMidiOut
,
dwVolume
);
if
((
wmld
=
MMDRV_Get
(
(
HANDLE
)
uDeviceID
,
MMDRV_MIDIOUT
,
TRUE
))
==
NULL
)
if
((
wmld
=
MMDRV_Get
(
hMidiOut
,
MMDRV_MIDIOUT
,
TRUE
))
==
NULL
)
return
MMSYSERR_INVALHANDLE
;
return
MMDRV_Message
(
wmld
,
MODM_SETVOLUME
,
dwVolume
,
0L
,
TRUE
);
...
...
@@ -2519,13 +2519,13 @@ UINT WINAPI waveOutSetPlaybackRate(HWAVEOUT hWaveOut, DWORD dw)
/**************************************************************************
* waveOutGetVolume [WINMM.@]
*/
UINT
WINAPI
waveOutGetVolume
(
UINT
devid
,
LPDWORD
lpdw
)
UINT
WINAPI
waveOutGetVolume
(
HWAVEOUT
hWaveOut
,
LPDWORD
lpdw
)
{
LPWINE_MLD
wmld
;
TRACE
(
"(%
04X, %08lx);
\n
"
,
devid
,
(
DWORD
)
lpdw
);
TRACE
(
"(%
p, %08lx);
\n
"
,
hWaveOut
,
(
DWORD
)
lpdw
);
if
((
wmld
=
MMDRV_Get
(
(
HANDLE
)
devid
,
MMDRV_WAVEOUT
,
TRUE
))
==
NULL
)
if
((
wmld
=
MMDRV_Get
(
hWaveOut
,
MMDRV_WAVEOUT
,
TRUE
))
==
NULL
)
return
MMSYSERR_INVALHANDLE
;
return
MMDRV_Message
(
wmld
,
WODM_GETVOLUME
,
(
DWORD
)
lpdw
,
0L
,
TRUE
);
...
...
@@ -2534,13 +2534,13 @@ UINT WINAPI waveOutGetVolume(UINT devid, LPDWORD lpdw)
/**************************************************************************
* waveOutSetVolume [WINMM.@]
*/
UINT
WINAPI
waveOutSetVolume
(
UINT
devid
,
DWORD
dw
)
UINT
WINAPI
waveOutSetVolume
(
HWAVEOUT
hWaveOut
,
DWORD
dw
)
{
LPWINE_MLD
wmld
;
TRACE
(
"(%
04X, %08lx);
\n
"
,
devid
,
dw
);
TRACE
(
"(%
p, %08lx);
\n
"
,
hWaveOut
,
dw
);
if
((
wmld
=
MMDRV_Get
(
(
HANDLE
)
devid
,
MMDRV_WAVEOUT
,
TRUE
))
==
NULL
)
if
((
wmld
=
MMDRV_Get
(
hWaveOut
,
MMDRV_WAVEOUT
,
TRUE
))
==
NULL
)
return
MMSYSERR_INVALHANDLE
;
return
MMDRV_Message
(
wmld
,
WODM_SETVOLUME
,
dw
,
0L
,
TRUE
);
...
...
include/mmsystem.h
View file @
8b97a3a3
...
...
@@ -435,8 +435,8 @@ UINT WINAPI waveOutGetNumDevs(void);
UINT
WINAPI
waveOutGetDevCapsA
(
UINT
,
LPWAVEOUTCAPSA
,
UINT
);
UINT
WINAPI
waveOutGetDevCapsW
(
UINT
,
LPWAVEOUTCAPSW
,
UINT
);
#define waveOutGetDevCaps WINELIB_NAME_AW(waveOutGetDevCaps)
UINT
WINAPI
waveOutGetVolume
(
UIN
T
,
DWORD
*
);
UINT
WINAPI
waveOutSetVolume
(
UIN
T
,
DWORD
);
UINT
WINAPI
waveOutGetVolume
(
HWAVEOU
T
,
DWORD
*
);
UINT
WINAPI
waveOutSetVolume
(
HWAVEOU
T
,
DWORD
);
UINT
WINAPI
waveOutGetErrorTextA
(
UINT
,
LPSTR
,
UINT
);
UINT
WINAPI
waveOutGetErrorTextW
(
UINT
,
LPWSTR
,
UINT
);
#define waveOutGetErrorText WINELIB_NAME_AW(waveOutGetErrorText)
...
...
@@ -637,8 +637,8 @@ UINT WINAPI midiOutGetNumDevs(void);
UINT
WINAPI
midiOutGetDevCapsA
(
UINT
,
LPMIDIOUTCAPSA
,
UINT
);
UINT
WINAPI
midiOutGetDevCapsW
(
UINT
,
LPMIDIOUTCAPSW
,
UINT
);
#define midiOutGetDevCaps WINELIB_NAME_AW(midiOutGetDevCaps)
UINT
WINAPI
midiOutGetVolume
(
UIN
T
,
DWORD
*
);
UINT
WINAPI
midiOutSetVolume
(
UIN
T
,
DWORD
);
UINT
WINAPI
midiOutGetVolume
(
HMIDIOU
T
,
DWORD
*
);
UINT
WINAPI
midiOutSetVolume
(
HMIDIOU
T
,
DWORD
);
UINT
WINAPI
midiOutGetErrorTextA
(
UINT
,
LPSTR
,
UINT
);
UINT
WINAPI
midiOutGetErrorTextW
(
UINT
,
LPWSTR
,
UINT
);
#define midiOutGetErrorText WINELIB_NAME_AW(midiOutGetErrorText)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment