blob: 4c7d3c77e8f5c964e866d7bd8e3a750271cd68be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#pragma once
class EncoderCallback {
public:
// writes to encoded audio to a stream, e.g., a file stream or broadcast stream
virtual void write(const unsigned char *header, const unsigned char *body,
int headerLen, int bodyLen) = 0;
// gets stream position
virtual int tell() = 0;
// sets stream position
virtual void seek(int pos) = 0;
// gets stream length
virtual int filelen() = 0;
};
|