Hello there,
I’m working w/ some other folks here (jcooper, shaneL) on the ASA project. I’m really struggling writing to the SD card after passing audio through a band pass filter I modeled based on the example.
The filter passes audio through to the audio output, but writing to SD card causes errors. Raw audio to SD card works fine.
Here are the patch cords (yes the input is single channel):
AudioConnection_F32 patchCord1(i2s_in, 0, audioEffectBandpassFD, 0); //connect the Left input to our algorithm
AudioConnection_F32 patchCord2(audioEffectBandpassFD, 0, i2s_out, 0); //connect the algorithm to the left output
AudioConnection_F32 patchCord3(audioEffectBandpassFD, 0, i2s_out, 1); //connect the algorithm to the right output
AudioConnection_F32 patchCord4(audioEffectBandpassFD, 0, audioSDWriter, 0); //connect audio to left channel of SD writer
AudioConnection_F32 patchCord5(audioEffectBandpassFD, 0, audioSDWriter, 1); //connect audio to right channel of SD writer
Here’s the error it spits out:
AudioControlAIC3206: Received Error During goToPage(): Error = 4
AudioControlAIC3206: Received Error During writeRegister(): Error = 4
AudioControlAIC3206: Received Error During writeRegister(): Error = 4
AudioControlAIC3206: Received Error During writeRegister(): Error = 4
AudioControlAIC3206: Received Error During writeRegister(): Error = 4
AudioControlAIC3206: Received Error During goToPage(): Error = 4
When I try to activate SD recording it says stuff like this over and over (presumably, each time it services the SD card in a loop):
AudioSDWriter: chan 0, data skip? This ID = 0, Previous ID = 13570355
AudioSDWriter: chan 1, data skip? This ID = 0, Previous ID = 13570355
Any idea what I might be doing wrong?
Thanks.