| Name | Type | Description |
|---|---|---|
kind |
SongKind | The kind of song to play |
json |
Object | optional Json object describing the play song |
Properties:
| Name | Type | Argument | Default | Description |
|---|---|---|---|---|
SystemPlaySong.previousMusic |
number |
<optional> |
null | The music that was previously played (before the current) |
SystemPlaySong.currentPlayingMusic |
number |
<optional> |
null | The current playing music |
kind |
SongKind | The kind of song to play | ||
songID |
SystemValue | The song ID value | ||
volume |
SystemValue | The volume value | ||
isStart |
boolean | Indicate if is start | ||
start |
SystemValue | The start value | ||
isEnd |
boolean | Indicate if is end | ||
end |
SystemValue | The end value |
Methods
-
Read the JSON associated to the play song
Name Type Description jsonObject Json object describing the play song -
Set song play to default values
-
Initialize (for music effects)
-
Update all the specified values
Name Type Description songIDSystemValue The song ID volumeSystemValue The volume to play isStartboolean Indicate if there's a start value startSystemValue The start of the song to play isEndboolean Indicate if there's a end value endSystemValue The end of the song to play -
Play the music
Name Type Description startnumber optional The start of the song to play volumenumber optional The volume to play -
Play the sound
-
Play the music effect and return the next node value
Name Type Description currentStateObject The current state of the playing music effect Returns:
Type Description number