mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 21:48:46 +02:00
32 lines
640 B
C++
32 lines
640 B
C++
//
|
|
// AudioGate.h
|
|
// libraries/audio/src
|
|
//
|
|
// Created by Ken Cooke on 5/5/17.
|
|
// Copyright 2016 High Fidelity, Inc.
|
|
//
|
|
|
|
#ifndef hifi_AudioGate_h
|
|
#define hifi_AudioGate_h
|
|
|
|
#include <stdint.h>
|
|
|
|
class GateImpl;
|
|
|
|
class AudioGate {
|
|
public:
|
|
AudioGate(int sampleRate, int numChannels);
|
|
~AudioGate();
|
|
|
|
// interleaved int16_t input/output (in-place is allowed)
|
|
void render(int16_t* input, int16_t* output, int numFrames);
|
|
void removeDC(int16_t* input, int16_t* output, int numFrames);
|
|
|
|
void setThreshold(float threshold);
|
|
void setRelease(float release);
|
|
|
|
private:
|
|
GateImpl* _impl;
|
|
};
|
|
|
|
#endif // hifi_AudioGate_h
|