#include "config.h"
-#ifdef __APPLE__
+#ifdef HAVE_SINK_APPLE_AUDIO
#include "aubio_priv.h"
#include "fvec.h"
s->max_frames = MAX_SIZE;
s->async = true;
+ if (uri == NULL) {
+ AUBIO_ERROR("sink_apple_audio: Aborted opening null path\n");
+ goto beach;
+ }
+
s->samplerate = 0;
s->channels = 0;
return;
}
-#endif /* __APPLE__ */
+#endif /* HAVE_SINK_APPLE_AUDIO */