chiark / gitweb /
log: more general error message formatting
[disorder] / lib / uaudio-apis.c
index 1006fd91a64f6bba789e0af57a654021dc866022..867b1fdcc3503398d6636dd217018bcba3e5c780 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * This file is part of DisOrder.
- * Copyright (C) 2009 Richard Kettlewell
+ * Copyright (C) 2009, 2013 Richard Kettlewell
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -35,6 +35,9 @@ const struct uaudio *const uaudio_apis[] = {
 #if HAVE_COREAUDIO_AUDIOHARDWARE_H
   &uaudio_coreaudio,
 #endif  
+#if HAVE_PULSEAUDIO
+  &uaudio_pulseaudio,
+#endif
 #if HAVE_ALSA_ASOUNDLIB_H
   &uaudio_alsa,
 #endif
@@ -55,7 +58,7 @@ const struct uaudio *uaudio_find(const char *name) {
       return uaudio_apis[n];
   if(!strcmp(name, "network"))
     return &uaudio_rtp;
-  fatal(0, "cannot find audio API '%s'", name);
+  disorder_fatal(0, "cannot find audio API '%s'", name);
 }
 
 /*