Changeset 047d276 for src


Ignore:
Timestamp:
Aug 24, 2014, 7:24:09 PM (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:
3c5ee41
Parents:
81c99be
git-author:
Paul Brossier <piem@piem.org> (07/21/14 03:55:06)
git-committer:
Paul Brossier <piem@piem.org> (08/24/14 19:24:09)
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_apple_audio.c

    r81c99be r047d276  
    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.