SetPriority

nn::snd::CTR::Voice::SetPriority Member Function

Syntax

void SetPriority(
     s32 priority
);

Arguments

Name Description
in priority Priority

Return Values

None.

Description

Sets the priority of a voice.

The priority takes a value between 0 (the lowest) and VOICE_PRIORITY_NODROP (the highest).

The priority affects the behavior when getting voices and when controlling the DSP processing load. See the description of the nn::snd::CTR::AllocVoice function.

Among voices that are set to the same level of priority, the voice that was set last takes the highest priority. Because the nn::snd::CTR::AllocVoice function sets the level of priority internally, that function is also included in the above description.

Revision History

2011/07/11
Laxened restrictions.
2011/05/26
Added mention of the ordering of voices set to the same priority level.
2010/10/21
Added restrictions specific to priority and revised operations that can affect priority.
2010/01/29
Initial version.

CONFIDENTIAL