mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
update2
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4600 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
# define these targets in your makefile if you wish
|
||||
# local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
|
||||
BASE=../../../..
|
||||
OSARCH=$(shell uname -s)
|
||||
# and define these variables to impact your build
|
||||
MODNAME=mod_portaudio
|
||||
|
||||
@@ -225,8 +225,9 @@ static switch_status_t channel_on_init(switch_core_session_t *session)
|
||||
switch_set_flag_locked((&globals), GFLAG_RING);
|
||||
if (ring_file) {
|
||||
if (switch_core_file_open(&fh,
|
||||
globals.read_codec.implementation,
|
||||
ring_file,
|
||||
globals.read_codec.implementation->number_of_channels,
|
||||
globals.read_codec.implementation->samples_per_second,
|
||||
SWITCH_FILE_FLAG_READ | SWITCH_FILE_DATA_SHORT,
|
||||
NULL) == SWITCH_STATUS_SUCCESS) {
|
||||
|
||||
@@ -589,8 +590,9 @@ static switch_status_t channel_read_frame(switch_core_session_t *session, switch
|
||||
}
|
||||
|
||||
if (switch_core_file_open(&tech_pvt->fh,
|
||||
globals.read_codec.implementation,
|
||||
tech_pvt->hold_file,
|
||||
globals.read_codec.implementation->number_of_channels,
|
||||
globals.read_codec.implementation->samples_per_second,
|
||||
SWITCH_FILE_FLAG_READ | SWITCH_FILE_DATA_SHORT,
|
||||
switch_core_session_get_pool(tech_pvt->session)) != SWITCH_STATUS_SUCCESS) {
|
||||
switch_core_codec_destroy(&tech_pvt->write_codec);
|
||||
|
||||
Reference in New Issue
Block a user