Table of Contents

 
SetSFXPosition
 

Purpose

Sets the clip at the specified position in milliseconds

 

Protoype

void CSoundMngr::SetSFXPosition (string str_sfx, int i_pos)
 

Parameters

sfx the ID of the sfx object to set
pos the position to set in milliseconds
 

Description

This function sets the position of the clip by modifying the play time. You must pass in the number of milliseconds from the start of the clip, not relative to it's current position.

 

Use

CSoundMngr sound;
sound.SetSFXPosition("my_sfx", 1022);
 

Prev: SetPriority
Next: SetVolume