AISetDSPSampleRate

C Specification

#include <revolution.h>

#define AI_SAMPLERATE_32KHZ 0x00
#define AI_SAMPLERATE_48KHZ 0x01
void AISetDSPSampleRate (u8 samplerate);

Arguments

samplerate Sample frequency for the DSP audio data.

Return Values

None.

Description

The AISetDSPSampleRate function sets the sampling frequency for the audio data that the DSP outputs. The default sampling frequency is 32 kHz.

If the sampling frequency is set to 32 kHz using the AISetDSPSampleRate function, the hardware sampling rate converter (SRC) in the AI is enabled. DSP audio data is converted from 32 kHz to 48 kHz by SRC and is passed to the DAC. SRC is disabled, and the unchanged DSP audio data is passed to the DAC when the sampling frequency is set to 48 kHz using the AISetDSPSampleRate function.

Noise may be generated if the sampling frequency is changed using the AISetDSPSampleRate function during audio playback. Be sure to change the sampling frequency after you stop playback.

See Also

Revision History

03/01/2006 Initial version.