Quantcast
Channel: EngineerZone: Message List
Viewing all articles
Browse latest Browse all 36216

8Khz Sample Rate BF52xC1 & G711u-law

$
0
0

Hi there,

 

So i've implemented what is essentially a "Multicast Speaker" on the EZ-KIT BF527. It samples G711u-law packets, delivers the payload to the G711 decoder (the demo version from ADI) and the pCM is put into a chained buffer. Simultaneously, I have a driver based on the "Audio loopback" example (using the BF52xC1) which reads the buffer and plays the audio on Line Out.

 

It all works fine except for the Sample Rate. G711u-law is supposed to be 8kHz but when I set the onboard DAC to 8000 the audio is played out twice as fast as it should be (i.e. 16Khz). Setting it to 4000 plays the audio correctly (at 8kHz).

 

Does anyone know why this is happening?


Cheers,

Adam.


Viewing all articles
Browse latest Browse all 36216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>