QAudioBufferOutput Class

QAudioBufferOutput クラスは、QMediaPlayer によって提供されるオーディオ・データをキャプチャするために使用されます。詳細...

ヘッダ #include <QAudioBufferOutput>
CMake: find_package(Qt6 REQUIRED COMPONENTS Multimedia)
target_link_libraries(mytarget PRIVATE Qt6::Multimedia)
qmake: QT += multimedia
以来:Qt 6.8
継承: QObject

パブリック関数

QAudioBufferOutput(QObject *parent = nullptr)
QAudioBufferOutput(const QAudioFormat &format, QObject *parent = nullptr)
virtual ~QAudioBufferOutput() override
QAudioFormat format() const

シグナル

void audioBufferReceived(const QAudioBuffer &buffer)

詳細説明

QAudioBufferOutputは、メディアプレーヤーによってデコードされたオーディオバッファを受信するために、QMediaPlayer 。受信したオーディオデータは、任意の処理や視覚化に使用できます。

QAudioBufferOutputは、FFmpegバックエンドでのみサポートされています。

QMediaPlayer,QMediaPlayer::setAudioBufferOutput,QAudioBufferも参照してください

メンバー関数ドキュメント

[explicit] QAudioBufferOutput::QAudioBufferOutput(QObject *parent = nullptr)

parent で新しい QAudioBufferOutput オブジェクトを構築します。

出力オーディオバッファのオーディオフォーマットは、ソースメディアファイルとQMediaPlayer の内部オーディオデコーダーに依存します。

[explicit] QAudioBufferOutput::QAudioBufferOutput(const QAudioFormat &format, QObject *parent = nullptr)

オーディオformatparent で新しい QAudioBufferOutput オブジェクトを構築します。

指定されたformat が有効な場合、それが出力オーディオバッファのフォーマットになります。そうでない場合、出力オーディオバッファのフォーマットは、ソースメディアファイルとQMediaPlayer の内部オーディオデコーダに依存します。

[override virtual noexcept] QAudioBufferOutput::~QAudioBufferOutput()

オーディオ・バッファ出力オブジェクトを破棄する。

[signal] void QAudioBufferOutput::audioBufferReceived(const QAudioBuffer &buffer)

QMediaPlayer から新しいオーディオbuffer を受信したことを示す。

QAudioFormat QAudioBufferOutput::format() const

コンストラクタで指定したオーディオフォーマットを取得します。

フォーマットが有効な場合は、出力する oudio バッファのフォーマットを指定します。

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.