sample platter

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6706 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale committed 2007-12-12 21:30:55 +00:00
1 parent 2ff5e3ec40
commit 44636d333f
11 files changed
+239 -70

No files matched your search

@@ -1465,6 +1465,9 @@ static void *SWITCH_THREAD_FUNC conference_loop_input(switch_thread_t * thread,
}
}
switch_resample_destroy(&member->read_resampler);
switch_resample_destroy(&member->mux_resampler);
switch_clear_flag_locked(member, MFLAG_ITHREAD);
return NULL;
+10 -1
View File
@@ -1239,7 +1239,9 @@ SWITCH_STANDARD_APP(record_function)
int argc;
char *mydata, *argv[4] = { 0 };
char *l = NULL;
const char *tmp;
int rate;
channel = switch_core_session_get_channel(session);
assert(channel != NULL);
@@ -1280,6 +1282,13 @@ SWITCH_STANDARD_APP(record_function)
}
}
if ((tmp = switch_channel_get_variable(channel, "record_rate"))) {
rate = atoi(tmp);
if (rate > 0) {
fh.samplerate = rate;
}
}
args.input_callback = on_dtmf;
status = switch_ivr_record_file(session, &fh, path, &args, limit);