aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/FLACCommon.hxx
diff options
context:
space:
mode:
authorDenis Krjuchkov <denis@crazydev.net>2013-05-05 18:19:04 +0600
committerDenis Krjuchkov <denis@crazydev.net>2013-05-06 23:36:47 +0600
commit21dac6c05ddff1ce130843a82127618f9ed766a7 (patch)
tree30ec0cf3001135bae7009b2331ca9c651bf16a87 /src/decoder/FLACCommon.hxx
parent1d9b84a5afe44f2ea25bab836ed245e8de3ed901 (diff)
downloadmpd-21dac6c05ddff1ce130843a82127618f9ed766a7.tar.gz
mpd-21dac6c05ddff1ce130843a82127618f9ed766a7.tar.xz
mpd-21dac6c05ddff1ce130843a82127618f9ed766a7.zip
decoder/FLAC*: rename files and symbols to Flac*
Diffstat (limited to 'src/decoder/FLACCommon.hxx')
-rw-r--r--src/decoder/FLACCommon.hxx101
1 files changed, 0 insertions, 101 deletions
diff --git a/src/decoder/FLACCommon.hxx b/src/decoder/FLACCommon.hxx
deleted file mode 100644
index 20f93c8c7..000000000
--- a/src/decoder/FLACCommon.hxx
+++ /dev/null
@@ -1,101 +0,0 @@
-/*
- * Copyright (C) 2003-2012 The Music Player Daemon Project
- * http://www.musicpd.org
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-/*
- * Common data structures and functions used by FLAC and OggFLAC
- */
-
-#ifndef MPD_FLAC_COMMON_HXX
-#define MPD_FLAC_COMMON_HXX
-
-#include "FLACInput.hxx"
-#include "decoder_api.h"
-
-extern "C" {
-#include "pcm/pcm_buffer.h"
-}
-
-#include <FLAC/stream_decoder.h>
-#include <FLAC/metadata.h>
-
-#undef G_LOG_DOMAIN
-#define G_LOG_DOMAIN "flac"
-
-struct flac_data : public FLACInput {
- struct pcm_buffer buffer;
-
- /**
- * The size of one frame in the output buffer.
- */
- unsigned frame_size;
-
- /**
- * Has decoder_initialized() been called yet?
- */
- bool initialized;
-
- /**
- * Does the FLAC file contain an unsupported audio format?
- */
- bool unsupported;
-
- /**
- * The validated audio format of the FLAC file. This
- * attribute is defined if "initialized" is true.
- */
- struct audio_format audio_format;
-
- /**
- * The total number of frames in this song. The decoder
- * plugin may initialize this attribute to override the value
- * provided by libFLAC (e.g. for sub songs from a CUE sheet).
- */
- FLAC__uint64 total_frames;
-
- /**
- * The number of the first frame in this song. This is only
- * non-zero if playing sub songs from a CUE sheet.
- */
- FLAC__uint64 first_frame;
-
- /**
- * The number of the next frame which is going to be decoded.
- */
- FLAC__uint64 next_frame;
-
- FLAC__uint64 position;
-
- struct decoder *decoder;
- struct input_stream *input_stream;
-
- struct tag *tag;
-
- flac_data(struct decoder *decoder, struct input_stream *input_stream);
- ~flac_data();
-};
-
-void flac_metadata_common_cb(const FLAC__StreamMetadata * block,
- struct flac_data *data);
-
-FLAC__StreamDecoderWriteStatus
-flac_common_write(struct flac_data *data, const FLAC__Frame * frame,
- const FLAC__int32 *const buf[],
- FLAC__uint64 nbytes);
-
-#endif /* _FLAC_COMMON_H */