Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

8k sample rate #22

Closed
mpeguerus opened this issue Dec 20, 2019 · 2 comments
Closed

8k sample rate #22

mpeguerus opened this issue Dec 20, 2019 · 2 comments

Comments

@mpeguerus
Copy link

mpeguerus commented Dec 20, 2019

The doc says that 8k is supported, but in reality only 16k 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 make 8k supported:

if (0 == strcmp(argv[4], "16k")) {
        sampling = 16000;
 } else if (0 == strcmp(argv[4], "8k")) {
        sampling = 8000;
 } else {
	sampling = atoi(argv[4]);
}
@davehorton
Copy link
Collaborator

Thanks, could you give me a PR for that change?

davehorton added a commit that referenced this issue Dec 21, 2019
@davehorton
Copy link
Collaborator

I fixed this

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants