FS-6815 #comment force 1600hz for native g722

This commit is contained in:
Anthony Minessale 2014-09-10 14:09:32 -04:00
parent 6752c00860
commit 908dd26559

View File

@ -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;