Re: Efficiently play two buffers with AVAudioEngine? [Fixed]
Re: Efficiently play two buffers with AVAudioEngine? [Fixed]
- Subject: Re: Efficiently play two buffers with AVAudioEngine? [Fixed]
- From: Charles Constant <email@hidden>
- Date: Thu, 30 Jul 2015 21:31:44 -0700
I'm okay on this one now. After spending two days experimenting with Playback, and getting nothing usable (required me having to recopy my buffer, and sending two tracks leads to latency and pain syncing them accurately), I thought I'd try something else.
Now I'm using an AudioUnit with a C callback, and it's actually a lot simpler, and let's me do exactly what I wanted. If anyone else wants to do this, it's pretty simple to adapt the "SimpleSineWavePlayer" code from the Chris Adamson book. I ported everything to Swift except the callback, which I know (from previous messages on the CoreAudio list) would be unwise to write in Swift because of performance. It's working great so far. Very happy.
I understand all my emails from yesterday morning actually were making it through to the list. Thanks to Corey, for writing me a quick note to let me know, and saving me further embarrassment. I'd probably still be hitting send otherwise.
Have a great weekend!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden