From 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d Mon Sep 17 00:00:00 2001 From: Jef Date: Tue, 24 Sep 2024 14:54:57 +0200 Subject: Initial community commit --- Src/replicant/mp4/MP4DecoderCallback.h | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Src/replicant/mp4/MP4DecoderCallback.h (limited to 'Src/replicant/mp4/MP4DecoderCallback.h') 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 *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 *mp4_file_object; + int flags; + size_t pregap; + size_t frame_size; + unsigned int channels; +}; \ No newline at end of file -- cgit