[Freeswitch-svn] [commit] r13852 - freeswitch/trunk/src/mod/formats/mod_shell_stream

FreeSWITCH SVN anthm at freeswitch.org
Thu Jun 18 15:52:21 PDT 2009


Author: anthm
Date: Thu Jun 18 17:52:20 2009
New Revision: 13852

Log:
add rate and channel count params to executed command

Modified:
   freeswitch/trunk/src/mod/formats/mod_shell_stream/mod_shell_stream.c

Modified: freeswitch/trunk/src/mod/formats/mod_shell_stream/mod_shell_stream.c
==============================================================================
--- freeswitch/trunk/src/mod/formats/mod_shell_stream/mod_shell_stream.c	(original)
+++ freeswitch/trunk/src/mod/formats/mod_shell_stream/mod_shell_stream.c	Thu Jun 18 17:52:20 2009
@@ -102,7 +102,7 @@
 	
 	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;



More information about the Freeswitch-svn mailing list