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
0bb13dd3
Commit
0bb13dd3
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: Report when the render callback is just providing silence.
parent
82fff94c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
audio.c
dlls/winmm/winecoreaudio/audio.c
+7
-0
No files found.
dlls/winmm/winecoreaudio/audio.c
View file @
0bb13dd3
...
...
@@ -63,6 +63,11 @@ WINE_DEFAULT_DEBUG_CHANNEL(wave);
typedef
void
*
AudioUnit
;
/* From AudioUnit/AUComponents.h */
enum
{
kAudioUnitRenderAction_OutputIsSilence
=
(
1
<<
4
),
/* provides hint on return from Render(): if set the buffer contains all zeroes */
};
typedef
UInt32
AudioUnitRenderActionFlags
;
/* only allow 10 output devices through this driver, this ought to be adequate */
...
...
@@ -1441,6 +1446,8 @@ OSStatus CoreAudio_woAudioUnitIOProc(void *inRefCon,
}
else
{
if
(
!
dataProvided
)
*
ioActionFlags
|=
kAudioUnitRenderAction_OutputIsSilence
;
memset
((
char
*
)
ioData
->
mBuffers
[
0
].
mData
+
dataProvided
,
0
,
dataNeeded
);
dataProvided
+=
dataNeeded
;
dataNeeded
=
0
;
...
...
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