Merge commit 'ad0c0f361be0'
authorRichard Kettlewell <rjk@terraraq.org.uk>
Sun, 31 Jul 2011 11:31:07 +0000 (12:31 +0100)
committerRichard Kettlewell <rjk@terraraq.org.uk>
Sun, 31 Jul 2011 11:31:07 +0000 (12:31 +0100)
.gitignore
clients/playrtp.c

index 740a568..2e8cf69 100644 (file)
@@ -206,3 +206,4 @@ disobedience/manual/Makefile
 /m4
 libtests/t-timeval
 *.[oa]
+*~
index 2ab6790..2bd2452 100644 (file)
@@ -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;