struct SoundSystemParam
{
s32 soundThreadPriority;
s32 soundThreadCoreNo;
size_t soundThreadStackSize;
s32 taskThreadPriority;
size_t taskThreadStackSize;
bool autoCreateSoundThread;
bool enableGetSoundThreadTick;
};
Structure used to initialize the sound system.
Setting soundThreadCoreNo to 1 allows sound threads to be processed in the system core (Core 1).
| 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. |
| 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. |
| SoundSystemParam | Constructor. |
|---|
SoundSystem Class
CONFIDENTIAL