mirror of
https://github.com/photonstorm/phaser
synced 2024-11-14 17:07:43 +00:00
Tidied up Sound.js
This commit is contained in:
parent
12b99a1ae1
commit
407f71b70e
1 changed files with 0 additions and 25 deletions
|
@ -258,31 +258,6 @@ Phaser.Sound.prototype = {
|
|||
|
||||
},
|
||||
|
||||
/**
|
||||
* Description.
|
||||
* @method Phaser.Sound#addMarker
|
||||
* @param {string} name - Description.
|
||||
* @param {Description} start - Description.
|
||||
* @param {Description} stop - Description.
|
||||
* @param {Description} volume - Description.
|
||||
* @param {Description} loop - Description.
|
||||
addMarker: function (name, start, stop, volume, loop) {
|
||||
|
||||
volume = volume || 1;
|
||||
if (typeof loop == 'undefined') { loop = false; }
|
||||
|
||||
this.markers[name] = {
|
||||
name: name,
|
||||
start: start,
|
||||
stop: stop,
|
||||
volume: volume,
|
||||
duration: stop - start,
|
||||
loop: loop
|
||||
};
|
||||
|
||||
},
|
||||
*/
|
||||
|
||||
/**
|
||||
* Adds a marker into the current Sound. A marker is represented by a unique key and a start time and duration.
|
||||
* This allows you to bundle multiple sounds together into a single audio file and use markers to jump between them for playback.
|
||||
|
|
Loading…
Reference in a new issue