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
95fff55d
Commit
95fff55d
authored
Aug 26, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mp3: converted the DECODE_ constants to an enum
parent
1c196478
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
mp3_plugin.c
src/inputPlugins/mp3_plugin.c
+13
-8
No files found.
src/inputPlugins/mp3_plugin.c
View file @
95fff55d
...
...
@@ -34,10 +34,12 @@
#define READ_BUFFER_SIZE 40960
#define DECODE_SKIP -3
#define DECODE_BREAK -2
#define DECODE_CONT -1
#define DECODE_OK 0
enum
mp3_action
{
DECODE_SKIP
=
-
3
,
DECODE_BREAK
=
-
2
,
DECODE_CONT
=
-
1
,
DECODE_OK
=
0
};
#define MUTEFRAME_SKIP 1
#define MUTEFRAME_SEEK 2
...
...
@@ -364,8 +366,9 @@ fail:
}
#endif
static
int
decodeNextFrameHeader
(
mp3DecodeData
*
data
,
MpdTag
**
tag
,
ReplayGainInfo
**
replayGainInfo
)
static
enum
mp3_action
decodeNextFrameHeader
(
mp3DecodeData
*
data
,
MpdTag
**
tag
,
ReplayGainInfo
**
replayGainInfo
)
{
enum
mad_layer
layer
;
...
...
@@ -427,7 +430,8 @@ static int decodeNextFrameHeader(mp3DecodeData * data, MpdTag ** tag,
return
DECODE_OK
;
}
static
int
decodeNextFrame
(
mp3DecodeData
*
data
)
static
enum
mp3_action
decodeNextFrame
(
mp3DecodeData
*
data
)
{
if
((
data
->
stream
).
buffer
==
NULL
||
(
data
->
stream
).
error
==
MAD_ERROR_BUFLEN
)
{
...
...
@@ -821,7 +825,8 @@ static int openMp3FromInputStream(InputStream * inStream, mp3DecodeData * data,
return
0
;
}
static
int
mp3Read
(
mp3DecodeData
*
data
,
ReplayGainInfo
**
replayGainInfo
)
static
enum
mp3_action
mp3Read
(
mp3DecodeData
*
data
,
ReplayGainInfo
**
replayGainInfo
)
{
struct
decoder
*
decoder
=
data
->
decoder
;
unsigned
int
pcm_length
,
max_samples
;
...
...
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