Set music position

From Bennu Wiki
Jump to: navigation, search


Definition

INT set_music_position ( <FLOAT position> )

Set the position of the currently playing music, loaded with Load_song() and played with Play_song() It only works with the formats supported by those functions. It does not apply to wave files.

Parameters

FLOAT position - Jumps to position seconds from the beginning of the song.

Returns

INT : Status.

position - The position in the music.
-1 - Error: sound inactive.


Sound Functions
Fade_music_in()Fade_music_off()Is_playing_song()Is_playing_wav()Load_song()Load_wav()Pause_song()Pause_wav()Play_song()Play_wav()Reserve_channels()Resume_song()Resume_wav()Reverse_stereo()Set_Wav_Volume()Set_channel_volume()Set_distance()Set_music_position()Set_panning()Set_position()Set_song_volume()Sound_close()Sound_init()Stop_song()Stop_wav()Unload_song()Unload_wav()