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
9c823d67
Commit
9c823d67
authored
Aug 26, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mp3: changed outputBuffer's type to mpd_sint16[]
The output buffer always contains mpd_sint16; declaring it with that type saves several casts.
parent
2a960853
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mp3_plugin.c
src/inputPlugins/mp3_plugin.c
+3
-3
No files found.
src/inputPlugins/mp3_plugin.c
View file @
9c823d67
...
...
@@ -142,7 +142,7 @@ static int mp3_plugin_init(void)
/* decoder stuff is based on madlld */
#define MP3_DATA_OUTPUT_BUFFER_SIZE
4096
#define MP3_DATA_OUTPUT_BUFFER_SIZE
2048
typedef
struct
_mp3DecodeData
{
struct
mad_stream
stream
;
...
...
@@ -150,7 +150,7 @@ typedef struct _mp3DecodeData {
struct
mad_synth
synth
;
mad_timer_t
timer
;
unsigned
char
readBuffer
[
READ_BUFFER_SIZE
];
char
outputBuffer
[
MP3_DATA_OUTPUT_BUFFER_SIZE
];
mpd_sint16
outputBuffer
[
MP3_DATA_OUTPUT_BUFFER_SIZE
];
float
totalTime
;
float
elapsedTime
;
int
muteFrame
;
...
...
@@ -933,7 +933,7 @@ static int mp3Read(mp3DecodeData * data, struct decoder *decoder,
i
+=
num_samples
;
num_samples
=
dither_buffer
(
(
mpd_sint16
*
)
data
->
outputBuffer
,
num_samples
=
dither_buffer
(
data
->
outputBuffer
,
&
data
->
synth
,
&
data
->
dither
,
i
-
num_samples
,
i
,
MAD_NCHANNELS
(
&
(
data
->
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