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
22d333d8
Commit
22d333d8
authored
Sep 22, 1999
by
Eric Pouech
Committed by
Alexandre Julliard
Sep 22, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make it (almost) 32 bit only.
Reflected creation of WINEOSS module.
parent
ed18ce6b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
9 deletions
+21
-9
audio.c
multimedia/audio.c
+0
-0
mixer.c
multimedia/mixer.c
+8
-2
mmaux.c
multimedia/mmaux.c
+13
-7
No files found.
multimedia/audio.c
View file @
22d333d8
This diff is collapsed.
Click to expand it.
multimedia/mixer.c
View file @
22d333d8
...
@@ -505,9 +505,9 @@ static DWORD MIX_SetControlDetails(WORD wDevID, LPMIXERCONTROLDETAILS lpmcd, DWO
...
@@ -505,9 +505,9 @@ static DWORD MIX_SetControlDetails(WORD wDevID, LPMIXERCONTROLDETAILS lpmcd, DWO
#endif
/* HAVE_OSS */
#endif
/* HAVE_OSS */
/**************************************************************************
/**************************************************************************
*
mixMessage
[sample driver]
*
OSS_mixMessage
[sample driver]
*/
*/
DWORD
WINAPI
mixMessage
(
WORD
wDevID
,
WORD
wMsg
,
DWORD
dwUser
,
DWORD
WINAPI
OSS_mixMessage
(
UINT
wDevID
,
UINT
wMsg
,
DWORD
dwUser
,
DWORD
dwParam1
,
DWORD
dwParam2
)
DWORD
dwParam1
,
DWORD
dwParam2
)
{
{
TRACE
(
"(%04X, %04X, %08lX, %08lX, %08lX);
\n
"
,
TRACE
(
"(%04X, %04X, %08lX, %08lX, %08lX);
\n
"
,
...
@@ -515,6 +515,12 @@ DWORD WINAPI mixMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
...
@@ -515,6 +515,12 @@ DWORD WINAPI mixMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
#ifdef HAVE_OSS
#ifdef HAVE_OSS
switch
(
wMsg
)
{
switch
(
wMsg
)
{
case
DRVM_INIT
:
case
DRVM_EXIT
:
case
DRVM_ENABLE
:
case
DRVM_DISABLE
:
/* FIXME: Pretend this is supported */
return
0
;
case
MXDM_GETDEVCAPS
:
case
MXDM_GETDEVCAPS
:
return
MIX_GetDevCaps
(
wDevID
,
(
LPMIXERCAPSA
)
dwParam1
,
dwParam2
);
return
MIX_GetDevCaps
(
wDevID
,
(
LPMIXERCAPSA
)
dwParam1
,
dwParam2
);
case
MXDM_GETLINEINFO
:
case
MXDM_GETLINEINFO
:
...
...
multimedia/mmaux.c
View file @
22d333d8
/* -*- tab-width: 8; c-basic-offset: 4 -*- */
/*
/*
* Sample AUXILARY Wine Driver
* Sample AUXILARY Wine Driver
*
*
...
@@ -15,7 +16,6 @@
...
@@ -15,7 +16,6 @@
#include "driver.h"
#include "driver.h"
#include "mmddk.h"
#include "mmddk.h"
#include "oss.h"
#include "oss.h"
#include "debugtools.h"
#include "debugtools.h"
DEFAULT_DEBUG_CHANNEL
(
mmaux
)
DEFAULT_DEBUG_CHANNEL
(
mmaux
)
...
@@ -30,7 +30,7 @@ static int NumDev = 6;
...
@@ -30,7 +30,7 @@ static int NumDev = 6;
/**************************************************************************
/**************************************************************************
* AUX_GetDevCaps [internal]
* AUX_GetDevCaps [internal]
*/
*/
static
DWORD
AUX_GetDevCaps
(
WORD
wDevID
,
LPAUXCAPS
16
lpCaps
,
DWORD
dwSize
)
static
DWORD
AUX_GetDevCaps
(
WORD
wDevID
,
LPAUXCAPS
A
lpCaps
,
DWORD
dwSize
)
{
{
#ifdef HAVE_OSS
#ifdef HAVE_OSS
int
mixer
,
volume
;
int
mixer
,
volume
;
...
@@ -219,23 +219,29 @@ static DWORD AUX_SetVolume(WORD wDevID, DWORD dwParam)
...
@@ -219,23 +219,29 @@ static DWORD AUX_SetVolume(WORD wDevID, DWORD dwParam)
/**************************************************************************
/**************************************************************************
*
auxMessage
[sample driver]
*
OSS_auxMessage
[sample driver]
*/
*/
DWORD
WINAPI
auxMessage
(
WORD
wDevID
,
WORD
wMsg
,
DWORD
dwUser
,
DWORD
WINAPI
OSS_auxMessage
(
UINT
wDevID
,
UINT
wMsg
,
DWORD
dwUser
,
DWORD
dwParam1
,
DWORD
dwParam2
)
DWORD
dwParam1
,
DWORD
dwParam2
)
{
{
TRACE
(
"(%04X, %04X, %08lX, %08lX, %08lX);
\n
"
,
TRACE
(
"(%04X, %04X, %08lX, %08lX, %08lX);
\n
"
,
wDevID
,
wMsg
,
dwUser
,
dwParam1
,
dwParam2
);
wDevID
,
wMsg
,
dwUser
,
dwParam1
,
dwParam2
);
switch
(
wMsg
)
{
switch
(
wMsg
)
{
case
DRVM_INIT
:
case
DRVM_EXIT
:
case
DRVM_ENABLE
:
case
DRVM_DISABLE
:
/* FIXME: Pretend this is supported */
return
0
;
case
AUXDM_GETDEVCAPS
:
case
AUXDM_GETDEVCAPS
:
return
AUX_GetDevCaps
(
wDevID
,(
LPAUXCAPS16
)
dwParam1
,
dwParam2
);
return
AUX_GetDevCaps
(
wDevID
,
(
LPAUXCAPSA
)
dwParam1
,
dwParam2
);
case
AUXDM_GETNUMDEVS
:
case
AUXDM_GETNUMDEVS
:
TRACE
(
"return %d;
\n
"
,
NumDev
);
TRACE
(
"return %d;
\n
"
,
NumDev
);
return
NumDev
;
return
NumDev
;
case
AUXDM_GETVOLUME
:
case
AUXDM_GETVOLUME
:
return
AUX_GetVolume
(
wDevID
,
(
LPDWORD
)
dwParam1
);
return
AUX_GetVolume
(
wDevID
,
(
LPDWORD
)
dwParam1
);
case
AUXDM_SETVOLUME
:
case
AUXDM_SETVOLUME
:
return
AUX_SetVolume
(
wDevID
,
dwParam1
);
return
AUX_SetVolume
(
wDevID
,
dwParam1
);
default:
default:
WARN
(
"unknown message !
\n
"
);
WARN
(
"unknown message !
\n
"
);
}
}
...
...
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