[asterisk-dev] 16khz wav files

Kevin P. Fleming kpfleming at digium.com
Thu Apr 30 15:16:53 CDT 2009


asterisk at ntplx.net wrote:

> Any thoughts as to re-adding this 16khz wav file code back into trunk?
> Or any ideas how to get 8/16khz wav files to work based on the frequency
> stored in the file header?

In Asterisk, the sample rate will already be known before the format
module's open() function ever gets called; it can't autoselect sample
rates after that. So that means that 8kHz and 16kHz must be different
'formats' in Asterisk-land, as you've already worked on.

The patch that had been added was removed because used case changes
*only* to signify the difference between 8kHz and 16kHz and that was not
a good way to handle it. Using a different extension (like wav16 as you
have done) would be fine.

-- 
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
skype: kpfleming | jabber: kpfleming at digium.com
Check us out at www.digium.com & www.asterisk.org



More information about the asterisk-dev mailing list