aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/_flac_common.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-15 19:50:28 +0100
committerMax Kellermann <max@duempel.org>2009-01-15 19:50:28 +0100
commit86dc79293f97254c67a4b4170881495d4b05c4ae (patch)
treed2e6b909183444813aa45159c27c48ae73937610 /src/decoder/_flac_common.h
parenta7461dc27d697489b7608b020788c251b992b6c3 (diff)
downloadmpd-86dc79293f97254c67a4b4170881495d4b05c4ae.tar.gz
mpd-86dc79293f97254c67a4b4170881495d4b05c4ae.tar.xz
mpd-86dc79293f97254c67a4b4170881495d4b05c4ae.zip
flac: no CamelCase
Renamed types, functions, variables.
Diffstat (limited to 'src/decoder/_flac_common.h')
-rw-r--r--src/decoder/_flac_common.h28
1 files changed, 16 insertions, 12 deletions
diff --git a/src/decoder/_flac_common.h b/src/decoder/_flac_common.h
index c2e1f4315..08b84c337 100644
--- a/src/decoder/_flac_common.h
+++ b/src/decoder/_flac_common.h
@@ -141,33 +141,37 @@ typedef size_t flac_read_status_size_t;
#define FLAC_CHUNK_SIZE 4080
-typedef struct {
+struct flac_data {
unsigned char chunk[FLAC_CHUNK_SIZE];
float time;
- unsigned int bitRate;
+ unsigned int bit_rate;
struct audio_format audio_format;
float total_time;
FLAC__uint64 position;
struct decoder *decoder;
- struct input_stream *inStream;
- struct replay_gain_info *replayGainInfo;
+ struct input_stream *input_stream;
+ struct replay_gain_info *replay_gain_info;
struct tag *tag;
-} FlacData;
+};
/* initializes a given FlacData struct */
-void init_FlacData(FlacData * data, struct decoder * decoder,
- struct input_stream *inStream);
+void
+flac_data_init(struct flac_data *data, struct decoder * decoder,
+ struct input_stream *input_stream);
+
void flac_metadata_common_cb(const FLAC__StreamMetadata * block,
- FlacData * data);
+ struct flac_data *data);
+
void flac_error_common_cb(const char *plugin,
FLAC__StreamDecoderErrorStatus status,
- FlacData * data);
+ struct flac_data *data);
-struct tag *copyVorbisCommentBlockToMpdTag(const FLAC__StreamMetadata * block,
- struct tag *tag);
+struct tag *
+flac_vorbis_comments_to_tag(const FLAC__StreamMetadata * block,
+ struct tag *tag);
FLAC__StreamDecoderWriteStatus
-flac_common_write(FlacData *data, const FLAC__Frame * frame,
+flac_common_write(struct flac_data *data, const FLAC__Frame * frame,
const FLAC__int32 *const buf[]);
#endif /* _FLAC_COMMON_H */