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
1a6d3c15
Commit
1a6d3c15
authored
Dec 02, 2016
by
Andrew Eikum
Committed by
Alexandre Julliard
Dec 02, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imaadpcm32: Fix source offsets when converting stereo PCM to IMAADPCM.
Signed-off-by:
Andrew Eikum
<
aeikum@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e59ad5d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
imaadp32.c
dlls/imaadp32.acm/imaadp32.c
+6
-8
No files found.
dlls/imaadp32.acm/imaadp32.c
View file @
1a6d3c15
...
...
@@ -431,29 +431,27 @@ static void cvtSS16imaK(PACMDRVSTREAMINSTANCE adsi,
/* generate header */
sampleL
=
R16
(
src
);
src
+=
2
;
W16
(
dst
,
sampleL
);
dst
+=
2
;
*
dst
=
(
unsigned
char
)(
unsigned
)
stepIndexL
;
dst
+=
2
;
W16
(
dst
,
stepIndexL
);
dst
+=
2
;
sampleR
=
R16
(
src
);
src
+=
2
;
W16
(
dst
,
sampleR
);
dst
+=
2
;
*
dst
=
(
unsigned
char
)(
unsigned
)
stepIndexR
;
dst
+=
2
;
W16
(
dst
,
stepIndexR
);
dst
+=
2
;
for
(
nsamp
=
nsamp_blk
;
nsamp
>
0
;
nsamp
-=
8
)
{
for
(
i
=
0
;
i
<
4
;
i
++
)
{
code1
=
generate_nibble
(
R16
(
src
+
(
2
*
i
+
0
)
*
2
+
0
),
code1
=
generate_nibble
(
R16
(
src
+
(
4
*
i
+
0
)
*
2
),
&
stepIndexL
,
&
sampleL
);
code2
=
generate_nibble
(
R16
(
src
+
(
2
*
i
+
1
)
*
2
+
0
),
code2
=
generate_nibble
(
R16
(
src
+
(
4
*
i
+
2
)
*
2
),
&
stepIndexL
,
&
sampleL
);
*
dst
++
=
(
code1
<<
4
)
|
code2
;
}
for
(
i
=
0
;
i
<
4
;
i
++
)
{
code1
=
generate_nibble
(
R16
(
src
+
(
2
*
i
+
0
)
*
2
+
1
),
code1
=
generate_nibble
(
R16
(
src
+
(
4
*
i
+
1
)
*
2
),
&
stepIndexR
,
&
sampleR
);
code2
=
generate_nibble
(
R16
(
src
+
(
2
*
i
+
1
)
*
2
+
1
),
code2
=
generate_nibble
(
R16
(
src
+
(
4
*
i
+
3
)
*
2
),
&
stepIndexR
,
&
sampleR
);
*
dst
++
=
(
code1
<<
4
)
|
code2
;
}
...
...
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