HGE::Music_Play

Starts playing a music.

HCHANNEL Music_Play(
  HMUSIC music,
  bool loop
);

Parameters

music
Handle of a music to be played.
loop
If true, the music is looped until the audio channel is stopped manually.
If false the music is played once.

Return value

Returns the audio channel handle through which the music is played. Use this handle with audio channel control functions.

Remarks

Only one instance of a music can be played at the same time. If the music is already playing, it is restarted with default parameters.

Requirements

Header: hge.h
Import library: hge.lib

See also

Music_Load, Music_Free