静态
auto静态
playback静态
use静态
music静态
music静态
muted静态
sound静态
sound静态
findThe URL of the sound file.
The SoundChannel object corresponding to the URL, or null if not found.
静态
playThe URL of the sound file.
可选
loops: numberThe number of times to loop the music. 0 means infinite loop. Default is 1.
可选
complete: ((success: boolean) => void)The callback function when the music playback is complete. The result parameter is true if playback is completed, false/undefined if triggered by stop.
可选
startTime: numberThe start time of the music playback. In seconds.
A SoundChannel object, through which you can control the sound and get sound information.
可选
loops: number可选
complete: Handler可选
startTime: number静态
playThe URL of the sound file.
可选
loops: numberThe number of times to loop the sound. 0 means infinite loop.
可选
complete: (() => void)The callback function when the sound playback is complete.
可选
startTime: numberThe start time of the sound playback. In seconds.
A SoundChannel object, through which you can control the sound and get sound information.
可选
loops: number可选
complete: Handler可选
startTime: number可选
loops: number可选
complete: Handler可选
soundClass: (new () => any)可选
startTime: number静态
set静态
set静态
stop静态
stop静态
stop静态
stop
En
The
SoundManager
is a sound management class. It provides control methods for playing background music and sound effects.Zh
SoundManager
是一个声音管理类。提供了对背景音乐、音效的播放控制方法。Blueprintable