#include <nnsys/snd.h>
typedef struct NNSSndArcPlayerInfo
{
u8 seqMax;
u8 padding;
u16 allocChBitFlag;
u32 heapSize;
} NNSSndArcPlayerInfo;
seqMax |
The maximum number of player sequences to allow at one time. |
padding |
The padding. |
allocChBitFlag |
This is an allocatable channel bit flag. |
heapSize |
The size of the player heap. |
Player information structure in the sound archive.
This structure can be obtained from the sound archive by using the NNS_SndArcGetPlayerInfo
function.
The NNS_SndArcPlayerSetup
function sets up the player based on this information.
allocChBitFlag
specifies the channels that can be allocated for playing sequences with that player with a bit flag of the channel numbers. It represents channel 0, channel 1, channel 2, and so on in order from the lowest bit, and only allows for allocation from channels that have active bits. There are no limitations where the value is 0, and allocation can be performed from all channels.
There are 16 channels. The features of the channels differ depending on the channel number, as indicated below:
Table: Use of each channel and its functionality
Channel Number | Features |
---|---|
0, 2 | Can play PCM/ADPCM. Output from these channels can also be used for input to sound capture. |
1, 3 | Can play PCM/ADPCM. Because these channels share sound capture and timer, when sound capture is used these channels can only be used as sound capture output channels. |
4 ~ 7 | Can play PCM/ADPCM. These channels are used preferentially when playing back waveform data on sequence playback. |
8 ~ 13 | Can play PCM/ADPCM and PSG square waves. |
14, 15 | Can play PCM/ADPCM and white noise. |
NNS_SndArcGetPlayerInfo, NNS_SndArcPlayerSetup
2005/01/05 Added the allocChBitFlag
member.
2004/06/01 Initial version.
CONFIDENTIAL