Function createCachedAudio
- createCachedAudio(): {
createAudio(parent, audioSrc, volume?) => HTMLAudioElement;
getAudio() => undefined | HTMLAudioElement;
}
-
Returns {
createAudio(parent, audioSrc, volume?) => HTMLAudioElement;
getAudio() => undefined | HTMLAudioElement;
}
-
createAudio:function
- createAudio(parent, audioSrc, volume?): HTMLAudioElement
-
Parameters
-
parent: HTMLElement
-
audioSrc: string
-
volume: number = 0.03
Returns HTMLAudioElement
-
getAudio:function
- getAudio(): undefined | HTMLAudioElement
-
Returns undefined | HTMLAudioElement