mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-21 02:34:16 +00:00
Add new hard_mute control to allow apps to request low level mute e.g. from the rtp stack level. Its used in mod_conference to avoid reading audio while muted and possibly reduce some transcoding load
This commit is contained in:
1 parent
0386db7dfd
commit
d1e529aefd
5 files changed
+47
-1
No files matched your search
@@ -5915,6 +5915,10 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
|
||||
|
||||
result_continue:
|
||||
timer_check:
|
||||
|
||||
if (rtp_session->flags[SWITCH_RTP_FLAG_MUTE]) {
|
||||
do_cng++;
|
||||
}
|
||||
|
||||
if (do_cng) {
|
||||
uint8_t *data = (uint8_t *) RTP_BODY(rtp_session);
|
||||
|
||||
Reference in new issue
Block a user