From d6ace6e831c9f4a45b5d8b2130477140a9139ec0 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 18 Jun 2009 22:52:20 +0000 Subject: [PATCH] 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 --- src/mod/formats/mod_shell_stream/mod_shell_stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/formats/mod_shell_stream/mod_shell_stream.c b/src/mod/formats/mod_shell_stream/mod_shell_stream.c index 4668e0ce43..d4ab1055c5 100644 --- a/src/mod/formats/mod_shell_stream/mod_shell_stream.c +++ b/src/mod/formats/mod_shell_stream/mod_shell_stream.c @@ -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;