Packages
SDL2_mixer
SDLMixer
Music
fade_out
get_hook_data
halt
hook_finished
hook_mixer
is_fading
is_paused
is_playing
pause
position
resume
rewind
set_play_command
volume
Music
Music.RW
fade_in
play
type
Music
Object Hierarchy:
SDLMixer.Music
SDLMixer.Music
SDLMixer.Music
Description:
[
CCode
( cname =
"Mix_Music"
, free_function =
"Mix_FreeMusic"
) ]
[
Compact
]
public
class
Music
Namespace:
SDLMixer
Package:
SDL2_mixer
Content:
Static methods:
public
static
int
fade_out
(
int
ms)
public
static
void
*
get_hook_data
()
public
static
int
halt
()
public
static
void
hook_finished
(
MusicFinishedCallback
cb)
public
static
void
hook_mixer
(
MixFunction
? f)
public
static
FadeStatus
is_fading
()
public
static
bool
is_paused
()
public
static
bool
is_playing
()
public
static
void
pause
()
public
static
int
position
(
double
position)
public
static
void
resume
()
public
static
void
rewind
()
public
static
int
set_play_command
(
string
command)
public
static
int
volume
(
int
num)
Creation methods:
public
Music
(
string
file)
public
Music.RW
(
RWops
rw,
bool
freesrc)
Methods:
public
int
fade_in
(
int
loops,
int
ms,
double
position =
0.0
)
public
int
play
(
int
loops)
public
MusicType
type
()