HGE::Channel_GetPos

Retrieves a playing channel's position.

float Channel_GetPos(
  HCHANNEL channel
);

Parameters

channel
Handle of an audio channel to be queried.

Return value

If successful, returns the time elapsed since the channel started playing, in seconds. Otherwise, returns -1.

Remarks

After you stop a channel, you can no longer query its position.

If the channel is looping, this function will return ever-increasing values even after playback has reached the end of the channel.

Requirements

Header: hge.h
Import library: hge.lib

See also

Channel_SetPos, Channel_GetLength