Table of Contents

 
GetVolume
 

Purpose

Returns the volume level for the clip

 

Protoype

int CSoundMngr::GetVolume (string str_id)
 

Parameters

id the ID of the sound object to query
 

Description

This function queries a given sound object and extract's the clip's current volume level.

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;
int i_vol = sound.GetVolume("my_sound");
 

Prev: GetSFXPosition
Next: IsMuted