blob: b9912ae13ae10e41af8365498771ef5806eb8873 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#ifndef ENCODERCALLBACK_H
#define ENCODERCALLBACK_H
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;
};
#endif /* ENCODERCALLBACK_H */
|