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
21dac6c0
Commit
21dac6c0
authored
May 05, 2013
by
Denis Krjuchkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/FLAC*: rename files and symbols to Flac*
parent
1d9b84a5
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
81 additions
and
81 deletions
+81
-81
Makefile.am
Makefile.am
+8
-8
DecoderList.cxx
src/DecoderList.cxx
+1
-1
FlacCommon.cxx
src/decoder/FlacCommon.cxx
+4
-4
FlacCommon.hxx
src/decoder/FlacCommon.hxx
+2
-2
FlacDecoderPlugin.cxx
src/decoder/FlacDecoderPlugin.cxx
+19
-19
FlacDecoderPlugin.h
src/decoder/FlacDecoderPlugin.h
+0
-0
FlacIOHandle.cxx
src/decoder/FlacIOHandle.cxx
+14
-14
FlacIOHandle.hxx
src/decoder/FlacIOHandle.hxx
+2
-2
FlacInput.cxx
src/decoder/FlacInput.cxx
+19
-19
FlacInput.hxx
src/decoder/FlacInput.hxx
+2
-2
FlacMetadata.cxx
src/decoder/FlacMetadata.cxx
+2
-2
FlacMetadata.hxx
src/decoder/FlacMetadata.hxx
+7
-7
FlacPcm.cxx
src/decoder/FlacPcm.cxx
+1
-1
FlacPcm.hxx
src/decoder/FlacPcm.hxx
+0
-0
No files found.
Makefile.am
View file @
21dac6c0
...
@@ -555,13 +555,13 @@ endif
...
@@ -555,13 +555,13 @@ endif
if
HAVE_FLAC
if
HAVE_FLAC
libdecoder_plugins_a_SOURCES
+=
\
libdecoder_plugins_a_SOURCES
+=
\
src/decoder/F
LACInput.cxx src/decoder/FLAC
Input.hxx
\
src/decoder/F
lacInput.cxx src/decoder/Flac
Input.hxx
\
src/decoder/F
LACIOHandle.cxx src/decoder/FLAC
IOHandle.hxx
\
src/decoder/F
lacIOHandle.cxx src/decoder/Flac
IOHandle.hxx
\
src/decoder/F
LACMetaData.cxx src/decoder/FLACMetaD
ata.hxx
\
src/decoder/F
lacMetadata.cxx src/decoder/FlacMetad
ata.hxx
\
src/decoder/F
LAC_PCM.cxx src/decoder/FLAC_PCM
.hxx
\
src/decoder/F
lacPcm.cxx src/decoder/FlacPcm
.hxx
\
src/decoder/F
LACCommon.cxx src/decoder/FLAC
Common.hxx
\
src/decoder/F
lacCommon.cxx src/decoder/Flac
Common.hxx
\
src/decoder/F
LAC
DecoderPlugin.cxx
\
src/decoder/F
lac
DecoderPlugin.cxx
\
src/decoder/F
LAC
DecoderPlugin.h
src/decoder/F
lac
DecoderPlugin.h
endif
endif
if
HAVE_AUDIOFILE
if
HAVE_AUDIOFILE
...
@@ -1137,7 +1137,7 @@ test_dump_playlist_SOURCES = test/dump_playlist.cxx \
...
@@ -1137,7 +1137,7 @@ test_dump_playlist_SOURCES = test/dump_playlist.cxx \
if
HAVE_FLAC
if
HAVE_FLAC
test_dump_playlist_SOURCES
+=
\
test_dump_playlist_SOURCES
+=
\
src/ReplayGainInfo.cxx
\
src/ReplayGainInfo.cxx
\
src/decoder/F
LACMetaD
ata.cxx
src/decoder/F
lacMetad
ata.cxx
endif
endif
test_run_decoder_LDADD
=
\
test_run_decoder_LDADD
=
\
...
...
src/DecoderList.cxx
View file @
21dac6c0
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
#include "decoder/pcm_decoder_plugin.h"
#include "decoder/pcm_decoder_plugin.h"
#include "decoder/dsdiff_decoder_plugin.h"
#include "decoder/dsdiff_decoder_plugin.h"
#include "decoder/dsf_decoder_plugin.h"
#include "decoder/dsf_decoder_plugin.h"
#include "decoder/F
LAC
DecoderPlugin.h"
#include "decoder/F
lac
DecoderPlugin.h"
#include "decoder/OpusDecoderPlugin.h"
#include "decoder/OpusDecoderPlugin.h"
#include "decoder/VorbisDecoderPlugin.h"
#include "decoder/VorbisDecoderPlugin.h"
#include "decoder/AdPlugDecoderPlugin.h"
#include "decoder/AdPlugDecoderPlugin.h"
...
...
src/decoder/F
LAC
Common.cxx
→
src/decoder/F
lac
Common.cxx
View file @
21dac6c0
...
@@ -22,9 +22,9 @@
...
@@ -22,9 +22,9 @@
*/
*/
#include "config.h"
#include "config.h"
#include "F
LAC
Common.hxx"
#include "F
lac
Common.hxx"
#include "F
LACMetaD
ata.hxx"
#include "F
lacMetad
ata.hxx"
#include "F
LAC_PCM
.hxx"
#include "F
lacPcm
.hxx"
extern
"C"
{
extern
"C"
{
#include "audio_check.h"
#include "audio_check.h"
...
@@ -36,7 +36,7 @@ extern "C" {
...
@@ -36,7 +36,7 @@ extern "C" {
flac_data
::
flac_data
(
struct
decoder
*
_decoder
,
flac_data
::
flac_data
(
struct
decoder
*
_decoder
,
struct
input_stream
*
_input_stream
)
struct
input_stream
*
_input_stream
)
:
F
LAC
Input
(
_input_stream
,
_decoder
),
:
F
lac
Input
(
_input_stream
,
_decoder
),
initialized
(
false
),
unsupported
(
false
),
initialized
(
false
),
unsupported
(
false
),
total_frames
(
0
),
first_frame
(
0
),
next_frame
(
0
),
position
(
0
),
total_frames
(
0
),
first_frame
(
0
),
next_frame
(
0
),
position
(
0
),
decoder
(
_decoder
),
input_stream
(
_input_stream
),
decoder
(
_decoder
),
input_stream
(
_input_stream
),
...
...
src/decoder/F
LAC
Common.hxx
→
src/decoder/F
lac
Common.hxx
View file @
21dac6c0
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
#ifndef MPD_FLAC_COMMON_HXX
#ifndef MPD_FLAC_COMMON_HXX
#define MPD_FLAC_COMMON_HXX
#define MPD_FLAC_COMMON_HXX
#include "F
LAC
Input.hxx"
#include "F
lac
Input.hxx"
#include "decoder_api.h"
#include "decoder_api.h"
extern
"C"
{
extern
"C"
{
...
@@ -37,7 +37,7 @@ extern "C" {
...
@@ -37,7 +37,7 @@ extern "C" {
#undef G_LOG_DOMAIN
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "flac"
#define G_LOG_DOMAIN "flac"
struct
flac_data
:
public
F
LAC
Input
{
struct
flac_data
:
public
F
lac
Input
{
struct
pcm_buffer
buffer
;
struct
pcm_buffer
buffer
;
/**
/**
...
...
src/decoder/F
LAC
DecoderPlugin.cxx
→
src/decoder/F
lac
DecoderPlugin.cxx
View file @
21dac6c0
...
@@ -18,9 +18,9 @@
...
@@ -18,9 +18,9 @@
*/
*/
#include "config.h"
/* must be first for large file support */
#include "config.h"
/* must be first for large file support */
#include "F
LAC
DecoderPlugin.h"
#include "F
lac
DecoderPlugin.h"
#include "F
LAC
Common.hxx"
#include "F
lac
Common.hxx"
#include "F
LACMetaD
ata.hxx"
#include "F
lacMetad
ata.hxx"
#include "OggCodec.hxx"
#include "OggCodec.hxx"
#include <glib.h>
#include <glib.h>
...
@@ -87,7 +87,7 @@ static bool
...
@@ -87,7 +87,7 @@ static bool
flac_scan_file
(
const
char
*
file
,
flac_scan_file
(
const
char
*
file
,
const
struct
tag_handler
*
handler
,
void
*
handler_ctx
)
const
struct
tag_handler
*
handler
,
void
*
handler_ctx
)
{
{
F
LAC
MetadataChain
chain
;
F
lac
MetadataChain
chain
;
if
(
!
chain
.
Read
(
file
))
{
if
(
!
chain
.
Read
(
file
))
{
g_debug
(
"Failed to read FLAC tags: %s"
,
g_debug
(
"Failed to read FLAC tags: %s"
,
chain
.
GetStatusString
());
chain
.
GetStatusString
());
...
@@ -102,7 +102,7 @@ static bool
...
@@ -102,7 +102,7 @@ static bool
flac_scan_stream
(
struct
input_stream
*
is
,
flac_scan_stream
(
struct
input_stream
*
is
,
const
struct
tag_handler
*
handler
,
void
*
handler_ctx
)
const
struct
tag_handler
*
handler
,
void
*
handler_ctx
)
{
{
F
LAC
MetadataChain
chain
;
F
lac
MetadataChain
chain
;
if
(
!
chain
.
Read
(
is
))
{
if
(
!
chain
.
Read
(
is
))
{
g_debug
(
"Failed to read FLAC tags: %s"
,
g_debug
(
"Failed to read FLAC tags: %s"
,
chain
.
GetStatusString
());
chain
.
GetStatusString
());
...
@@ -214,14 +214,14 @@ static FLAC__StreamDecoderInitStatus
...
@@ -214,14 +214,14 @@ static FLAC__StreamDecoderInitStatus
stream_init_oggflac
(
FLAC__StreamDecoder
*
flac_dec
,
struct
flac_data
*
data
)
stream_init_oggflac
(
FLAC__StreamDecoder
*
flac_dec
,
struct
flac_data
*
data
)
{
{
return
FLAC__stream_decoder_init_ogg_stream
(
flac_dec
,
return
FLAC__stream_decoder_init_ogg_stream
(
flac_dec
,
F
LAC
Input
::
Read
,
F
lac
Input
::
Read
,
F
LAC
Input
::
Seek
,
F
lac
Input
::
Seek
,
F
LAC
Input
::
Tell
,
F
lac
Input
::
Tell
,
F
LAC
Input
::
Length
,
F
lac
Input
::
Length
,
F
LAC
Input
::
Eof
,
F
lac
Input
::
Eof
,
flac_write_cb
,
flac_write_cb
,
flacMetadata
,
flacMetadata
,
F
LAC
Input
::
Error
,
F
lac
Input
::
Error
,
data
);
data
);
}
}
...
@@ -229,14 +229,14 @@ static FLAC__StreamDecoderInitStatus
...
@@ -229,14 +229,14 @@ static FLAC__StreamDecoderInitStatus
stream_init_flac
(
FLAC__StreamDecoder
*
flac_dec
,
struct
flac_data
*
data
)
stream_init_flac
(
FLAC__StreamDecoder
*
flac_dec
,
struct
flac_data
*
data
)
{
{
return
FLAC__stream_decoder_init_stream
(
flac_dec
,
return
FLAC__stream_decoder_init_stream
(
flac_dec
,
F
LAC
Input
::
Read
,
F
lac
Input
::
Read
,
F
LAC
Input
::
Seek
,
F
lac
Input
::
Seek
,
F
LAC
Input
::
Tell
,
F
lac
Input
::
Tell
,
F
LAC
Input
::
Length
,
F
lac
Input
::
Length
,
F
LAC
Input
::
Eof
,
F
lac
Input
::
Eof
,
flac_write_cb
,
flac_write_cb
,
flacMetadata
,
flacMetadata
,
F
LAC
Input
::
Error
,
F
lac
Input
::
Error
,
data
);
data
);
}
}
...
@@ -298,7 +298,7 @@ static bool
...
@@ -298,7 +298,7 @@ static bool
oggflac_scan_file
(
const
char
*
file
,
oggflac_scan_file
(
const
char
*
file
,
const
struct
tag_handler
*
handler
,
void
*
handler_ctx
)
const
struct
tag_handler
*
handler
,
void
*
handler_ctx
)
{
{
F
LAC
MetadataChain
chain
;
F
lac
MetadataChain
chain
;
if
(
!
chain
.
ReadOgg
(
file
))
{
if
(
!
chain
.
ReadOgg
(
file
))
{
g_debug
(
"Failed to read OggFLAC tags: %s"
,
g_debug
(
"Failed to read OggFLAC tags: %s"
,
chain
.
GetStatusString
());
chain
.
GetStatusString
());
...
@@ -313,7 +313,7 @@ static bool
...
@@ -313,7 +313,7 @@ static bool
oggflac_scan_stream
(
struct
input_stream
*
is
,
oggflac_scan_stream
(
struct
input_stream
*
is
,
const
struct
tag_handler
*
handler
,
void
*
handler_ctx
)
const
struct
tag_handler
*
handler
,
void
*
handler_ctx
)
{
{
F
LAC
MetadataChain
chain
;
F
lac
MetadataChain
chain
;
if
(
!
chain
.
ReadOgg
(
is
))
{
if
(
!
chain
.
ReadOgg
(
is
))
{
g_debug
(
"Failed to read OggFLAC tags: %s"
,
g_debug
(
"Failed to read OggFLAC tags: %s"
,
chain
.
GetStatusString
());
chain
.
GetStatusString
());
...
...
src/decoder/F
LAC
DecoderPlugin.h
→
src/decoder/F
lac
DecoderPlugin.h
View file @
21dac6c0
File moved
src/decoder/F
LAC
IOHandle.cxx
→
src/decoder/F
lac
IOHandle.cxx
View file @
21dac6c0
...
@@ -18,14 +18,14 @@
...
@@ -18,14 +18,14 @@
*/
*/
#include "config.h"
#include "config.h"
#include "F
LAC
IOHandle.hxx"
#include "F
lac
IOHandle.hxx"
#include "io_error.h"
#include "io_error.h"
#include "gcc.h"
#include "gcc.h"
#include <errno.h>
#include <errno.h>
static
size_t
static
size_t
F
LAC
IORead
(
void
*
ptr
,
size_t
size
,
size_t
nmemb
,
FLAC__IOHandle
handle
)
F
lac
IORead
(
void
*
ptr
,
size_t
size
,
size_t
nmemb
,
FLAC__IOHandle
handle
)
{
{
input_stream
*
is
=
(
input_stream
*
)
handle
;
input_stream
*
is
=
(
input_stream
*
)
handle
;
...
@@ -63,7 +63,7 @@ FLACIORead(void *ptr, size_t size, size_t nmemb, FLAC__IOHandle handle)
...
@@ -63,7 +63,7 @@ FLACIORead(void *ptr, size_t size, size_t nmemb, FLAC__IOHandle handle)
}
}
static
int
static
int
F
LAC
IOSeek
(
FLAC__IOHandle
handle
,
FLAC__int64
offset
,
int
whence
)
F
lac
IOSeek
(
FLAC__IOHandle
handle
,
FLAC__int64
offset
,
int
whence
)
{
{
input_stream
*
is
=
(
input_stream
*
)
handle
;
input_stream
*
is
=
(
input_stream
*
)
handle
;
...
@@ -71,7 +71,7 @@ FLACIOSeek(FLAC__IOHandle handle, FLAC__int64 offset, int whence)
...
@@ -71,7 +71,7 @@ FLACIOSeek(FLAC__IOHandle handle, FLAC__int64 offset, int whence)
}
}
static
FLAC__int64
static
FLAC__int64
F
LAC
IOTell
(
FLAC__IOHandle
handle
)
F
lac
IOTell
(
FLAC__IOHandle
handle
)
{
{
input_stream
*
is
=
(
input_stream
*
)
handle
;
input_stream
*
is
=
(
input_stream
*
)
handle
;
...
@@ -79,7 +79,7 @@ FLACIOTell(FLAC__IOHandle handle)
...
@@ -79,7 +79,7 @@ FLACIOTell(FLAC__IOHandle handle)
}
}
static
int
static
int
F
LAC
IOEof
(
FLAC__IOHandle
handle
)
F
lac
IOEof
(
FLAC__IOHandle
handle
)
{
{
input_stream
*
is
=
(
input_stream
*
)
handle
;
input_stream
*
is
=
(
input_stream
*
)
handle
;
...
@@ -87,7 +87,7 @@ FLACIOEof(FLAC__IOHandle handle)
...
@@ -87,7 +87,7 @@ FLACIOEof(FLAC__IOHandle handle)
}
}
static
int
static
int
F
LAC
IOClose
(
gcc_unused
FLAC__IOHandle
handle
)
F
lac
IOClose
(
gcc_unused
FLAC__IOHandle
handle
)
{
{
/* no-op because the libFLAC caller is repsonsible for closing
/* no-op because the libFLAC caller is repsonsible for closing
the #input_stream */
the #input_stream */
...
@@ -96,19 +96,19 @@ FLACIOClose(gcc_unused FLAC__IOHandle handle)
...
@@ -96,19 +96,19 @@ FLACIOClose(gcc_unused FLAC__IOHandle handle)
}
}
const
FLAC__IOCallbacks
flac_io_callbacks
=
{
const
FLAC__IOCallbacks
flac_io_callbacks
=
{
F
LAC
IORead
,
F
lac
IORead
,
nullptr
,
nullptr
,
nullptr
,
nullptr
,
nullptr
,
nullptr
,
F
LAC
IOEof
,
F
lac
IOEof
,
F
LAC
IOClose
,
F
lac
IOClose
,
};
};
const
FLAC__IOCallbacks
flac_io_callbacks_seekable
=
{
const
FLAC__IOCallbacks
flac_io_callbacks_seekable
=
{
F
LAC
IORead
,
F
lac
IORead
,
nullptr
,
nullptr
,
F
LAC
IOSeek
,
F
lac
IOSeek
,
F
LAC
IOTell
,
F
lac
IOTell
,
F
LAC
IOEof
,
F
lac
IOEof
,
F
LAC
IOClose
,
F
lac
IOClose
,
};
};
src/decoder/F
LAC
IOHandle.hxx
→
src/decoder/F
lac
IOHandle.hxx
View file @
21dac6c0
...
@@ -29,13 +29,13 @@ extern const FLAC__IOCallbacks flac_io_callbacks;
...
@@ -29,13 +29,13 @@ extern const FLAC__IOCallbacks flac_io_callbacks;
extern
const
FLAC__IOCallbacks
flac_io_callbacks_seekable
;
extern
const
FLAC__IOCallbacks
flac_io_callbacks_seekable
;
static
inline
FLAC__IOHandle
static
inline
FLAC__IOHandle
ToF
LAC
IOHandle
(
input_stream
*
is
)
ToF
lac
IOHandle
(
input_stream
*
is
)
{
{
return
(
FLAC__IOHandle
)
is
;
return
(
FLAC__IOHandle
)
is
;
}
}
static
inline
const
FLAC__IOCallbacks
&
static
inline
const
FLAC__IOCallbacks
&
GetF
LAC
IOCallbacks
(
const
input_stream
*
is
)
GetF
lac
IOCallbacks
(
const
input_stream
*
is
)
{
{
return
is
->
seekable
return
is
->
seekable
?
flac_io_callbacks_seekable
?
flac_io_callbacks_seekable
...
...
src/decoder/F
LAC
Input.cxx
→
src/decoder/F
lac
Input.cxx
View file @
21dac6c0
...
@@ -18,13 +18,13 @@
...
@@ -18,13 +18,13 @@
*/
*/
#include "config.h"
#include "config.h"
#include "F
LAC
Input.hxx"
#include "F
lac
Input.hxx"
#include "decoder_api.h"
#include "decoder_api.h"
#include "gcc.h"
#include "gcc.h"
#include "InputStream.hxx"
#include "InputStream.hxx"
FLAC__StreamDecoderReadStatus
FLAC__StreamDecoderReadStatus
F
LAC
Input
::
Read
(
FLAC__byte
buffer
[],
size_t
*
bytes
)
F
lac
Input
::
Read
(
FLAC__byte
buffer
[],
size_t
*
bytes
)
{
{
size_t
r
=
decoder_read
(
decoder
,
input_stream
,
(
void
*
)
buffer
,
*
bytes
);
size_t
r
=
decoder_read
(
decoder
,
input_stream
,
(
void
*
)
buffer
,
*
bytes
);
*
bytes
=
r
;
*
bytes
=
r
;
...
@@ -42,7 +42,7 @@ FLACInput::Read(FLAC__byte buffer[], size_t *bytes)
...
@@ -42,7 +42,7 @@ FLACInput::Read(FLAC__byte buffer[], size_t *bytes)
}
}
FLAC__StreamDecoderSeekStatus
FLAC__StreamDecoderSeekStatus
F
LAC
Input
::
Seek
(
FLAC__uint64
absolute_byte_offset
)
F
lac
Input
::
Seek
(
FLAC__uint64
absolute_byte_offset
)
{
{
if
(
!
input_stream
->
seekable
)
if
(
!
input_stream
->
seekable
)
return
FLAC__STREAM_DECODER_SEEK_STATUS_UNSUPPORTED
;
return
FLAC__STREAM_DECODER_SEEK_STATUS_UNSUPPORTED
;
...
@@ -56,7 +56,7 @@ FLACInput::Seek(FLAC__uint64 absolute_byte_offset)
...
@@ -56,7 +56,7 @@ FLACInput::Seek(FLAC__uint64 absolute_byte_offset)
}
}
FLAC__StreamDecoderTellStatus
FLAC__StreamDecoderTellStatus
F
LAC
Input
::
Tell
(
FLAC__uint64
*
absolute_byte_offset
)
F
lac
Input
::
Tell
(
FLAC__uint64
*
absolute_byte_offset
)
{
{
if
(
!
input_stream
->
seekable
)
if
(
!
input_stream
->
seekable
)
return
FLAC__STREAM_DECODER_TELL_STATUS_UNSUPPORTED
;
return
FLAC__STREAM_DECODER_TELL_STATUS_UNSUPPORTED
;
...
@@ -66,7 +66,7 @@ FLACInput::Tell(FLAC__uint64 *absolute_byte_offset)
...
@@ -66,7 +66,7 @@ FLACInput::Tell(FLAC__uint64 *absolute_byte_offset)
}
}
FLAC__StreamDecoderLengthStatus
FLAC__StreamDecoderLengthStatus
F
LAC
Input
::
Length
(
FLAC__uint64
*
stream_length
)
F
lac
Input
::
Length
(
FLAC__uint64
*
stream_length
)
{
{
if
(
input_stream
->
size
<
0
)
if
(
input_stream
->
size
<
0
)
return
FLAC__STREAM_DECODER_LENGTH_STATUS_UNSUPPORTED
;
return
FLAC__STREAM_DECODER_LENGTH_STATUS_UNSUPPORTED
;
...
@@ -76,7 +76,7 @@ FLACInput::Length(FLAC__uint64 *stream_length)
...
@@ -76,7 +76,7 @@ FLACInput::Length(FLAC__uint64 *stream_length)
}
}
FLAC__bool
FLAC__bool
F
LAC
Input
::
Eof
()
F
lac
Input
::
Eof
()
{
{
return
(
decoder
!=
nullptr
&&
return
(
decoder
!=
nullptr
&&
decoder_get_command
(
decoder
)
!=
DECODE_COMMAND_NONE
&&
decoder_get_command
(
decoder
)
!=
DECODE_COMMAND_NONE
&&
...
@@ -85,7 +85,7 @@ FLACInput::Eof()
...
@@ -85,7 +85,7 @@ FLACInput::Eof()
}
}
void
void
F
LAC
Input
::
Error
(
FLAC__StreamDecoderErrorStatus
status
)
F
lac
Input
::
Error
(
FLAC__StreamDecoderErrorStatus
status
)
{
{
if
(
decoder
==
nullptr
||
if
(
decoder
==
nullptr
||
decoder_get_command
(
decoder
)
!=
DECODE_COMMAND_STOP
)
decoder_get_command
(
decoder
)
!=
DECODE_COMMAND_STOP
)
...
@@ -93,56 +93,56 @@ FLACInput::Error(FLAC__StreamDecoderErrorStatus status)
...
@@ -93,56 +93,56 @@ FLACInput::Error(FLAC__StreamDecoderErrorStatus status)
}
}
FLAC__StreamDecoderReadStatus
FLAC__StreamDecoderReadStatus
F
LAC
Input
::
Read
(
gcc_unused
const
FLAC__StreamDecoder
*
flac_decoder
,
F
lac
Input
::
Read
(
gcc_unused
const
FLAC__StreamDecoder
*
flac_decoder
,
FLAC__byte
buffer
[],
size_t
*
bytes
,
FLAC__byte
buffer
[],
size_t
*
bytes
,
void
*
client_data
)
void
*
client_data
)
{
{
F
LACInput
*
i
=
(
FLAC
Input
*
)
client_data
;
F
lacInput
*
i
=
(
Flac
Input
*
)
client_data
;
return
i
->
Read
(
buffer
,
bytes
);
return
i
->
Read
(
buffer
,
bytes
);
}
}
FLAC__StreamDecoderSeekStatus
FLAC__StreamDecoderSeekStatus
F
LAC
Input
::
Seek
(
gcc_unused
const
FLAC__StreamDecoder
*
flac_decoder
,
F
lac
Input
::
Seek
(
gcc_unused
const
FLAC__StreamDecoder
*
flac_decoder
,
FLAC__uint64
absolute_byte_offset
,
void
*
client_data
)
FLAC__uint64
absolute_byte_offset
,
void
*
client_data
)
{
{
F
LACInput
*
i
=
(
FLAC
Input
*
)
client_data
;
F
lacInput
*
i
=
(
Flac
Input
*
)
client_data
;
return
i
->
Seek
(
absolute_byte_offset
);
return
i
->
Seek
(
absolute_byte_offset
);
}
}
FLAC__StreamDecoderTellStatus
FLAC__StreamDecoderTellStatus
F
LAC
Input
::
Tell
(
gcc_unused
const
FLAC__StreamDecoder
*
flac_decoder
,
F
lac
Input
::
Tell
(
gcc_unused
const
FLAC__StreamDecoder
*
flac_decoder
,
FLAC__uint64
*
absolute_byte_offset
,
void
*
client_data
)
FLAC__uint64
*
absolute_byte_offset
,
void
*
client_data
)
{
{
F
LACInput
*
i
=
(
FLAC
Input
*
)
client_data
;
F
lacInput
*
i
=
(
Flac
Input
*
)
client_data
;
return
i
->
Tell
(
absolute_byte_offset
);
return
i
->
Tell
(
absolute_byte_offset
);
}
}
FLAC__StreamDecoderLengthStatus
FLAC__StreamDecoderLengthStatus
F
LAC
Input
::
Length
(
gcc_unused
const
FLAC__StreamDecoder
*
flac_decoder
,
F
lac
Input
::
Length
(
gcc_unused
const
FLAC__StreamDecoder
*
flac_decoder
,
FLAC__uint64
*
stream_length
,
void
*
client_data
)
FLAC__uint64
*
stream_length
,
void
*
client_data
)
{
{
F
LACInput
*
i
=
(
FLAC
Input
*
)
client_data
;
F
lacInput
*
i
=
(
Flac
Input
*
)
client_data
;
return
i
->
Length
(
stream_length
);
return
i
->
Length
(
stream_length
);
}
}
FLAC__bool
FLAC__bool
F
LAC
Input
::
Eof
(
gcc_unused
const
FLAC__StreamDecoder
*
flac_decoder
,
F
lac
Input
::
Eof
(
gcc_unused
const
FLAC__StreamDecoder
*
flac_decoder
,
void
*
client_data
)
void
*
client_data
)
{
{
F
LACInput
*
i
=
(
FLAC
Input
*
)
client_data
;
F
lacInput
*
i
=
(
Flac
Input
*
)
client_data
;
return
i
->
Eof
();
return
i
->
Eof
();
}
}
void
void
F
LAC
Input
::
Error
(
gcc_unused
const
FLAC__StreamDecoder
*
decoder
,
F
lac
Input
::
Error
(
gcc_unused
const
FLAC__StreamDecoder
*
decoder
,
FLAC__StreamDecoderErrorStatus
status
,
void
*
client_data
)
FLAC__StreamDecoderErrorStatus
status
,
void
*
client_data
)
{
{
F
LACInput
*
i
=
(
FLAC
Input
*
)
client_data
;
F
lacInput
*
i
=
(
Flac
Input
*
)
client_data
;
i
->
Error
(
status
);
i
->
Error
(
status
);
}
}
...
...
src/decoder/F
LAC
Input.hxx
→
src/decoder/F
lac
Input.hxx
View file @
21dac6c0
...
@@ -26,13 +26,13 @@
...
@@ -26,13 +26,13 @@
* This class wraps an #input_stream in libFLAC stream decoder
* This class wraps an #input_stream in libFLAC stream decoder
* callbacks.
* callbacks.
*/
*/
class
F
LAC
Input
{
class
F
lac
Input
{
struct
decoder
*
decoder
;
struct
decoder
*
decoder
;
struct
input_stream
*
input_stream
;
struct
input_stream
*
input_stream
;
public
:
public
:
F
LAC
Input
(
struct
input_stream
*
_input_stream
,
F
lac
Input
(
struct
input_stream
*
_input_stream
,
struct
decoder
*
_decoder
=
nullptr
)
struct
decoder
*
_decoder
=
nullptr
)
:
decoder
(
_decoder
),
input_stream
(
_input_stream
)
{}
:
decoder
(
_decoder
),
input_stream
(
_input_stream
)
{}
...
...
src/decoder/F
LACMetaD
ata.cxx
→
src/decoder/F
lacMetad
ata.cxx
View file @
21dac6c0
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
*/
*/
#include "config.h"
#include "config.h"
#include "F
LACMetaD
ata.hxx"
#include "F
lacMetad
ata.hxx"
extern
"C"
{
extern
"C"
{
#include "XiphTags.h"
#include "XiphTags.h"
...
@@ -239,7 +239,7 @@ flac_vorbis_comments_to_tag(struct tag *tag,
...
@@ -239,7 +239,7 @@ flac_vorbis_comments_to_tag(struct tag *tag,
}
}
void
void
F
LAC
MetadataChain
::
Scan
(
const
struct
tag_handler
*
handler
,
void
*
handler_ctx
)
F
lac
MetadataChain
::
Scan
(
const
struct
tag_handler
*
handler
,
void
*
handler_ctx
)
{
{
FLACMetadataIterator
iterator
(
*
this
);
FLACMetadataIterator
iterator
(
*
this
);
...
...
src/decoder/F
LACMetaD
ata.hxx
→
src/decoder/F
lacMetad
ata.hxx
View file @
21dac6c0
...
@@ -21,19 +21,19 @@
...
@@ -21,19 +21,19 @@
#define MPD_FLAC_METADATA_H
#define MPD_FLAC_METADATA_H
#include "gcc.h"
#include "gcc.h"
#include "F
LAC
IOHandle.hxx"
#include "F
lac
IOHandle.hxx"
#include <FLAC/metadata.h>
#include <FLAC/metadata.h>
#include <assert.h>
#include <assert.h>
class
F
LAC
MetadataChain
{
class
F
lac
MetadataChain
{
FLAC__Metadata_Chain
*
chain
;
FLAC__Metadata_Chain
*
chain
;
public
:
public
:
F
LAC
MetadataChain
()
:
chain
(
::
FLAC__metadata_chain_new
())
{}
F
lac
MetadataChain
()
:
chain
(
::
FLAC__metadata_chain_new
())
{}
~
F
LAC
MetadataChain
()
{
~
F
lac
MetadataChain
()
{
::
FLAC__metadata_chain_delete
(
chain
);
::
FLAC__metadata_chain_delete
(
chain
);
}
}
...
@@ -52,7 +52,7 @@ public:
...
@@ -52,7 +52,7 @@ public:
}
}
bool
Read
(
input_stream
*
is
)
{
bool
Read
(
input_stream
*
is
)
{
return
Read
(
::
ToF
LACIOHandle
(
is
),
::
GetFLAC
IOCallbacks
(
is
));
return
Read
(
::
ToF
lacIOHandle
(
is
),
::
GetFlac
IOCallbacks
(
is
));
}
}
bool
ReadOgg
(
const
char
*
path
)
{
bool
ReadOgg
(
const
char
*
path
)
{
...
@@ -66,7 +66,7 @@ public:
...
@@ -66,7 +66,7 @@ public:
}
}
bool
ReadOgg
(
input_stream
*
is
)
{
bool
ReadOgg
(
input_stream
*
is
)
{
return
ReadOgg
(
::
ToF
LACIOHandle
(
is
),
::
GetFLAC
IOCallbacks
(
is
));
return
ReadOgg
(
::
ToF
lacIOHandle
(
is
),
::
GetFlac
IOCallbacks
(
is
));
}
}
gcc_pure
gcc_pure
...
@@ -88,7 +88,7 @@ class FLACMetadataIterator {
...
@@ -88,7 +88,7 @@ class FLACMetadataIterator {
public
:
public
:
FLACMetadataIterator
()
:
iterator
(
::
FLAC__metadata_iterator_new
())
{}
FLACMetadataIterator
()
:
iterator
(
::
FLAC__metadata_iterator_new
())
{}
FLACMetadataIterator
(
F
LAC
MetadataChain
&
chain
)
FLACMetadataIterator
(
F
lac
MetadataChain
&
chain
)
:
iterator
(
::
FLAC__metadata_iterator_new
())
{
:
iterator
(
::
FLAC__metadata_iterator_new
())
{
::
FLAC__metadata_iterator_init
(
iterator
,
::
FLAC__metadata_iterator_init
(
iterator
,
(
FLAC__Metadata_Chain
*
)
chain
);
(
FLAC__Metadata_Chain
*
)
chain
);
...
...
src/decoder/F
LAC_PCM
.cxx
→
src/decoder/F
lacPcm
.cxx
View file @
21dac6c0
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
*/
*/
#include "config.h"
#include "config.h"
#include "F
LAC_PCM
.hxx"
#include "F
lacPcm
.hxx"
#include <assert.h>
#include <assert.h>
...
...
src/decoder/F
LAC_PCM
.hxx
→
src/decoder/F
lacPcm
.hxx
View file @
21dac6c0
File moved
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