add rate and channel count params to executed command

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13852 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-06-18 22:52:20 +00:00
parent 85e4831dfb
commit d6ace6e831
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ static switch_status_t shell_stream_file_open(switch_file_handle_t *handle, cons
context->fds[0] = -1;
context->fds[1] = -1;
context->command = switch_core_strdup(handle->memory_pool, path);
context->command = switch_core_sprintf(handle->memory_pool, "%s -r %d -c %d", path, handle->samplerate, handle->channels);
if (pipe(context->fds)) {
goto error;