mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +00:00
New Audio Decode type
This commit is contained in:
parent
f2c2c93499
commit
a124580930
1 changed files with 12 additions and 0 deletions
12
src/sound/typedefs/DecodeAudioConfig.js
Normal file
12
src/sound/typedefs/DecodeAudioConfig.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
/**
|
||||
* A Audio Data object.
|
||||
*
|
||||
* You can pass an array of these objects to the WebAudioSoundManager `decodeAudio` method to have it decode
|
||||
* them all at once.
|
||||
*
|
||||
* @typedef {object} Phaser.Types.Sound.DecodeAudioConfig
|
||||
* @since 3.18.0
|
||||
*
|
||||
* @property {string} key - The string-based key to be used to reference the decoded audio in the audio cache.
|
||||
* @property {(ArrayBuffer|string)} data - The audio data, either a base64 encoded string, an audio media-type data uri, or an ArrayBuffer instance.
|
||||
*/
|
Loading…
Add table
Reference in a new issue