Changeset 8a7b344 for src/io


Ignore:
Timestamp:
Apr 8, 2013, 5:27:35 PM (12 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:
ea912cc
Parents:
6510866
Message:

src/io/sink_apple_audio.c: warn before fixing size

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/sink_apple_audio.c

    r6510866 r8a7b344  
    4040#define MAX_SIZE 4096 // the maximum number of frames that can be written at a time
    4141
    42 struct _aubio_sink_apple_audio_t { 
     42struct _aubio_sink_apple_audio_t {
    4343  uint_t samplerate;
    4444  uint_t channels;
     
    9696  bool async = true;
    9797  short *data = (short*)s->bufferList.mBuffers[0].mData;
    98   if (write > s->max_frames) {
     98  if (write > s->max_frames) {
     99    AUBIO_WRN("sink_apple_audio: trying to write %d frames, max %d\n", write, s->max_frames);
    99100    write = s->max_frames;
    100     AUBIO_WRN("trying to write %d frames, but only %d can be written at a time",
    101       write, s->max_frames);
    102101  }
    103102  smpl_t *buf = write_data->data;
Note: See TracChangeset for help on using the changeset viewer.