sound_get_position(ind)

From ENIGMA
Jump to navigation Jump to search

Description

Gets the current playback position of the given sound and returns the result.

Parameters

Parameter Data Type Description
ind integer index of the sound

Return Values

float: Returns the playback position of the sound.

Example Call

// demonstrates getting the playback position of a sound
var pos;
pos = sound_get_position(snd_shoot);