aboutsummaryrefslogtreecommitdiff
path: root/Src/replicant/mp4/MP4DecoderCallback.h
diff options
context:
space:
mode:
authorJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
committerJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
commit20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/replicant/mp4/MP4DecoderCallback.h
parent537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff)
downloadwinamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz
Initial community commit
Diffstat (limited to 'Src/replicant/mp4/MP4DecoderCallback.h')
-rw-r--r--Src/replicant/mp4/MP4DecoderCallback.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/Src/replicant/mp4/MP4DecoderCallback.h b/Src/replicant/mp4/MP4DecoderCallback.h
new file mode 100644
index 00000000..7ef992dc
--- /dev/null
+++ b/Src/replicant/mp4/MP4DecoderCallback.h
@@ -0,0 +1,35 @@
+//
+// FLACDecoderPull.h
+// flac
+//
+// Created by Ben Allison on 1/12/12.
+// Copyright (c) 2012 Nullsoft, Inc. All rights reserved.
+//
+#pragma once
+#include "audio/ifc_audio_decoder_callback.h"
+#include "mp4/ifc_mp4audiodecoder.h"
+#include "mp4.h"
+#include "audio/parameters.h"
+#include "MP4FileObject.h"
+#include "nswasabi/MetadataChain.h"
+
+class MP4DecoderCallback : public ifc_audio_decoder_callback
+{
+public:
+ MP4DecoderCallback();
+ ~MP4DecoderCallback();
+ int Initialize(MP4FileHandle mp4_file, ifc_mp4audiodecoder *decoder, int flags, nsaudio::Parameters *parameters, MetadataChain<MP4FileObject> *mp4_file_object);
+
+private:
+ int WASABICALL AudioDecoderCallback_GetMetadata(ifc_metadata **metadata);
+ int WASABICALL AudioDecoderCallback_Decode(ifc_audio_decoder_callback::callback *callback);
+ int WASABICALL AudioDecoderCallback_DecodeStep(ifc_audio_decoder_callback::callback *callback);
+ int WASABICALL AudioDecoderCallback_GetFrameSize(size_t *frame_size);
+ MP4FileHandle mp4_file;
+ ifc_mp4audiodecoder *audio_decoder;
+ MetadataChain<MP4FileObject> *mp4_file_object;
+ int flags;
+ size_t pregap;
+ size_t frame_size;
+ unsigned int channels;
+}; \ No newline at end of file