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
55ed98cb
Commit
55ed98cb
authored
Mar 10, 2015
by
Mark Harmstone
Committed by
Alexandre Julliard
Mar 11, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Pipe audio data through DMOs.
parent
18b3f4ca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
buffer.c
dlls/dsound/buffer.c
+5
-0
mixer.c
dlls/dsound/mixer.c
+14
-0
No files found.
dlls/dsound/buffer.c
View file @
55ed98cb
...
...
@@ -293,6 +293,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_Play(IDirectSoundBuffer8 *iface, DW
{
IDirectSoundBufferImpl
*
This
=
impl_from_IDirectSoundBuffer8
(
iface
);
HRESULT
hres
=
DS_OK
;
int
i
;
TRACE
(
"(%p,%08x,%08x,%08x)
\n
"
,
This
,
reserved1
,
reserved2
,
flags
);
...
...
@@ -306,6 +307,10 @@ static HRESULT WINAPI IDirectSoundBufferImpl_Play(IDirectSoundBuffer8 *iface, DW
}
else
if
(
This
->
state
==
STATE_STOPPING
)
This
->
state
=
STATE_PLAYING
;
for
(
i
=
0
;
i
<
This
->
num_filters
;
i
++
)
{
IMediaObject_Discontinuity
(
This
->
filters
[
i
].
obj
,
0
);
}
RtlReleaseResource
(
&
This
->
lock
);
/* **** */
...
...
dlls/dsound/mixer.c
View file @
55ed98cb
...
...
@@ -398,6 +398,8 @@ static inline DWORD DSOUND_BufPtrDiff(DWORD buflen, DWORD ptr1, DWORD ptr2)
static
void
DSOUND_MixToTemporary
(
IDirectSoundBufferImpl
*
dsb
,
DWORD
frames
)
{
UINT
size_bytes
=
frames
*
sizeof
(
float
)
*
dsb
->
device
->
pwfx
->
nChannels
;
HRESULT
hr
;
int
i
;
if
(
dsb
->
device
->
tmp_buffer_len
<
size_bytes
||
!
dsb
->
device
->
tmp_buffer
)
{
...
...
@@ -409,6 +411,18 @@ static void DSOUND_MixToTemporary(IDirectSoundBufferImpl *dsb, DWORD frames)
}
cp_fields
(
dsb
,
frames
,
&
dsb
->
freqAccNum
);
if
(
size_bytes
>
0
)
{
for
(
i
=
0
;
i
<
dsb
->
num_filters
;
i
++
)
{
if
(
dsb
->
filters
[
i
].
inplace
)
{
hr
=
IMediaObjectInPlace_Process
(
dsb
->
filters
[
i
].
inplace
,
size_bytes
,
(
BYTE
*
)
dsb
->
device
->
tmp_buffer
,
0
,
DMO_INPLACE_NORMAL
);
if
(
FAILED
(
hr
))
WARN
(
"IMediaObjectInPlace_Process failed for filter %u
\n
"
,
i
);
}
else
WARN
(
"filter %u has no inplace object - unsupported
\n
"
,
i
);
}
}
}
static
void
DSOUND_MixerVol
(
const
IDirectSoundBufferImpl
*
dsb
,
INT
frames
)
...
...
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