This commit is contained in:
Anthony Minessale 2011-03-01 13:44:53 -06:00
parent f398dc1f3a
commit 9a7dbfbafe
2 changed files with 1 additions and 4 deletions

View File

@ -360,12 +360,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_frame(switch_core_sessi
}
if (session->plc) {
if (switch_test_flag(read_frame, SFF_PLC) || 1) {
if (switch_test_flag(read_frame, SFF_PLC)) {
plc_fillin(session->plc, session->raw_read_frame.data, session->raw_read_frame.datalen / 2);
switch_clear_flag(read_frame, SFF_PLC);
printf("SHIT %d %s\n", switch_test_flag(read_frame, SFF_CNG), switch_core_session_get_name(session));
} else {
printf("ASS\n");
plc_rx(session->plc, session->raw_read_frame.data, session->raw_read_frame.datalen / 2);
}
}

View File

@ -477,7 +477,6 @@ static void *audio_bridge_thread(switch_thread_t *thread, void *obj)
if (SWITCH_READ_ACCEPTABLE(status)) {
read_frame_count++;
if (switch_test_flag(read_frame, SFF_CNG)) {
printf("FUCK YOU %s\n", switch_channel_get_name(chan_a));
if (silence_val) {
switch_generate_sln_silence((int16_t *) silence_frame.data, silence_frame.samples, silence_val);
read_frame = &silence_frame;