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/Plugins/Encoder/enc_fhgaac/MP4Writer.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/Plugins/Encoder/enc_fhgaac/MP4Writer.h')
-rw-r--r-- | Src/Plugins/Encoder/enc_fhgaac/MP4Writer.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Src/Plugins/Encoder/enc_fhgaac/MP4Writer.h b/Src/Plugins/Encoder/enc_fhgaac/MP4Writer.h new file mode 100644 index 00000000..5ae6ea06 --- /dev/null +++ b/Src/Plugins/Encoder/enc_fhgaac/MP4Writer.h @@ -0,0 +1,25 @@ +#pragma once + +#include <mp4.h> +#include "mp4FastAAClib.h" +#include "config.h" + +class MP4Writer +{ +public: + MP4Writer(); + ~MP4Writer(); + + void AddAudioTrack(const HANDLE_MPEG4ENC_ENCODER encoder, const MPEG4ENC_SETUP *setup); + void WriteGaps(uint32_t pregap, uint32_t postgap, uint64_t totalSamples); + void WriteTool(const char *tool); + void Write(const void *buf, size_t size, MP4Duration duration); + void CloseTo(const wchar_t *filename); + + bool OK() { return true; } + + MP4TrackId mp4Track; + MP4FileHandle mp4File; + wchar_t tempfile[MAX_PATH]; +}; + |