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
e652b6f6
Commit
e652b6f6
authored
Oct 31, 2009
by
Jörg Höhle
Committed by
Alexandre Julliard
Nov 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciwave: Update message and comments.
parent
8a1f0eed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
mciwave.c
dlls/mciwave/mciwave.c
+8
-10
No files found.
dlls/mciwave/mciwave.c
View file @
e652b6f6
/*
/*
*
Sample
Wine Driver for MCI wave forms
* Wine Driver for MCI wave forms
*
*
* Copyright 1994 Martin Ayotte
* Copyright 1994 Martin Ayotte
* 1999,2000,2005 Eric Pouech
* 1999,2000,2005 Eric Pouech
...
@@ -295,7 +295,7 @@ static DWORD WAVE_mciReadFmt(WINE_MCIWAVE* wmw, const MMCKINFO* pckMainRIFF)
...
@@ -295,7 +295,7 @@ static DWORD WAVE_mciReadFmt(WINE_MCIWAVE* wmw, const MMCKINFO* pckMainRIFF)
}
}
/**************************************************************************
/**************************************************************************
* WAVE_mciDefaultFmt
[internal]
* WAVE_mciDefaultFmt
[internal]
*/
*/
static
DWORD
WAVE_mciDefaultFmt
(
WINE_MCIWAVE
*
wmw
)
static
DWORD
WAVE_mciDefaultFmt
(
WINE_MCIWAVE
*
wmw
)
{
{
...
@@ -697,9 +697,7 @@ static void CALLBACK WAVE_mciPlayCallback(HWAVEOUT hwo, UINT uMsg,
...
@@ -697,9 +697,7 @@ static void CALLBACK WAVE_mciPlayCallback(HWAVEOUT hwo, UINT uMsg,
}
}
/******************************************************************
/******************************************************************
* WAVE_mciPlayWaitDone
* WAVE_mciPlayWaitDone [internal]
*
*
*/
*/
static
void
WAVE_mciPlayWaitDone
(
WINE_MCIWAVE
*
wmw
)
static
void
WAVE_mciPlayWaitDone
(
WINE_MCIWAVE
*
wmw
)
{
{
...
@@ -904,7 +902,7 @@ cleanUp:
...
@@ -904,7 +902,7 @@ cleanUp:
}
}
/**************************************************************************
/**************************************************************************
* WAVE_mci
Play
Callback [internal]
* WAVE_mci
Record
Callback [internal]
*/
*/
static
void
CALLBACK
WAVE_mciRecordCallback
(
HWAVEOUT
hwo
,
UINT
uMsg
,
static
void
CALLBACK
WAVE_mciRecordCallback
(
HWAVEOUT
hwo
,
UINT
uMsg
,
DWORD_PTR
dwInstance
,
DWORD_PTR
dwInstance
,
...
@@ -947,8 +945,7 @@ static void CALLBACK WAVE_mciRecordCallback(HWAVEOUT hwo, UINT uMsg,
...
@@ -947,8 +945,7 @@ static void CALLBACK WAVE_mciRecordCallback(HWAVEOUT hwo, UINT uMsg,
}
}
/******************************************************************
/******************************************************************
* bWAVE_mciRecordWaitDone
* WAVE_mciRecordWaitDone [internal]
*
*/
*/
static
void
WAVE_mciRecordWaitDone
(
WINE_MCIWAVE
*
wmw
)
static
void
WAVE_mciRecordWaitDone
(
WINE_MCIWAVE
*
wmw
)
{
{
...
@@ -991,7 +988,7 @@ static DWORD WAVE_mciRecord(MCIDEVICEID wDevID, DWORD_PTR dwFlags, DWORD_PTR pmt
...
@@ -991,7 +988,7 @@ static DWORD WAVE_mciRecord(MCIDEVICEID wDevID, DWORD_PTR dwFlags, DWORD_PTR pmt
wmw
->
fInput
=
TRUE
;
wmw
->
fInput
=
TRUE
;
/** This function will be called again by a thread when async is used.
/** This function will be called again by a thread when async is used.
* We have to set MCI_MODE_
PLAY
before we do this so that the app can spin
* We have to set MCI_MODE_
RECORD
before we do this so that the app can spin
* on MCI_STATUS, so we have to allow it here if we're not going to start this thread.
* on MCI_STATUS, so we have to allow it here if we're not going to start this thread.
*/
*/
if
((
wmw
->
dwStatus
!=
MCI_MODE_STOP
)
&&
((
wmw
->
dwStatus
!=
MCI_MODE_RECORD
)
&&
(
dwFlags
&
MCI_WAIT
)))
{
if
((
wmw
->
dwStatus
!=
MCI_MODE_STOP
)
&&
((
wmw
->
dwStatus
!=
MCI_MODE_RECORD
)
&&
(
dwFlags
&
MCI_WAIT
)))
{
...
@@ -1331,6 +1328,7 @@ static DWORD WAVE_mciSet(MCIDEVICEID wDevID, DWORD dwFlags, LPMCI_SET_PARMS lpPa
...
@@ -1331,6 +1328,7 @@ static DWORD WAVE_mciSet(MCIDEVICEID wDevID, DWORD dwFlags, LPMCI_SET_PARMS lpPa
TRACE
(
"MCI_WAVE_SET_CHANNELS = %d
\n
"
,
wmw
->
wfxRef
.
nChannels
);
TRACE
(
"MCI_WAVE_SET_CHANNELS = %d
\n
"
,
wmw
->
wfxRef
.
nChannels
);
}
}
if
(
dwFlags
&
MCI_WAVE_SET_FORMATTAG
)
{
if
(
dwFlags
&
MCI_WAVE_SET_FORMATTAG
)
{
/* Dangerous because the correct cbSize cannot be set */
wmw
->
wfxRef
.
wFormatTag
=
((
LPMCI_WAVE_SET_PARMS
)
lpParms
)
->
wFormatTag
;
wmw
->
wfxRef
.
wFormatTag
=
((
LPMCI_WAVE_SET_PARMS
)
lpParms
)
->
wFormatTag
;
TRACE
(
"MCI_WAVE_SET_FORMATTAG = %d
\n
"
,
wmw
->
wfxRef
.
wFormatTag
);
TRACE
(
"MCI_WAVE_SET_FORMATTAG = %d
\n
"
,
wmw
->
wfxRef
.
wFormatTag
);
}
}
...
@@ -1674,7 +1672,7 @@ LRESULT CALLBACK MCIWAVE_DriverProc(DWORD_PTR dwDevID, HDRVR hDriv, UINT wMsg,
...
@@ -1674,7 +1672,7 @@ LRESULT CALLBACK MCIWAVE_DriverProc(DWORD_PTR dwDevID, HDRVR hDriv, UINT wMsg,
case
DRV_ENABLE
:
return
1
;
case
DRV_ENABLE
:
return
1
;
case
DRV_DISABLE
:
return
1
;
case
DRV_DISABLE
:
return
1
;
case
DRV_QUERYCONFIGURE
:
return
1
;
case
DRV_QUERYCONFIGURE
:
return
1
;
case
DRV_CONFIGURE
:
MessageBoxA
(
0
,
"
Sample MultiMedia Driver !"
,
"OSS
Driver"
,
MB_OK
);
return
1
;
case
DRV_CONFIGURE
:
MessageBoxA
(
0
,
"
MCI waveaudio Driver !"
,
"Wine
Driver"
,
MB_OK
);
return
1
;
case
DRV_INSTALL
:
return
DRVCNF_RESTART
;
case
DRV_INSTALL
:
return
DRVCNF_RESTART
;
case
DRV_REMOVE
:
return
DRVCNF_RESTART
;
case
DRV_REMOVE
:
return
DRVCNF_RESTART
;
}
}
...
...
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