Table of Contents

 
GetMusicPosition
 

Purpose

Returns the position of the music clip in milliseconds

 

Protoype

int CSoundMngr::GetMusicPosition (string str_music)
 

Parameters

music the ID of the music object to query
 

Description

This function queries a music 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.GetMusicPosition("my_music");
 

Prev: GetMusicLength