AmbientSound QML Type

스테레오 오버레이 사운드. 더 보기...

Import Statement: import QtQuick3D.SpatialAudio

속성

방법

상세 설명

앰비언트사운드는 위치와 방향에 독립적인 사운드를 나타냅니다. 일반적으로 청취자의 위치 및 방향과 무관해야 하는 배경 사운드(예: 음악)에 사용됩니다.

프로퍼티 문서

autoPlay : bool

소스가 지정되면 자동으로 사운드 재생을 시작할지 여부를 결정합니다.

기본값은 true 입니다.


loops : int

플레이어가 중지되기 전에 사운드가 재생되는 빈도를 결정합니다. 현재 사운드를 영원히 반복하려면 QAmbienSound::Infinite로 설정합니다.

기본값은 1 입니다.


source : url

재생할 사운드의 소스 파일입니다.


volume : real

이 음원의 전체 볼륨을 정의합니다.


메서드 문서

pause()

현재 위치에서 사운드 재생을 일시 중지합니다. play ()를 호출하면 재생이 계속됩니다.


play()

사운드 재생을 시작합니다. 사운드가 이미 재생 중이면 아무 작업도 수행하지 않습니다.


stop()

사운드 재생을 중지하고 현재 위치와 루프 횟수를 0으로 초기화합니다. play()를 호출하면 사운드 파일의 시작 부분에서 재생이 시작됩니다.


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