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
00830a20
Commit
00830a20
authored
Aug 03, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/mad: convert to class, make almost everything private
parent
d39d2874
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
MadDecoderPlugin.cxx
src/decoder/plugins/MadDecoderPlugin.cxx
+3
-1
No files found.
src/decoder/plugins/MadDecoderPlugin.cxx
View file @
00830a20
...
...
@@ -106,7 +106,7 @@ mad_plugin_init(const ConfigBlock &block)
return
true
;
}
struct
MadDecoder
{
class
MadDecoder
{
static
constexpr
size_t
READ_BUFFER_SIZE
=
40960
;
static
constexpr
size_t
MP3_DATA_OUTPUT_BUFFER_SIZE
=
2048
;
...
...
@@ -136,12 +136,14 @@ struct MadDecoder {
InputStream
&
input_stream
;
enum
mad_layer
layer
=
mad_layer
(
0
);
public
:
MadDecoder
(
DecoderClient
*
client
,
InputStream
&
input_stream
)
noexcept
;
~
MadDecoder
()
noexcept
;
void
RunDecoder
()
noexcept
;
bool
RunScan
(
TagHandler
&
handler
)
noexcept
;
private
:
bool
Seek
(
long
offset
)
noexcept
;
bool
FillBuffer
()
noexcept
;
void
ParseId3
(
size_t
tagsize
,
Tag
*
tag
)
noexcept
;
...
...
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