forked from avTranscoder/avTranscoder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAudioTransform.hpp
More file actions
41 lines (29 loc) · 862 Bytes
/
Copy pathAudioTransform.hpp
File metadata and controls
41 lines (29 loc) · 862 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
32
33
34
35
36
37
38
39
40
41
#ifndef _AV_TRANSCODER_ESSENCE_TRANSFORM_AUDIO_ESSENCE_TRANSFORM_HPP
#define _AV_TRANSCODER_ESSENCE_TRANSFORM_AUDIO_ESSENCE_TRANSFORM_HPP
#include "ITransform.hpp"
#include <AvTranscoder/data/decoded/AudioFrame.hpp>
#ifdef AVTRANSCODER_LIBAV_DEPENDENCY
#define ResampleContext AVAudioResampleContext
#else
#define ResampleContext SwrContext
#endif
struct ResampleContext;
namespace avtranscoder
{
class AvExport AudioTransform : public ITransform
{
private:
AudioTransform(const AudioTransform& audioTransform);
AudioTransform& operator=(const AudioTransform& audioTransform);
public:
AudioTransform();
~AudioTransform();
void convert(const IFrame& srcFrame, IFrame& dstFrame);
private:
bool init(const AudioFrame& src, const AudioFrame& dst);
private:
ResampleContext* _audioConvertContext;
bool _isInit;
};
}
#endif