mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-18 01:04:13 +00:00
update2
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4600 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
d35dda719e
commit
ffde2ff0af
8 files changed
+42
-16
No files matched your search
@@ -440,8 +440,12 @@ static switch_status_t shout_file_open(switch_file_handle_t *handle, char *path)
|
||||
return SWITCH_STATUS_MEMERR;
|
||||
}
|
||||
|
||||
if (!handle->samplerate) {
|
||||
handle->samplerate = 8000;
|
||||
}
|
||||
|
||||
context->memory_pool = handle->memory_pool;
|
||||
context->samplerate = handle->codec_imp ? handle->codec_imp->samples_per_second : 8000;
|
||||
context->samplerate = handle->samplerate;
|
||||
|
||||
if (switch_test_flag(handle, SWITCH_FILE_FLAG_READ)) {
|
||||
if (switch_buffer_create_dynamic(&context->audio_buffer, MY_BLOCK_SIZE, MY_BUF_LEN, 0) != SWITCH_STATUS_SUCCESS) {
|
||||
|
||||
Reference in new issue
Block a user