/** \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"
powd->to->next = NULL;
while (ptr) {
ptr2 = ptr->next;
- if (ptr->buffer)
- free(ptr->buffer);
+ free(ptr->buffer);
free(ptr);
ptr = ptr2;
}
wn->written = *wng->loaded;
if (!powd->play) {
if (AudioOutputUnitStart(powd->output))
- return -1;
+ return -E_UNIT_START;
powd->play = 1;
}
return 1;