[asterisk-dev] #define SAMPLE_RATE 8000 somewhere ?

Paul Cadach paul at odt.east.telecom.kz
Thu Feb 23 07:40:11 MST 2006


Hello,

Luigi Rizzo wrote:
[skipped]
> include/asterisk.h:#define SAMPLE_RATE 8000
> include/asterisk.h:#define SAMPLES_PER_MS  ((SAMPLE_RATE)/1000)

Due to existance of codecs with different sample rate it isn't the solution to define constant sample rate somewhere
(outside codebase). Right solution is to provide some sort of knoweledge about current sample rate per call/RTP stream.


WBR,
Paul.




More information about the asterisk-dev mailing list