Changeset 99365e9 for src


Ignore:
Timestamp:
Dec 19, 2018, 3:25:04 PM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/crepe, fix/ffmpeg5, master
Children:
d64f56d
Parents:
2b208a8
Message:

[io] sink_apple_audio uses software-based encoding on ios

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/sink_apple_audio.c

    r2b208a8 r99365e9  
    238238    goto beach;
    239239  }
     240
     241#if defined(kAppleSoftwareAudioCodecManufacturer)
     242  // on iOS, set software based encoding before setting clientDataFormat
     243  UInt32 codecManf = kAppleSoftwareAudioCodecManufacturer;
     244  err = ExtAudioFileSetProperty(s->audioFile,
     245      kExtAudioFileProperty_CodecManufacturer,
     246      sizeof(UInt32), &codecManf);
     247  if (err) {
     248    char_t errorstr[20];
     249    AUBIO_ERR("sink_apple_audio: error when trying to set sofware codec on %s "
     250        "(%s)\n", s->path, getPrintableOSStatusError(errorstr, err));
     251    goto beach;
     252  }
     253#endif
    240254
    241255  err = ExtAudioFileSetProperty(s->audioFile,
Note: See TracChangeset for help on using the changeset viewer.