Web Audio API を使った音声データ。
静的メソッドも多く、ユーティリティとしての利用も多い。
関連クラス: CacheEntry, SoundManager, Html5Audio, RPG.AudioFile
Name | Type | Description |
---|---|---|
url |
String | The url of the audio file |
Name | Type | Description |
---|---|---|
url |
String | [read-only] 音声ファイルの URL |
volume |
Number | The volume of the audio. |
pitch |
Number | The pitch of the audio. |
pan |
Number | The pan of the audio. |
_context |
AudioContext | |
_masterGainNode |
GainNode | |
_initialized |
Boolean | |
_unlocked |
Boolean |
Name | Type | Description |
---|---|---|
duration |
Number |
Name | Type | Description |
---|---|---|
duration |
Number |
Name | Type | Description |
---|---|---|
url |
String |
Name | Type | Description |
---|---|---|
xhr |
XMLHttpRequest |
Name | Type | Description |
---|---|---|
array |
Uint8Array | |
index |
Number |
Name | Type | Description |
---|---|---|
array |
Uint8Array | |
index |
Number |
Name | Type | Description |
---|---|---|
array |
Uint8Array | |
index |
Number |
Name | Type | Description |
---|---|---|
array |
Uint8Array |
Name | Type | Description |
---|---|---|
array |
Uint8Array | |
index |
Number | |
size |
Number |
Name | Type | Description |
---|---|---|
array |
Uint8Array |
Name | Type | Description |
---|---|---|
array |
Uint8Array |
Name | Type | Description |
---|---|---|
loop |
Boolean | |
offset |
Number |
Checks whether the browser can play m4a files.
Checks whether the browser can play ogg files.
Initializes the audio system.
Name | Type | Description |
---|---|---|
noAudio |
Boolean | Flag for the no-audio mode |
Sets the master volume of the all audio.
Name | Type | Description |
---|---|---|
value |
Number | Master volume (min: 0, max: 1) |
Add a callback function that will be called when the audio data is loaded.
Name | Type | Description |
---|---|---|
listner |
function | The callback function |
Add a callback function that will be called when the playback is stopped.
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 |
オブジェクト生成時の初期化。
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.
Stops the audio.