blob: 5ae6ea067b7d352324145f1c2af978da9e0701c9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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];
};
|