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.

CC3200AUDBOOST: Wifi audio example big delay

Part Number: CC3200AUDBOOST
Other Parts Discussed in Thread: CC3200

Hi

I'm testing the wifi audio example with a CC3200AUDBOOST connected to the cc3200 LaunchPadXL. The example is working correctly, but I'm experimenting a delay of 500ms between the sound is transmitted from the microphone in the transmitter board to the speaker in the receptor board. These times are measured by using a wave generator and an oscylloscope. I'm a bit shocked about how big is this delay.

Because according to this reply, the delay is due to the buffers, I'm playing with the buffer size in order to reduce this delay. I've made the following modifications:

PACKET_SIZE = 512

PLAY_WATERMARK = 1

CB_TRANSFER_SZ = 16

In order to fast the transmission, in microphone task, I've modifed the line

if(iBufferFilled >= (2*PACKET_SIZE))

to

if(iBufferFilled >= 1)

Doing that I've been able to reduce delay from 1.5s to 500ms. What I see now is the following:

1) I can't reduce PACKET_SIZE below 512. If I do this, the example application is not able to start.

2) Same case with RECORD_BUFFER_SIZE and PLAY_BUFFER_SIZE: below their default size, the example is not able to start. Why?

According to this other post, I'm startint to think the problem is the codec configuration, but I'm not sure about this point.

So, how could I improve the performance? Any suggestion will be welcome.

Regards,

Eduardo