Set music position

From Bennu Wiki
Revision as of 06:02, 14 March 2012 by 82.74.128.190 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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_channel_volume()Set_distance()Set_music_position()Set_panning()Set_position()Set_song_volume()Set_Wav_Volume()Sound_close()Sound_init()Stop_song()Stop_wav()Unload_song()Unload_wav()