]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - osx_writer.c
Add UNIT_START errno
[paraslash.git] / osx_writer.c
index b0d672c963443b7225ef2053871c3fb614b9df67..089b5d786177e5d6b0b5b521812549cbbe83d02c 100644 (file)
 
 /** \file osx_writer.c paraslash's output plugin for MacOs */
 
+/*
+ * based on mosx-mpg123, by Guillaume Outters and Steven A. Kortze
+ * <skortze@sourceforge.net>
+ */
+
 #include <CoreAudio/CoreAudio.h>
 #include "para.h"
 #include "fd.h"
@@ -303,7 +308,7 @@ static int osx_write_post_select(__a_unused struct sched *s,
        wn->written = *wng->loaded;
        if (!powd->play) {
                if (AudioOutputUnitStart(powd->output))
-                       return -1;
+                       return -E_UNIT_START;
                powd->play = 1;
        }
        return 1;