1
0

MP4Writer.h 549 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include <mp4.h>
  3. #include "mp4FastAAClib.h"
  4. #include "config.h"
  5. class MP4Writer
  6. {
  7. public:
  8. MP4Writer();
  9. ~MP4Writer();
  10. void AddAudioTrack(const HANDLE_MPEG4ENC_ENCODER encoder, const MPEG4ENC_SETUP *setup);
  11. void WriteGaps(uint32_t pregap, uint32_t postgap, uint64_t totalSamples);
  12. void WriteTool(const char *tool);
  13. void Write(const void *buf, size_t size, MP4Duration duration);
  14. void CloseTo(const wchar_t *filename);
  15. bool OK() { return true; }
  16. MP4TrackId mp4Track;
  17. MP4FileHandle mp4File;
  18. wchar_t tempfile[MAX_PATH];
  19. };