mirror of
http://www.pogo.org.uk/~mark/trx.git
synced 2024-11-21 10:05:04 +01:00
Try our best to go realtime, but don't fail
This commit is contained in:
parent
427484e2b7
commit
b046e8314a
4
rx.c
4
rx.c
@ -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
4
tx.c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user