Changeset dcecaec for src


Ignore:
Timestamp:
Mar 5, 2017, 7:40:09 PM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, sampler
Children:
e79acd9
Parents:
ad2eac2
Message:

src/io/{sink,source}.c: clarify failover messages

Location:
src/io
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/io/sink.c

    rad2eac2 rdcecaec  
    9898  }
    9999#endif /* HAVE_WAVWRITE */
    100 #if !defined(HAVE_WAVWRITE) && !defined(HAVE_SNDFILE) && !defined(HAVE_SINK_APPLE_AUDIO)
    101   AUBIO_ERROR("sink: failed creating '%s' (no sink built-in)\n",
    102       uri, samplerate);
     100#if !defined(HAVE_WAVWRITE) && \
     101  !defined(HAVE_SNDFILE) && \
     102  !defined(HAVE_SINK_APPLE_AUDIO)
     103  AUBIO_ERROR("sink: failed creating '%s' at %dHz (no sink built-in)\n", uri, samplerate);
    103104#endif
    104105  AUBIO_FREE(s);
  • src/io/source.c

    rad2eac2 rdcecaec  
    114114    return s;
    115115  }
    116 #else /* failover message */
    117 #if !(defined(HAVE_LIBAV) || defined(HAVE_SOURCE_APPLE_AUDIO) || defined(HAVE_SNDFILE))
    118   AUBIO_ERROR("source: failed creating aubio source with %s"
    119      " at samplerate %d with hop_size %d\n", uri, samplerate, hop_size);
    120 #endif /* failover */
    121116#endif /* HAVE_WAVREAD */
     117#if !defined(HAVE_WAVREAD) && \
     118  !defined(HAVE_LIBAV) && \
     119  !defined(HAVE_SOURCE_APPLE_AUDIO) && \
     120  !defined(HAVE_SNDFILE)
     121  AUBIO_ERROR("source: failed creating with %s at %dHz with hop size %d"
     122     " (no source built-in)\n", uri, samplerate, hop_size);
     123#endif
    122124  AUBIO_FREE(s);
    123125  return NULL;
Note: See TracChangeset for help on using the changeset viewer.