MixMusic
Music operations
Operations
FadeInMusic
Fades in music
method : public : FadeInMusic(loops:Int, ms:Int) ~ Int
Parameters
Name | Type | Description |
---|---|---|
loops | Int | number of loops to play or -1 for infinite |
ms | Int | millisecond delay |
Return
Type | Description |
---|---|
Int | channel music is playing on |
FadeOutMusic
Fades out music
function : FadeOutMusic(ms:Int) ~ Int
Parameters
Name | Type | Description |
---|---|---|
ms | Int | millisecond delay |
Return
Type | Description |
---|---|
Int | number of channels fading out |
IsNull
Determines if the underlying SDL C-struct is NULL
method : public : IsNull() ~ Bool
Return
Type | Description |
---|---|
Bool | true if NULL, false otherwise |
Paused
Pauses music
function : Paused() ~ Bool
Return
Type | Description |
---|---|
Bool | true on success, false otherwise |
PlayMusic
Plays music
method : public : PlayMusic(loops:Int) ~ Int
Parameters
Name | Type | Description |
---|---|---|
loops | Int | number of loops to play or -1 for infinite |
Return
Type | Description |
---|---|
Int | channel music is playing on |
Playing
Plays music
function : Playing() ~ Bool
Return
Type | Description |
---|---|
Bool | true on success, false otherwise |