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.

Configure samplerate with AUDBOOST

Other Parts Discussed in Thread: CC3200

Hi,

I develop an application that stream audio from android to CC3200 via wifi.

Up to now, I can stream audio from my phone to CC3200 and play out.

But there is a problem that CC3200 only work fine with WAV file has 16000 sample rate. I found that configure when the board start.

So, Is there anyway I can use different audio file (WAV) with different samplerate (8k , 44k) ? I try with 8k samplerate and I see the sound come out faster than normal, with 44k It is slower.

One more question, I write and app in android that just read data from wav file and stream to CC3200 - and it just work with WAV format. Can you suggest me some method I can do to process with orther format (like mp3, etc..)

Many thanks,

VinhLoc.

  • Hi VinhLoc,

    Default wifi_audio application in SDK configure for 16KHz only. For other configuration you need to modify the code. Please modify following code as per your configuration:

    1. AudioCaptureRendererConfigure() in mcasp_if.c

     512000 to new value  [ (Number of bit * Sampling rate * 2) ]

    2. McASPInit() in mcasp_if.c

             512000 with new value (same as calculated in step 1)

    3 Modify following codec register value in ConfigureAudioCodec() define in ti_codec.c

    Reg 0x05  // P, R   CodecRegWrite(0x05,0x94);

    Reg 0x06 // J

    Reg 0x07 // D

    Reg 0x0B // NDAC

    Reg 0x0C // MDAC

    Reg 0x0D // DOSR

    Reg 0x0E // DOSR

    Reg 0x12 // NADC

    Reg 0x13 // MADC

    Reg 0x14 // D

    For codec configuration please refer AIC3254 codec data-sheet.

    Regards,

    Aashish

  • Hi Aashish,

    Thanks for your answer.
    I am not sure I cant make it works. I will try this and give you feedback soon.

    And, with your 512000 values - I see the comment said that equal 16 * 2 * 16000 (bit * stereo * sample rate). Why you divide it by 8 ?

    Many thanks,
    VinhLoc

  • Hi VinhLoc,


    Sorry for typo. No need to divide by 8.


    Regards,
    Aashish
  • Hi Aashish,

    I have tried configure sample rate as you said.
    But I don't think it solve my problem. There is only one sample rate configure in the code.
    What I want that I can use different files with different sample rate.

    Ex : I configure sample rate = 8000 in the code ( AudioCaptureRendererConfigure and McASPInit). I have 2 file with sameple rate 8K and 16K. So, there is only file with 8Khz bring out the normal sound. The file with 16Khz bring out faster sound (can't hear anything). Here, I want both file give out put is a normal sound that I can hear it. How can I do that?


    Thanks,
    VinhLoc
  • Hi VinhLoc,


    You cant change all settings dynamically. For each new setting you need to reset the hardware.


    Regards,
    Aashish
  • Hi VinhLoc,


    We are closing this thread, for follow up queries please open a new thread and add a link to this one for reference.


    Regards,
    Aashish