Music operations
OperationsFades in music
method : public : FadeInMusic(loops:Int, ms:Int) ~ Int
Name | Type | Description |
---|---|---|
loops | Int | number of loops to play or -1 for infinite |
ms | Int | millisecond delay |
Type | Description |
---|---|
Int | channel music is playing on |
Fades out music
function : FadeOutMusic(ms:Int) ~ Int
Name | Type | Description |
---|---|---|
ms | Int | millisecond delay |
Type | Description |
---|---|
Int | number of channels fading out |
Free the memory used in chunk, and free chunk itself as well.
method : public : Free() ~ Nil
Gets music volume between 0 - 128
function : GetVolumeMusic() ~ Int
Halts music
function : Halt() ~ Nil
Determines if the underlying SDL C-struct is NULL
method : public : IsNull() ~ Bool
Type | Description |
---|---|
Bool | true if NULL, false otherwise |
Pauses music
function : Pause() ~ Nil
Pauses music
function : Paused() ~ Bool
Type | Description |
---|---|
Bool | true on success, false otherwise |
Plays music
method : public : PlayMusic(loops:Int) ~ Int
Name | Type | Description |
---|---|---|
loops | Int | number of loops to play or -1 for infinite |
Type | Description |
---|---|
Int | channel music is playing on |
Plays music
function : Playing() ~ Bool
Type | Description |
---|---|
Bool | true on success, false otherwise |
Resumes music
function : Resume() ~ Nil
Sets music volume
function : VolumeMusic(volume:Int) ~ Int
Name | Type | Description |
---|---|---|
volume | Int | volume between 0 - 128 |
Type | Description |
---|---|
Int | set volume |