AmbientSound QML Type

ステレオ・オーバーレイ・サウンド。詳細...

Import Statement: import QtQuick3D.SpatialAudio

プロパティ

方法

詳細説明

AmbientSoundは、位置や向きに依存しないサウンドを表します。リスナーの位置や向きに依存しないバックグラウンドサウンド(音楽など)によく使われる。

プロパティ 説明

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.