[asterisk-dev] #define SAMPLE_RATE 8000 somewhere ?
Steve Underwood
steveu at coppice.org
Thu Feb 23 08:18:04 MST 2006
Paul Cadach wrote:
>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.
>
>
True, but its a good starting point. It will highlight all the places
where the sample rate is specified, which need to be changed to properly
managed variables in a later phase.
Steve
More information about the asterisk-dev
mailing list