nw::snd::SoundSystem::SoundSystemParam Structure

Header file: nw/snd/snd_SoundSystem.h

Syntax

struct SoundSystemParam
{
   s32 soundThreadPriority;
   s32 soundThreadCoreNo;
   size_t soundThreadStackSize;
   s32 taskThreadPriority;
   size_t taskThreadStackSize;
   bool autoCreateSoundThread;
   bool enableGetSoundThreadTick;
};

Description

Structure used to initialize the sound system.

Setting soundThreadCoreNo to 1 allows sound threads to be processed in the system core (Core 1).

Member Constants

S DEFAULT_SOUND_THREAD_PRIORITY The default priority for sound threads.
S DEFAULT_TASK_THREAD_PRIORITY The default priority for threads that load sound data.
S DEFAULT_SOUND_THREAD_STACK_SIZE The default stack size for sound threads.
S DEFAULT_TASK_THREAD_STACK_SIZE The default stack size for threads that load sound data.

Member Variables

soundThreadPriority Sound thread priority. The initial value is 4.
soundThreadCoreNo The sound thread core number. The initial value is 0.
soundThreadStackSize Size of the sound thread stack. Specify a value that is a multiple of 8. The default value is 16KB.
taskThreadPriority Sound data load thread priority. The initial value is 3.
taskThreadStackSize Stack size for threads that load sound data. Specify a value that is a multiple of 8. The default value is 16KB.
autoCreateSoundThread Flag indicating whether a sound thread is created automatically by Initialize. The initial value is true. If false, soundThreadStackSize and soundThreadPriorityare ignored.
enableGetSoundThreadTick Flag indicating whether to measure the sound thread processing load. The initial value is true. If false, GetSoundThreadTickCount does not function normally.

Member Functions

SoundSystemParam Constructor.

See Also

SoundSystem Class

Revision History

2010/09/24
Added the members soundThreadCoreNo and enableGetSoundThreadTick
2010/01/29
Changed the types of member variables (from u32 to size_t) and names (from romThread*** to taskThread***).
2010/01/15
Initial version.

CONFIDENTIAL