shithub: aubio

Download patch

ref: 9a226ef2ea65603356ec86c0ef42dca95cea8782
parent: 98874a62092e3b9fced5db3c54d87068e1a6a337
author: Paul Brossier <piem@piem.org>
date: Sat Feb 9 22:13:24 EST 2013

src/io: improve error messages

--- a/src/io/sink_apple_audio.c
+++ b/src/io/sink_apple_audio.c
@@ -77,7 +77,7 @@
   err = ExtAudioFileCreateWithURL(fileURL, fileType, &clientFormat, NULL,
      overwrite ? kAudioFileFlags_EraseFile : 0, &s->audioFile);
   if (err) {
-    AUBIO_ERR("error when trying to access %s, in ExtAudioFileOpenURL, %d\n", s->path, (int)err);
+    AUBIO_ERR("error when trying to create %s, in ExtAudioFileCreateWithURL, %d\n", s->path, (int)err);
     goto beach;
   }
   if (createAubioBufferList(&s->bufferList, s->channels, s->max_frames * s->channels)) {
--- a/src/io/source.c
+++ b/src/io/source.c
@@ -44,7 +44,7 @@
   if (s->source) return s;
 #endif /* HAVE_SNDFILE */
 #endif /* __APPLE__ */
-  AUBIO_ERROR("failed creating aubio source with %s", uri);
+  AUBIO_ERROR("failed creating aubio source with %s\n", uri);
   AUBIO_FREE(s);
   return NULL;
 }