Technical discussions about the TI C55x DSPs (including the c5501, c5502, c5503, c5507, c5509, c5510 and OMAP5910).
Please any one help me in doing this becoz im new to DSP programming . I want to read
audio input through mic, buffering it for sometime and then playing it back after few seconds.
The following code is working at my side what should i add to this:
for (j = 0; j < 8000; j++)
{
/* Read a sample from left channel */
while (!DSK5510_AIC23_read16(hCodec, &left));
/* Read a sample from right channel */
while (!DSK5510_AIC23_read16(hCodec, &right));
while(!DSK5510_AIC23_write16(hCodec, left));
/* Send a sample to the right channel */
while(!DSK5510_AIC23_write16(hCodec, right));
}
This code is simple looping it back. I want to loop it back after few seconds of reading input.
Any help will be highly appreciated and I will be grateful to you.
Regards,
Umer