Table of Contents

 
GetPriority
 

Purpose

Returns the priority level for the clip

 

Protoype

int CSoundMngr::GetPriority (string str_id)
 

Parameters

id the ID of the sound object to query
 

Description

This function queries the given sound object and extracts the clip's current channel priority setting. This setting determines whether a clip will be bumped out of a channel if all channels are full. The clip with the lowest priority will be bumped first.

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

Prev: GetPan