Table of Contents

 
SetMusicPosition
 

Purpose

Sets the clip at the specified position in milliseconds

 

Protoype

void CSoundMngr::SetMusicPosition (string str_music, int i_pos)
 

Parameters

music the ID of the music 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.SetMusicPosition("my_music", 1022);
 

Prev: Reserve
Next: SetPan