メインコンテンツまでスキップ

型定義

SeOptions​

フィールド型デフォルト説明
volumenumber1.0音量レベル(0.0--1.0)
speednumber1.0再生速度の倍率
panningnumber0.0ステレオパンニング(-1.0 左 〜 1.0 右)

BgmPlayOptions​

フィールド型デフォルト説明
loopbooleantrueループ再生
volumenumber1.0音量レベル(0.0--1.0)
speednumber1.0再生速度の倍率
fadeInFadeTween--フェードインのトランジション設定

BgmStopOptions​

フィールド型デフォルト説明
fadeOutFadeTween--フェードアウトのトランジション設定。省略すると即座に停止します。

BgmUpdateOptions​

フィールド型デフォルト説明
volumenumber--新しい音量レベル
speednumber--新しい再生速度
tweenFadeTween--変更のトランジション設定

FadeTween​

フィールド型デフォルト説明
durationSecsnumber--秒単位の持続時間
easingstring"linear""linear"、"easeIn"、"easeOut"、"easeInOut" のいずれか

BgmStatus​

フィールド型説明
assetstring | null現在のアセット ID。停止中の場合は null
statestring"playing"、"paused"、"stopped" のいずれか
loopbooleanループが有効かどうか
volumenumber現在の音量レベル
speednumber現在の再生速度