Table of Contents

 
GetPan
 

Purpose

Returns the pan setting for the clip

 

Protoype

int CSoundMngr::GetPan (string str_id)
 

Parameters

id the ID of the sound object to query
 

Description

This function queries a sound ojbect and extracts the current pan setting of the object.

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_pan = sound.GetPan("my_sound");
 

Prev: GetNumSFX