This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Show all samples input from microphne



 

HI;

 

for ( i = 0 ;  i< SAMPLES_PER_SECOND*2  ; i++ )

            {

                aic3204_codec_read(&left_input, &right_input);                         // Configured for one interrupt per two channels

                   left_output = left_input;

                  right_output = right_input;

                 aic3204_codec_write(left_output,right_ouput);      

            }

from code above, i want to talk to microphone for 2 second and hear to what i say.
my question is i need to show the all input samples to make some processing on it 
i need to know each value of 16000 samples since sampling frequency is 8000 and i record for 2 second 
i look for to my question in all posts in the forum but there is no answer.

 

  • Hi,

    Are you trying to save 2 seconds of audio samples into memory?

     

    Int16 left_output[16000], right_output[16000];

               left_output[i] = left_input;

              right_output[i] = right_input;

    Regards,

    Hyun