Class AudioRecorder#

Inheritance Relationships#

Base Type#

  • public QObject

Class Documentation#

class AudioRecorder : public QObject#

Public Functions

explicit AudioRecorder(const MicrophoneParameters &params, QObject *parent = nullptr)#
~AudioRecorder() override#
bool start(const QString &filePath)#
void stop()#
bool is_recording() const#
float level_rms() const#
double duration_sec() const#

Signals

void level_rms_changed(float rms)#
void envelope_changed(float minSample, float maxSample)#
void raw_pcm_ready(QByteArray pcm16, int sampleRate, int channels)#
void error_occurred(QString message)#