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
생성자에서 지정된 오디오 형식을 가져옵니다.
포맷이 유효한 경우, 출력 오디오 버퍼의 포맷을 지정합니다.
© 2026 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.