Table of Contents

 
IsPlaying
 

Purpose

Returns whether the clip is playing or not

 

Protoype

bool CSoundMngr::IsPlaying (string str_id)
 

Parameters

id the ID of the sound object to query
 

Description

This function returns the value of the sound object's play flag. If the sound clip is playing, then the function returns TRUE, otherwise it returns FALSE.

NOTE: This is a channel function, which means it can be used for both music and sfx objects. The function itself will handle distinguishing between the two.

 

Use

CSoundMngr sound;
if (sound.IsPlaying("my_sound"))
    // sound is playing
 

Prev: IsPaused