Closed mpeguerus closed 4 years ago
The doc says that 8k is supported, but in reality only 16k and any valid number (N%8000==0) can be passed.
8k
16k
N%8000==0
https://github.com/davehorton/drachtio-freeswitch-modules/blob/21e543ddde7c6f69712a4e278a57cea7812fd3ec/modules/mod_audio_fork/mod_audio_fork.c#L187
another else if there will make 8k supported:
else if
if (0 == strcmp(argv[4], "16k")) { sampling = 16000; } else if (0 == strcmp(argv[4], "8k")) { sampling = 8000; } else { sampling = atoi(argv[4]); }
Thanks, could you give me a PR for that change?
I fixed this
The doc says that
8k
is supported, but in reality only16k
and any valid number (N%8000==0
) can be passed.https://github.com/davehorton/drachtio-freeswitch-modules/blob/21e543ddde7c6f69712a4e278a57cea7812fd3ec/modules/mod_audio_fork/mod_audio_fork.c#L187
another
else if
there will make8k
supported: