HTML5 Audio を扱う静的クラス。
関連クラス: CacheEntry, SoundManager, WebAudio, RPG.AudioFile
Name | Type | Description |
---|---|---|
url |
String | [read-only] The url of the audio file. |
volume |
Number | The volume of the audio. |
_initialized |
Boolean | |
_unlocked |
Boolean | |
_audioElement |
HTMLAudioElement | |
_gainTweenInterval |
Number | |
_tweenGain |
Number | |
_tweenTargetGain |
Number | |
_tweenGainStep |
Number | |
_staticSePath |
Boolean | |
_volume |
Number | |
_loadListeners |
Array.<function()> | |
_hasError |
Boolean | |
_autoPlay |
Boolean | |
_isLoading |
Boolean | |
_buffered |
Boolean |
Name | Type | Description |
---|---|---|
volume |
Number |
Name | Type | Description |
---|---|---|
url |
String |
Name | Type | Description |
---|---|---|
loop |
Boolean | |
offset |
Number |
Add a callback function that will be called when the audio data is loaded.
Name | Type | Description |
---|---|---|
listner |
function | The callback function |
Clears the audio data.
Performs the audio fade-in.
Name | Type | Description |
---|---|---|
duration |
Number | Fade-in time in seconds |
Performs the audio fade-out.
Name | Type | Description |
---|---|---|
duration |
Number | Fade-out time in seconds |
Initializes the audio system.
Checks whether a loading error has occurred.
Checks whether the audio is playing.
Checks whether the audio data is ready to play.
Plays the audio.
Name | Type | Description |
---|---|---|
loop |
Boolean | Whether the audio data play in a loop |
offset |
Number | The start position to play in seconds |
Gets the seek position of the audio.
Set the URL of static se.
Name | Type | Description |
---|---|---|
url |
String |
Sets up the Html5 Audio.
Name | Type | Description |
---|---|---|
url |
String | The url of the audio file |
Stops the audio.