Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
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
Иван Мажукин
mpd
Commits
51abed97
Commit
51abed97
authored
Aug 03, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/mad: pass mad_pcm to mad_fixed_to_24_buffer()
parent
d00afc91
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
MadDecoderPlugin.cxx
src/decoder/plugins/MadDecoderPlugin.cxx
+3
-3
No files found.
src/decoder/plugins/MadDecoderPlugin.cxx
View file @
51abed97
...
...
@@ -89,13 +89,13 @@ mad_fixed_to_24_sample(mad_fixed_t sample) noexcept
}
static
void
mad_fixed_to_24_buffer
(
int32_t
*
dest
,
const
struct
mad_
synth
*
synth
,
mad_fixed_to_24_buffer
(
int32_t
*
dest
,
const
struct
mad_
pcm
&
src
,
unsigned
int
start
,
unsigned
int
end
,
unsigned
int
num_channels
)
{
for
(
unsigned
i
=
start
;
i
<
end
;
++
i
)
for
(
unsigned
c
=
0
;
c
<
num_channels
;
++
c
)
*
dest
++
=
mad_fixed_to_24_sample
(
s
ynth
->
pcm
.
samples
[
c
][
i
]);
*
dest
++
=
mad_fixed_to_24_sample
(
s
rc
.
samples
[
c
][
i
]);
}
static
bool
...
...
@@ -848,7 +848,7 @@ MadDecoder::SubmitPCM(unsigned i, unsigned pcm_length) noexcept
{
unsigned
int
num_samples
=
pcm_length
-
i
;
mad_fixed_to_24_buffer
(
output_buffer
,
&
synth
,
mad_fixed_to_24_buffer
(
output_buffer
,
synth
.
pcm
,
i
,
i
+
num_samples
,
MAD_NCHANNELS
(
&
frame
.
header
));
num_samples
*=
MAD_NCHANNELS
(
&
frame
.
header
);
...
...
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