Overte C++ Documentation
AudioLimiter.h
1 //
2 // AudioLimiter.h
3 // libraries/audio/src
4 //
5 // Created by Ken Cooke on 2/11/15.
6 // Copyright 2016 High Fidelity, Inc.
7 //
8 
9 #ifndef hifi_AudioLimiter_h
10 #define hifi_AudioLimiter_h
11 
12 #include <stdint.h>
13 
14 class LimiterImpl;
15 
16 class AudioLimiter {
17 public:
18  AudioLimiter(int sampleRate, int numChannels);
19  ~AudioLimiter();
20 
21  void render(float* input, int16_t* output, int numFrames);
22 
23  void setThreshold(float threshold);
24  void setRelease(float release);
25 
26 private:
27  LimiterImpl* _impl;
28 };
29 
30 #endif // hifi_AudioLimiter_h