QAudioListener Class
QAudioEngine 로 정의된 음장을 듣고 있는 사람의 위치와 방향을 정의합니다. 더 보기...
| 헤더: | #include <QAudioListener> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS SpatialAudio) target_link_libraries(mytarget PRIVATE Qt6::SpatialAudio) |
| qmake: | QT += spatialaudio |
| 상속: | QObject |
공개 함수
| QAudioListener(QAudioEngine *engine) | |
| virtual | ~QAudioListener() override |
| QAudioEngine * | engine() const |
| QVector3D | position() const |
| QQuaternion | rotation() const |
| void | setPosition(QVector3D pos) |
| void | setRotation(const QQuaternion &q) |
상세 설명
QAudioEngine 는 음장을 청취하는 사람의 위치와 방향을 정의하는 리스너를 정확히 하나만 가질 수 있습니다.
멤버 함수 설명
[explicit] QAudioListener::QAudioListener(QAudioEngine *engine)
engine 용 공간 오디오 엔진 리스너를 생성합니다.
참고: 유효한 QAudioEngine
[override virtual noexcept] QAudioListener::~QAudioListener()
리스너를 삭제합니다.
QAudioEngine *QAudioListener::engine() const
이 리스너와 연결된 엔진을 반환합니다.
QVector3D QAudioListener::position() const
리스너의 현재 위치를 반환합니다.
setPosition()도 참조하십시오 .
QQuaternion QAudioListener::rotation() const
3D 공간에서 리스너의 방향을 반환합니다.
setRotation()도 참조하십시오 .
void QAudioListener::setPosition(QVector3D pos)
3D 공간에서 청취자의 위치를 pos 로 설정합니다. 기본 단위는 센티미터입니다.
position() 및 QAudioEngine::distanceScale도 참조하십시오 .
void QAudioListener::setRotation(const QQuaternion &q)
3D 공간에서 리스너의 방향을 ‘ q ’로 설정합니다.
rotation()도 참조하십시오 .
© 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.