Try our best to go realtime, but don't fail

master
Mark Hills 2012-07-24 22:46:58 +01:00
parent 427484e2b7
commit b046e8314a
2 changed files with 2 additions and 6 deletions

4
rx.c
View File

@ -192,9 +192,6 @@ int main(int argc, char *argv[])
return -1;
}
if (go_realtime() != 0)
return -1;
ortp_init();
ortp_scheduler_init();
session = create_rtp_recv(addr, port, jitter);
@ -210,6 +207,7 @@ int main(int argc, char *argv[])
if (set_alsa_sw(snd) == -1)
return -1;
go_realtime();
r = run_rx(session, decoder, snd, channels);
if (snd_pcm_close(snd) < 0)

4
tx.c
View File

@ -192,9 +192,6 @@ int main(int argc, char *argv[])
bytes_per_frame = kbps * 1024 * frame / rate / 8;
if (go_realtime() != 0)
return -1;
ortp_init();
ortp_scheduler_init();
ortp_set_log_level_mask(ORTP_MESSAGE|ORTP_WARNING|ORTP_ERROR);
@ -211,6 +208,7 @@ int main(int argc, char *argv[])
if (set_alsa_sw(snd) == -1)
return -1;
go_realtime();
r = run_tx(snd, channels, frame, encoder, bytes_per_frame, session);
if (snd_pcm_close(snd) < 0)