Changeset 961cff13 for src/io


Ignore:
Timestamp:
Jul 21, 2014, 3:55:06 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:
7c8d32a
Parents:
58c408d
Message:

src/io/source_apple_audio.c: set s->path, quiet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_apple_audio.c

    r58c408d r961cff13  
    6161  aubio_source_apple_audio_t * s = AUBIO_NEW(aubio_source_apple_audio_t);
    6262
     63  if (path == NULL) {
     64    AUBIO_ERROR("source_apple_audio: Aborted opening null path\n");
     65    goto beach;
     66  }
     67
     68  if ( (sint_t)block_size <= 0 ) {
     69    AUBIO_ERROR("source_apple_audio: Can not open %s with null or negative block_size %d\n",
     70        path, block_size);
     71    goto beach;
     72  }
     73
     74  if ( (sint_t)samplerate < 0 ) {
     75    AUBIO_ERROR("source_apple_audio: Can not open %s with negative samplerate %d\n",
     76        path, samplerate);
     77    goto beach;
     78  }
     79
    6380  s->block_size = block_size;
    6481  s->samplerate = samplerate;
     82  s->path = path;
    6583
    6684  if ( aubio_source_apple_audio_open ( s, path ) ) {
     
    140158        "error in ExtAudioFileSetProperty (%s)\n", s->path,
    141159        getPrintableOSStatusError(errorstr, err));
    142 #if 1
     160#if 0
    143161  // print client and format descriptions
    144162  AUBIO_DBG("Opened %s\n", s->path);
Note: See TracChangeset for help on using the changeset viewer.