X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/087a9b2eaf10974c1b3025bf7d439c2371625e70..7077d53fd935e4b360c8bbce669818986d2f8e52:/clients/playrtp.c diff --git a/clients/playrtp.c b/clients/playrtp.c index 2ab6790..c9005f8 100644 --- a/clients/playrtp.c +++ b/clients/playrtp.c @@ -678,6 +678,12 @@ int main(int argc, char **argv) { } } if(config_read(0, NULL)) disorder_fatal(0, "cannot read configuration"); + if(backend == &uaudio_rtp) { + /* This means that you have NO local sound output. This can happen if you + * use a non-Apple GCC on a Mac (because it doesn't know how to compile + * CoreAudio/AudioHardware.h). */ + disorder_fatal(0, "cannot play RTP through RTP"); + } if(!maxbuffer) maxbuffer = 2 * minbuffer; argc -= optind; @@ -702,6 +708,8 @@ int main(int argc, char **argv) { default: disorder_fatal(0, "usage: disorder-playrtp [OPTIONS] [[ADDRESS] PORT]"); } + disorder_info("version "VERSION" process ID %lu", + (unsigned long)getpid()); /* Look up address and port */ if(!(res = get_address(&sl, &prefs, &sockname))) exit(1);