Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QAudioRecorder



  • how i can recorde audio in another thread with QAudioRecord?
    QAudioRecorder inherits QMediaRecorder. But in QMediaRecorder::record() inly correct settings and change state.

    void QMediaRecorder::record()
    {
        Q_D(QMediaRecorder);
        d->actualLocation.clear();
        if (d->settingsChanged)
            d->_q_applySettings();
        // reset error
        d->error = NoError;
        d->errorString = QString();
        if (d->control)
            d->control->setState(RecordingState);
    }
    

    where does the recording take place?


  • Lifetime Qt Champion

    Hi,

    In the backend plugin corresponding to your platform.

    QAudioRecorder being a QObject you can try the moveToThread technique.


Log in to reply