forked from avTranscoder/avTranscoder
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathAudioDecoder.hpp
More file actions
31 lines (21 loc) · 707 Bytes
/
Copy pathAudioDecoder.hpp
File metadata and controls
31 lines (21 loc) · 707 Bytes
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
26
27
28
29
30
31
#ifndef _AV_TRANSCODER_ESSENCE_STREAM_AV_INPUT_AUDIO_HPP_
#define _AV_TRANSCODER_ESSENCE_STREAM_AV_INPUT_AUDIO_HPP_
#include "IDecoder.hpp"
namespace avtranscoder
{
class InputStream;
class AvExport AudioDecoder : public IDecoder
{
public:
AudioDecoder(InputStream& inputStream);
~AudioDecoder();
void setupDecoder(const ProfileLoader::Profile& profile = ProfileLoader::Profile());
bool decodeNextFrame(IFrame& frameBuffer);
bool decodeNextFrame(IFrame& frameBuffer, const std::vector<size_t> channelIndexArray);
void flushDecoder();
private:
InputStream* _inputStream; ///< Stream from which we read next frames (no ownership, has link)
bool _isSetup;
};
}
#endif