[asterisk-dev] #define SAMPLE_RATE 8000 somewhere ?
Luigi Rizzo
rizzo at icir.org
Thu Feb 23 08:06:55 MST 2006
On Thu, Feb 23, 2006 at 08:40:11PM +0600, 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.
you are right on the fact that the name should be different, something like
ASTERISK_DEFAULT_SAMPLE_RATE or similar.
In any case the goal is to replace the various '8000' and derived
values that at the moment are hardwired in the code
with something easier to track.
cheers
luigi
>
> WBR,
> Paul.
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-dev
More information about the asterisk-dev
mailing list