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 에 대한 공간 오디오 엔진용 리스너를 생성합니다.

[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()도 참조하세요 .

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