#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. |
The 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 a channel that can be allocated for playing the sequence with that player by specifying with bit flag of the channel number. Shows channel 0, channel 1, channel 2 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 | Function |
|---|---|
| 0, 2 | Can playback PCM/ADPCM. Output from these channels can also be used for sound capture input. |
| 1, 3 | Can playback PCM/ADPCM. Because sound capture and the timer are shared, these channels can be used only for sound capture output when sound capture is used. |
| 4 〜 7 | Can playback PCM/ADPCM. These channels are used preferentially when playing back waveform data on sequence playback. |
| 8 〜 13 | Can playback PCM/ADPCM and PSG rectangular waveforms. |
| 14, 15 | Can playback PCM/ADPCM and white noise. |
NNS_SndArcGetPlayerInfo, NNS_SndArcPlayerSetup
01/05/2005 Added the allocChBitFlag member
.
06/01/2004 Initial version.