1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 5<TITLE>AISetDSPSampleRate</TITLE> 6<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 7<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 8<META http-equiv="Content-Style-Type" content="text/css"> 9</HEAD> 10<BODY> 11<H1 align="left">AISetDSPSampleRate</H1> 12 13<H2>C Specification</H2> 14 15<DL> 16 <DD> 17<PRE><CODE>#include <revolution.h></CODE></PRE> 18 <DD> 19<PRE><CODE> 20#define AI_SAMPLERATE_32KHZ 0x00 21#define AI_SAMPLERATE_48KHZ 0x01 22</CODE></PRE> 23<PRE><CODE>void AISetDSPSampleRate (u8 samplerate);</CODE></PRE> 24</DL> 25 26<H2>Arguments</H2> 27 28<TABLE border="1" cellpadding="3" cellspacing="0.1"> 29 <TBODY> 30 <TR> 31<TD width="120" bgcolor="#ffffe8"><EM><STRONG><FONT face="Courier New"><STRONG><EM><CODE>samplerate</CODE></EM></STRONG></FONT></STRONG></EM></TD> 32<TD width="520">Sample frequency for the DSP audio data.</TD> 33 </TR> 34 </TBODY> 35</TABLE> 36 37<H2>Return Values</H2> 38 39<P>None.</P> 40 41<H2>Description</H2> 42 43<P>The <font face="Courier New">AISetDSPSampleRate</font> function sets the sampling frequency for the audio data that the DSP outputs. The default sampling frequency is 32 kHz.</P> 44 45<P>If the sampling frequency is set to 32 kHz using the <code>AISetDSPSampleRate</code> 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 <code>AISetDSPSampleRate</code> function. </P> 46 47<P>Noise may be generated if the sampling frequency is changed using the <code>AISetDSPSampleRate</code> function during audio playback. Be sure to change the sampling frequency after you stop playback. </P> 48 49<h2>See Also</h2> 50<H2>Revision History</H2> 51<P>03/01/2006 Initial version.</P> 52 53</BODY> 54</HTML> 55