mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-12 12:37:05 +00:00
conference recording
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3139 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
1f29ce2749
commit
b2f9fae6d1
2 files changed
+289
-71
No files matched your search
@@ -73,6 +73,8 @@ static switch_status_t sndfile_file_open(switch_file_handle_t *handle, char *pat
|
||||
}
|
||||
|
||||
if (mode & SFM_WRITE) {
|
||||
sf_count_t frames = 0 ;
|
||||
|
||||
context->sfinfo.channels = handle->channels;
|
||||
context->sfinfo.samplerate = handle->samplerate;
|
||||
if (handle->samplerate == 8000 || handle->samplerate == 16000) {
|
||||
@@ -83,6 +85,8 @@ static switch_status_t sndfile_file_open(switch_file_handle_t *handle, char *pat
|
||||
context->sfinfo.format |= SF_FORMAT_PCM_32;
|
||||
}
|
||||
|
||||
sf_command (context->handle, SFC_FILE_TRUNCATE, &frames, sizeof (frames)) ;
|
||||
|
||||
/* Could add more else if() but i am too lazy atm.. */
|
||||
if (!strcasecmp(ext, "wav")) {
|
||||
context->sfinfo.format |= SF_FORMAT_WAV;
|
||||
|
||||
Reference in new issue
Block a user