diff options
author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/replicant/mp4/MP4DecoderCallback.h | |
parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/replicant/mp4/MP4DecoderCallback.h')
-rw-r--r-- | Src/replicant/mp4/MP4DecoderCallback.h | 35 |
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 |