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

型定義

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現在の再生速度