Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a9a689c5
Commit
a9a689c5
authored
Nov 01, 2005
by
Davin McCall
Committed by
Alexandre Julliard
Nov 01, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PhaseCancel subtracts secondary buffer from primary buffer, not the
other way around.
parent
8eaca69b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
mixer.c
dlls/dsound/mixer.c
+8
-8
No files found.
dlls/dsound/mixer.c
View file @
a9a689c5
...
...
@@ -536,8 +536,8 @@ static void DSOUND_PhaseCancel(IDirectSoundBufferImpl *dsb, DWORD writepos, DWOR
for
(
i
=
0
;
i
<
todo
;
i
++
)
{
/* 8-bit WAV is unsigned */
field
=
(
*
ibuf
++
-
128
);
field
-=
(
*
obuf
-
128
);
field
=
(
*
obuf
-
128
);
field
-=
(
*
ibuf
++
-
128
);
if
(
field
>
127
)
field
=
127
;
else
if
(
field
<
-
128
)
field
=
-
128
;
*
obuf
++
=
field
+
128
;
...
...
@@ -549,8 +549,8 @@ static void DSOUND_PhaseCancel(IDirectSoundBufferImpl *dsb, DWORD writepos, DWOR
for
(
i
=
0
;
i
<
todo
;
i
++
)
{
/* 8-bit WAV is unsigned */
field
=
(
*
ibuf
++
-
128
);
field
-=
(
*
obuf
-
128
);
field
=
(
*
obuf
-
128
);
field
-=
(
*
ibuf
++
-
128
);
if
(
field
>
127
)
field
=
127
;
else
if
(
field
<
-
128
)
field
=
-
128
;
*
obuf
++
=
field
+
128
;
...
...
@@ -569,8 +569,8 @@ static void DSOUND_PhaseCancel(IDirectSoundBufferImpl *dsb, DWORD writepos, DWOR
for
(
i
=
0
;
i
<
todo
;
i
++
)
{
/* 16-bit WAV is signed */
field
=
*
ibufs
++
;
field
-=
*
obufs
;
field
=
*
obufs
;
field
-=
*
ibufs
++
;
if
(
field
>
32767
)
field
=
32767
;
else
if
(
field
<
-
32768
)
field
=
-
32768
;
*
obufs
++
=
field
;
...
...
@@ -582,8 +582,8 @@ static void DSOUND_PhaseCancel(IDirectSoundBufferImpl *dsb, DWORD writepos, DWOR
for
(
i
=
0
;
i
<
todo
;
i
++
)
{
/* 16-bit WAV is signed */
field
=
*
ibufs
++
;
field
-=
*
obufs
;
field
=
*
obufs
;
field
-=
*
ibufs
++
;
if
(
field
>
32767
)
field
=
32767
;
else
if
(
field
<
-
32768
)
field
=
-
32768
;
*
obufs
++
=
field
;
...
...
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