28 lines
435 B
JavaScript
28 lines
435 B
JavaScript
|
|
class SoundSnippet{
|
|
|
|
/**
|
|
* Load a sound asset to a snipper
|
|
* @param {string} asset_name Asset name as defined in soundassetmap.js
|
|
*/
|
|
constructor(asset_name) {
|
|
|
|
}
|
|
|
|
/**
|
|
* Cache this sound, then notify a callback of completion
|
|
* @param {function} callback callback to notify
|
|
*/
|
|
cache(callback) {
|
|
|
|
}
|
|
|
|
|
|
play() {
|
|
|
|
}
|
|
|
|
stop() {
|
|
|
|
}
|
|
} |