Changeset 4d733b5 for examples


Ignore:
Timestamp:
Dec 15, 2013, 3:10:50 AM (10 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, pitchshift, sampler, timestretch, yinfft+
Children:
a7e766b
Parents:
d626fac
Message:

examples/utils.c: print error messages on stderr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/utils.c

    rd626fac r4d733b5  
    8484    this_source = new_aubio_source ((char_t*)source_uri, samplerate, hop_size);
    8585    if (this_source == NULL) {
    86       outmsg ("Could not open input file %s\n", source_uri);
     86      errmsg ("Error: could not open input file %s\n", source_uri);
    8787      exit (1);
    8888    }
     
    9393      uint_t sink_exists = (access(sink_uri, F_OK) == 0 );
    9494      if (!force_overwrite && sink_exists) {
    95         outmsg ("Output file %s already exists, use -f to overwrite.\n",
     95        errmsg ("Error: output file %s already exists, use -f to overwrite.\n",
    9696            sink_uri);
    9797        exit (1);
     
    9999      this_sink = new_aubio_sink ((char_t*)sink_uri, samplerate);
    100100      if (this_sink == NULL) {
    101         outmsg ("Could not open output file %s\n", sink_uri);
     101        errmsg ("Error: could not create output file %s\n", sink_uri);
    102102        exit (1);
    103103      }
Note: See TracChangeset for help on using the changeset viewer.