Item | specification | remarks |
---|---|---|
sampling frequency | up to 44.1kHz | |
Quantization bit number | 8bit,16bit | |
Number of channels | monaural, stereo | |
file format | AIFF format | PCM uncompressed ADPCM compression ADPCM compression PCM uncompressed |
CD-ROM format | For CD-ROM XA Audio format | |
play mode | Memory playback mode (playback data on memory) | Four) Use file system Use stream system |
function | Branch playback, continuous playback, loop playback5 ) | Only one ADPCM |
Continuous playback time | up to 1 hour | |
Library used | file system, stream system, DMA library, | Specify to link these at the same time as this library 6) |
CPU timer | This library uses the CPU timer (FRT) with a frequency division number of 128. | It is possible to obtain the value using TIM_FRT_GET_16 etc. |
Using DMA | CPU-DMA (channel 1), or | 7) |
sound driver | The user must perform initial settings (68000 reset, sound driver transfer, etc.) in advance. This library issues commands related to PCM playback (PCM start, stop, parameter change). All commands to the sound driver are issued using the sound I/F library . | See " SEGA Saturn Sound Driver 2.20 Programmer's Guide ". |
Allocating a buffer | Work buffer: Work structure (approx. 530 bytes) | fixed size |
CPU load | PCM uncompressed 44kHz stereo 16bit: 10% | This is the value measured for all processing times, including data transfer from CD to work memory to sound memory, including decompression processing in the case of ADPCM. |
PCM_Task(Task | - Call at a frequency equal to or higher than the V blank interrupt frequency (1 time/16ms). ・Maximum processing time for one task function PCM uncompressed stereo 16bit: 15ms PCM uncompressed monaural 16bit: 8ms ADPCM compression stereo 16bit: 34ms ADPCM compression monaural 16bit: 15ms | If you call it with appropriate frequency, the long processing time will only be once every few times. |
R=(100×Ttask)/Tplay ┌ ┐ │ R :CPU load[%] │ │ Ttask:Total processing time of PCM_Task from start of playback to end of playback│ │ Tplay:Playing time │ └ ┘