This repository has been archived on 2023-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
speex-webrtc-test/src/WebRTCDSP.h

30 lines
628 B
C++

#ifndef _WEBRTC_EFFECT_H_
#define _WEBRTC_EFFECT_H_
#include "AudioEffect.h"
namespace webrtc {
class AudioProcessing;
}
namespace SpeexWebRTCTest {
class WebRTCDSP final : public AudioEffect
{
Q_OBJECT
public:
WebRTCDSP(const QAudioFormat& mainFormat, const QAudioFormat& auxFormat);
~WebRTCDSP() override;
void processFrame(QAudioBuffer& mainBuffer, const QAudioBuffer& auxBuffer) override;
void setParameter(const QString& param, QVariant value) override;
private:
unsigned int requiredFrameSizeMs() const override;
webrtc::AudioProcessing* apm_;
};
} // namespace SpeexWebRTCTest
#endif // _WEBRTC_EFFECT_H_