nw::snd::SoundSystem::SetMaxVoiceCount Member Function

Syntax

#include <nw/snd/snd_SoundSystem.h>
static void SetMaxVoiceCount(
     int count
);

Arguments

Name Description
in count Maximum voice count.

Return Values

None.

Description

Sets the maximum number of voices to use with the sound library.

This must be called before Initialize.

The maximum value that can be set is NN_SND_VOICE_NUM. This is the same as the default value that can be obtained by calling GetMaxVoiceCount.

The sound processing load can be kept in check by reducing the maximum voice count.

The maximum voice count must be set to a value between 1 and NN_SND_VOICE_NUM, inclusive. If a value outside of this range is specified, Debug or Development builds will halt on an assertion, and Release builds will clamp the specified value to the nearest point in the range [1, NN_SND_VOICE_NUM].

See Also

Initialize
GetVoiceCount
GetMaxVoiceCount

Revision History

2010/05/14
Changed the name of the function from SetVoiceMaxCount to SetMaxVoiceCount, and added a description of the assertion conditions.
2010/04/23
Initial version.

CONFIDENTIAL