On a hunch, I tried writing a 'caf' file, and passing a nil settings dictionary to the AVAudioFile constructor and this works for writing from a tap block.
So, it looks like I have either a misunderstanding of how to properly specify a non-caf file for AVAudioFile, or there's a bug. Before I file a radar, I would like to try one more time and see if anyone has been successful in creating an AVAudioFile of AIFF or WAV type. best, Greg On Wed, Nov 26, 2014 at 10:33 AM, Gregory Wieber <[email protected]> wrote: > Hello all, > > I've re-watched the relevant talks and re-read the headers and docs, but > for the life of me I can't get an AVAudioFile from an AVAudioNode tap block > that's playable. I'm trying to create an AIFF file, but haven't had success > with any file-type. Bytes are written, no error, but the file isn't > recognized as a valid AIFF by any media player. > > Here's the code: > https://gist.github.com/dreamwieber/455c2f2073139bd591f6 > > And here's some more details of variations on that code which I've tried: > > > http://stackoverflow.com/questions/27156408/how-to-write-avaudiofile-from-tap-block > > Thanks for any help -- been stuck at this basic first step with > AVAudioEngine for a while now. On the surface it looks like such a nice > Swift-ready API compared to ExtAudioFile (with which I have experience), > but so far I'm striking out. > > Greg >
_______________________________________________ Do not post admin requests to the list. They will be ignored. Coreaudio-api mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com This email sent to [email protected]
