Command |
SETUP(AC97) |
|
|
Description |
Setup the protocol for the
AC97 audio boards |
|
|
Syntax/Parameters |
setup( ac97 ){...} |
|
|
Options |
active = Y; // enabled or not
line_gain_L = 31; // 0 - 63
line_gain_R = 31; // 0 - 63
mic_gain_L = 31; // 0 - 63
mic_gain_R = 31; // 0 - 63
rec_sel = MIC; // MIC / LINE
rec_rate = 44100; // 0 - 48000
treble = 0; // 0 - 15
bass = 7; // 0 - 15
threeD = 0; // 0 - 15
master_volume = 100; //0 low - 100 high
speaker_volume = 100; //0 low - 100 high
headphone_volume = 100; //0 low - 100 high
balance = 50; //0-Left 50-Center 100-Right
stereo_speaker = Y; //Y when using module with stereo amp, N when using
single speaker
pbdonefnc = EndFunc; // function that is called when playback is finished
pbprogfnc = UpdateVal; // function that is called every 100ms during
playback
pbmode = fore; // halts further execution of itronSmart code until playback
finishes
= back; // playback occurs in the background and the pbdonefnc is
called when playback finishes (default) |
|
|
Example |
SETUP(AC97)
{
active = Y; // enabled or not
rec_sel = MIC; // MIC / LINE
rec_rate = 44100; // 0 - 48000
treble = 0; // 0 - 15
bass = 7; // 0 - 15
threeD = 0; // 0 - 15
master_volume = 100; //0 low - 100 high
speaker_volume = 100; //0 low - 100 high
headphone_volume = 100; //0 low - 100 high
balance = 50; //0-Left 50-Center 100-Right
stereo_speaker = Y; //Y when using module with stereo amp, N when using
single speaker
pbdonefnc = EndFunc; // function that is called when playback is finished
pbprogfnc = UpdateVal; // function that is called every 100ms during
playback
pbmode = fore; // halts further execution of itronSmart code until playback
finishes
} |
|
|