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
23bb112b
Commit
23bb112b
authored
Dec 21, 2006
by
Ken Thomases
Committed by
Alexandre Julliard
Dec 21, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecoreaudio: Control the fprintf's by the Wine debug channel on/off settings.
parent
8485eb02
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
audio.c
dlls/winmm/winecoreaudio/audio.c
+13
-2
No files found.
dlls/winmm/winecoreaudio/audio.c
View file @
23bb112b
...
...
@@ -148,6 +148,10 @@ typedef struct {
DWORD
tickCountMS
;
/* time in MS of last AudioUnit callback */
pthread_mutex_t
lock
;
/* synchronization stuff */
BOOL
trace_on
;
BOOL
warn_on
;
BOOL
err_on
;
}
WINE_WAVEOUT
;
typedef
struct
{
...
...
@@ -722,6 +726,10 @@ static DWORD wodOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
wwo
->
dwPlayedTotal
=
0
;
wwo
->
dwWrittenTotal
=
0
;
wwo
->
trace_on
=
TRACE_ON
(
wave
);
wwo
->
warn_on
=
WARN_ON
(
wave
);
wwo
->
err_on
=
ERR_ON
(
wave
);
pthread_mutex_unlock
(
&
wwo
->
lock
);
retval
=
wodNotifyClient
(
wwo
,
WOM_OPEN
,
0L
,
0L
);
...
...
@@ -846,7 +854,7 @@ static void wodHelper_BeginWaveHdr(WINE_WAVEOUT* wwo, LPWAVEHDR lpWaveHdr)
{
wwo
->
state
=
WINE_WS_STOPPED
;
status
=
AudioOutputUnitStop
(
wwo
->
audioUnit
);
if
(
status
)
if
(
status
&&
wwo
->
err_on
)
fprintf
(
stderr
,
"err:winecoreaudio:wodHelper_BeginWaveHdr AudioOutputUnitStop return %c%c%c%c
\n
"
,
(
char
)
(
status
>>
24
),
(
char
)
(
status
>>
16
),
(
char
)
(
status
>>
8
),
(
char
)
status
);
}
...
...
@@ -857,6 +865,7 @@ static void wodHelper_BeginWaveHdr(WINE_WAVEOUT* wwo, LPWAVEHDR lpWaveHdr)
{
status
=
AudioOutputUnitStart
(
wwo
->
audioUnit
);
if
(
status
)
{
if
(
wwo
->
err_on
)
fprintf
(
stderr
,
"err:winecoreaudio:AudioOutputUnitStart return %c%c%c%c
\n
"
,
(
char
)
(
status
>>
24
),
(
char
)
(
status
>>
16
),
(
char
)
(
status
>>
8
),
(
char
)
status
);
}
...
...
@@ -867,9 +876,11 @@ static void wodHelper_BeginWaveHdr(WINE_WAVEOUT* wwo, LPWAVEHDR lpWaveHdr)
{
if
(
wwo
->
lpLoopPtr
)
{
fprintf
(
stderr
,
"trace:winecoreaudio:wodHelper_BeginWaveHdr Already in a loop. Discarding loop on this header (%p)
\n
"
,
lpWaveHdr
);
if
(
wwo
->
warn_on
)
fprintf
(
stderr
,
"warn:winecoreaudio:wodHelper_BeginWaveHdr Already in a loop. Discarding loop on this header (%p)
\n
"
,
lpWaveHdr
);
}
else
{
if
(
wwo
->
trace_on
)
fprintf
(
stderr
,
"trace:winecoreaudio:wodHelper_BeginWaveHdr Starting loop (%dx) with %p
\n
"
,
lpWaveHdr
->
dwLoops
,
lpWaveHdr
);
wwo
->
lpLoopPtr
=
lpWaveHdr
;
...
...
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