Sign in

username:

password:



Not a member?

Search c55x



Search tips

Subscribe to c55x



c55x by Keywords

AIC23 | C5509 | CCS | CSL | EMIF | EVM | GEL | GPIO | HPI | Interfacing | JTAG | McBSP | OMAP | Omap15 | OMAP59 | RTDX | SDRAM | TMS320VC5509 | USB | XDS5

Ads

Discussion Groups

Discussion Groups | TMS320C55x | to buffer audio input and then playing it back after few seconds

Technical discussions about the TI C55x DSPs (including the c5501, c5502, c5503, c5507, c5509, c5510 and OMAP5910).

  

Post a new Thread

to buffer audio input and then playing it back after few seconds - umer...@yahoo.com - Oct 12 13:01:03 2006



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



(You need to be a member of c55x -- send a blank email to c55x-subscribe@yahoogroups.com )