diff --git a/src/mod/formats/mod_sndfile/mod_sndfile.c b/src/mod/formats/mod_sndfile/mod_sndfile.c index 5d2962a8c4..0977a4950b 100644 --- a/src/mod/formats/mod_sndfile/mod_sndfile.c +++ b/src/mod/formats/mod_sndfile/mod_sndfile.c @@ -309,6 +309,12 @@ static switch_status_t sndfile_file_open(switch_file_handle_t *handle, const cha sf_command(context->handle, SFC_FILE_TRUNCATE, &frames, sizeof(frames)); } + /* + http://www.mega-nerd.com/libsndfile/api.html#note2 + */ + if (switch_test_flag(handle, SWITCH_FILE_DATA_SHORT)) { + sf_command(context->handle, SFC_SET_SCALE_FLOAT_INT_READ, NULL, SF_TRUE); + } end: