mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 08:05:37 +00:00
FS-6815 #comment force 1600hz for native g722
This commit is contained in:
parent
6752c00860
commit
908dd26559
@ -83,6 +83,13 @@ static switch_status_t native_file_file_open(switch_file_handle_t *handle, const
|
||||
|
||||
handle->samples = 0;
|
||||
handle->samplerate = 8000;
|
||||
|
||||
if (ext) {
|
||||
if (!strcasecmp(ext, "G722")) {
|
||||
handle->samplerate = 16000;
|
||||
}
|
||||
}
|
||||
|
||||
handle->channels = 1;
|
||||
handle->format = 0;
|
||||
handle->sections = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user