QAudioInput Class

オーディオの入力チャンネルを表す。詳細...

ヘッダ #include <QAudioInput>
CMake: find_package(Qt6 REQUIRED COMPONENTS Multimedia)
target_link_libraries(mytarget PRIVATE Qt6::Multimedia)
qmake QT += multimedia
QML で AudioInput
継承: QObject

プロパティ

パブリック機能

QAudioDevice device() const
bool isMuted() const
float volume() const

パブリックスロット

void setDevice(const QAudioDevice &device)
void setMuted(bool muted)
void setVolume(float volume)

シグナル

void deviceChanged()
void mutedChanged(bool muted)
void volumeChanged(float volume)

詳細説明

このクラスは、QMediaCaptureSession とともに使用できる入力チャンネルを表します。 使用する物理入力デバイスの選択、チャンネルのミュート、チャンネルのボリュームの変更が可能です。

プロパティ ドキュメント

device : QAudioDevice

このプロパティは、この入力に接続されているオーディオデバイスを保持する。

device プロパティは、この入力に接続されているオーディオデバイスを表す。このプロパティを使用して、QMediaDevices::audioInputs() リストから入力デバイスを選択することができます。

このプロパティをデフォルトで構築されたQAudioDevice オブジェクトに設定することで、システムのデフォルト・オーディオ入力を選択することができます。

アクセス関数:

QAudioDevice device() const
void setDevice(const QAudioDevice &device)

ノーティファイア信号:

void deviceChanged()

muted : bool

このプロパティは、現在のメディアのミュート状態を保持する。

入力がミュートされていれば値はtrue 、そうでなければfalse

アクセス関数:

bool isMuted() const
void setMuted(bool muted)

ノーティファイアシグナル:

void mutedChanged(bool muted)

volume : float

このプロパティは、オーディオ入力の音量を返す。

アクセス関数

float volume() const
void setVolume(float volume)

ノーティファイア信号

void volumeChanged(float volume)

© 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.