AmbientSound QML Type
스테레오 오버레이 사운드. 더 보기...
| Import Statement: | import QtQuick3D.SpatialAudio |
속성
방법
상세 설명
AmbientSound는 위치 및 방향에 구애받지 않는 사운드를 나타냅니다. 이는 일반적으로 청취자의 위치나 방향과 무관하게 재생되어야 하는 배경음(예: 음악)에 사용됩니다.
속성 설명
autoPlay : bool
소스가 지정되면 소리가 자동으로 재생될지 여부를 결정합니다.
기본값은 ` true`입니다.
loops : int
플레이어가 중지되기 전까지 소리가 재생되는 횟수를 결정합니다. 현재 소리를 무한히 반복 재생하려면 QAmbienSound::Infinite로 설정하십시오.
기본값은 ` 1`입니다.
source : url
재생할 사운드의 소스 파일입니다.
volume : real
이 음원의 전체 음량을 설정합니다.
메서드 설명
void pause()
현재 위치에서 소리 재생을 일시 중지합니다. ` play()`를 호출하면 재생을 계속할 수 있습니다.
void play()
소리 재생을 시작합니다. 이미 소리가 재생 중이라면 아무 작업도 수행하지 않습니다.
void stop()
사운드 재생을 중지하고 현재 위치와 루프 횟수를 0으로 재설정합니다. ` play()`를 호출하면 사운드 파일의 시작 부분부터 재생을 시작합니다.
© 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.