one | Title | Data | Data Name | No |
Model name | explanation |
---|---|
Uint8 | An unsigned 1-byte integer. |
Sint8 | Signed 1-byte integer. |
Uint16 | An unsigned 2-byte integer. |
Sint16 | Signed 2-byte integer. |
Uint32 | An unsigned 4-byte integer. |
Sint32 | Signed 4-byte integer. |
Bool | Logical type. Takes the following values. |
one | Title | Data | Data Name | No |
constant name | explanation |
---|---|
PCM_ERR_OK | no error occurred |
PCM_ERR_OUT_OF_HANDLE | Handle sold out |
PCM_ERR_NO_INIT | Initialization function not called |
PCM_ERR_INVALID_HN | Erase with invalid handle |
PCM_ERR_ILL_CREATE_MODE | Different from the mode when creating |
PCM_ERR_TOO_LARGE_HEADER | Header is too large |
PCM_ERR_HEADER_DATA | header data error |
PCM_ERR_AFI_NO_COMMON | There is no CommonChunk |
PCM_ERR_AFI_COMMPRESS | Unsupported compression type |
PCM_ERR_NOT_DECLARE_ADPCM | ADPCM use has not been declared |
PCM_ERR_ILLEGAL_PARA | Incorrect argument specification |
PCM_ERR_ILLEGAL_HANDLE | The handle is abnormal |
PCM_ERR_NEXT_HN_STATUS | Abnormal status of continuous playback handle |
PCM_ERR_NEXT_HN_AUDIO | Audio conditions do not match |
PCM_ERR_CHANGE_NO_ENTRY | Changed without an entry |
PCM_ERR_PAUSE_STATUS | PCM_STAT_PLAY_TIME or |
PCM_ERR_PAUSE_WORK_NULL | Pose processing work abnormality |
PCM_ERR_PAUSE_WORK_SIZE | Pose processing work abnormality |
PCM_ERR_PAUSE_WORK_SET | Invalid work specification for pose processing |
PCM_ERR_DMA_MODE | Unsupported transfer method |
PCM_ERR_DMA_CPU_PCM | DMA terminated abnormally |
PCM_ERR_GFS_READ | Failed to read GFS |
PCM_ERR_RING_SUPPLY | The ring buffer was supplied after playback was completed. |
PCM_ERR_TOO_SMALL_PCMBUF | PCM buffer too small |
PCM_ERR_ILL_SIZE_PCMBUF | Invalid PCM buffer size |
one | Title | Data | Data Name | No |
constant name | explanation |
---|---|
PCM_STAT_PLAY_ERR_STOP | Abnormal stop |
PCM_STAT_PLAY_CREATE | generation state |
PCM_STAT_PLAY_PAUSE | pause |
PCM_STAT_PLAY_START | Start playing |
PCM_STAT_PLAY_HEADER | Header processing state |
PCM_STAT_PLAY_TIME | Playing (timer start) |
PCM_STAT_PLAY_END | End of playback |
one | Title | Data | Data Name | No |
constant name | explanation |
---|---|
PCM_PAUSE_ON_AT_ONCE | Immediate pause |
PCM_PAUSE_OFF | Cancel pause |
one | Title | Data | Data Name | No |
constant name | explanation |
---|---|
PCM_CHANGE_OK_AT_ONCE | Immediate forced switching is possible. |
PCM_CHANGE_NO_DATA | Data supply is insufficient. Forced switch |
PCM_CHANGE_NO_ENTRY | The next handle is registered with PCM_EntryNext. |
one | Title | Data | Data Name | No |
constant name | explanation |
---|---|
PCM_TRMODE_CPU | software transfer |
PCM_TRMODE_SDMA | CPU DMA (cycle steal) |
PCM_TRMODE_SCU | SCU DMA |
one | Title | Data | Data Name | No |
one | Title | Data | Data Name | No |
typedef struct { PcmWork *work; /* Start address of work */ /* Working area when this library plays */ Sint32 *ring_addr; /* Ring buffer address */ /* When playing data in memory, use its address */ Sint32 ring_size; /* Ring buffer size [byte] */ /* File size when playing data in memory */ Sint32 *pcm_addr; /* Sound memory PCM buffer address */ Sint32 pcm_size; /* PCM buffer size of sound memory [sample/1ch] */ } PcmCreatePara;
Playback conditions | PCM buffer size (bytes) |
---|---|
8bit monaural | S[byte] |
8bit stereo | 2×S [byte] |
16bit monaural | 2×S [byte] |
16bit stereo | 4×S [byte] |
one | Title | Data | Data Name | No |
obj | :Registered object |
err_code | :Error code |
one | Title | Data | Data Name | No |
typedef struct { PcmFileType file_type; /* File type */ PcmDataType data_type; /* Data type */ Sint32 file_size; /* file size[byte] * Allows more link buffers to be supplied * but does not process that part. */ Sint32 channel; /* Number of channels */ Sint32 sampling_bit; /* Number of sampling bits */ Sint32 sampling_rate; /* Sampling rate[Hz] */ Sint32 sample_file; /* Number of samples in file[sample/1ch]*/ Sint32 compression_type; /* Compression type */ } PcmInfo;