restart(marker, position, volume, loop)
Restart the sound, or a marked section of it.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
marker | string | <optional> | '' | If you want to play a marker then give the key here, otherwise leave blank to play the full sound. |
position | number | <optional> | 0 | The starting position to play the sound from - this is ignored if you provide a marker. |
volume | number | <optional> | 1 | Volume of the sound you want to play. |
loop | boolean | <optional> | false | Loop when it finished playing? |
- Source code: sound/Sound.js (Line 743)
Please login to continue.