mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5318 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -127,8 +127,10 @@ struct switch_core_session {
|
||||
struct switch_media_bug {
|
||||
switch_buffer_t *raw_write_buffer;
|
||||
switch_buffer_t *raw_read_buffer;
|
||||
switch_frame_t *replace_frame_in;
|
||||
switch_frame_t *replace_frame_out;
|
||||
switch_frame_t *read_replace_frame_in;
|
||||
switch_frame_t *read_replace_frame_out;
|
||||
switch_frame_t *write_replace_frame_in;
|
||||
switch_frame_t *write_replace_frame_out;
|
||||
switch_media_bug_callback_t callback;
|
||||
switch_mutex_t *read_mutex;
|
||||
switch_mutex_t *write_mutex;
|
||||
|
||||
@@ -142,14 +142,27 @@ SWITCH_DECLARE(void *) switch_core_media_bug_get_user_data(switch_media_bug_t *b
|
||||
\brief Obtain a replace frame from a media bug
|
||||
\param bug the bug to get the data from
|
||||
*/
|
||||
SWITCH_DECLARE(switch_frame_t *) switch_core_media_bug_get_replace_frame(switch_media_bug_t *bug);
|
||||
SWITCH_DECLARE(switch_frame_t *) switch_core_media_bug_get_write_replace_frame(switch_media_bug_t *bug);
|
||||
|
||||
/*!
|
||||
\brief Set a return replace frame
|
||||
\param bug the bug to set the frame on
|
||||
\param frame the frame to set
|
||||
*/
|
||||
SWITCH_DECLARE(void) switch_core_media_bug_set_replace_frame(switch_media_bug_t *bug, switch_frame_t *frame);
|
||||
SWITCH_DECLARE(void) switch_core_media_bug_set_write_replace_frame(switch_media_bug_t *bug, switch_frame_t *frame);
|
||||
|
||||
/*!
|
||||
\brief Obtain a replace frame from a media bug
|
||||
\param bug the bug to get the data from
|
||||
*/
|
||||
SWITCH_DECLARE(switch_frame_t *) switch_core_media_bug_get_read_replace_frame(switch_media_bug_t *bug);
|
||||
|
||||
/*!
|
||||
\brief Set a return replace frame
|
||||
\param bug the bug to set the frame on
|
||||
\param frame the frame to set
|
||||
*/
|
||||
SWITCH_DECLARE(void) switch_core_media_bug_set_read_replace_frame(switch_media_bug_t *bug, switch_frame_t *frame);
|
||||
|
||||
/*!
|
||||
\brief Remove a media bug from the session
|
||||
|
||||
@@ -196,6 +196,7 @@ typedef enum {
|
||||
SWITCH_ABC_TYPE_READ,
|
||||
SWITCH_ABC_TYPE_WRITE,
|
||||
SWITCH_ABC_TYPE_WRITE_REPLACE,
|
||||
SWITCH_ABC_TYPE_READ_REPLACE,
|
||||
SWITCH_ABC_TYPE_CLOSE
|
||||
} switch_abc_type_t;
|
||||
|
||||
@@ -742,14 +743,16 @@ typedef enum {
|
||||
<pre>
|
||||
SMBF_READ_STREAM - Include the Read Stream
|
||||
SMBF_WRITE_STREAM - Include the Write Stream
|
||||
SMBF_WRITE_STREAM - Replace the Write Stream
|
||||
SMBF_WRITE_REPLACE - Replace the Write Stream
|
||||
SMBF_READ_REPLACE - Replace the Read Stream
|
||||
</pre>
|
||||
*/
|
||||
typedef enum {
|
||||
SMBF_BOTH = 0,
|
||||
SMBF_READ_STREAM = (1 << 0),
|
||||
SMBF_WRITE_STREAM = (1 << 1),
|
||||
SMBF_WRITE_REPLACE = (1 << 2)
|
||||
SMBF_WRITE_REPLACE = (1 << 2),
|
||||
SMBF_READ_REPLACE = (1 << 3)
|
||||
} switch_media_bug_flag_t;
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user