aboutsummaryrefslogtreecommitdiff
path: root/src/decoder/FLACCommon.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/decoder/FLACCommon.hxx')
-rw-r--r--src/decoder/FLACCommon.hxx13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/decoder/FLACCommon.hxx b/src/decoder/FLACCommon.hxx
index 3d280cc4..501c58f6 100644
--- a/src/decoder/FLACCommon.hxx
+++ b/src/decoder/FLACCommon.hxx
@@ -78,18 +78,15 @@ struct flac_data {
FLAC__uint64 next_frame;
FLAC__uint64 position;
+
struct decoder *decoder;
struct input_stream *input_stream;
- struct tag *tag;
-};
-/* initializes a given FlacData struct */
-void
-flac_data_init(struct flac_data *data, struct decoder * decoder,
- struct input_stream *input_stream);
+ struct tag *tag;
-void
-flac_data_deinit(struct flac_data *data);
+ 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);