Table of Contents

 
GetSFXPosition
 

Purpose

Returns the position of the sfx clip in milliseconds

 

Protoype

int CSoundMngr::GetSFXPosition (string str_sfx)
 

Parameters

sfx the ID of the sfx object to query
 

Description

This function queries a sfx object and returns the position of the clip in milliseconds. Basically then this is the clip's elapsed play time.

 

Use

CSoundMngr sound;
int i_pos = sound.GetSFXSound("my_sfx");
 

Prev: GetSFXLength
Next: GetVolume