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)
오디오 format 와 parent 를 사용하여 새 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.