ios - Using Audio Units to play several short audio files with overlap -
i have run through audio units tutorial sine wave generator , done bit of reading, , understand how working. app, play short sound file in response external event. these sounds 1-2 seconds in duration , occur @ rate of about 1-2 per second.
basically @ right trying figure out how play actual audio file using audio unit, rather generating sine wave. question is, how audio unit play audio file?
do read bytes audio file buffer in render callback? (if class need deal open / convert / decompress / read audio file)
or there simpler method maybe hand off entire buffer , tell play?
any names of specific classes or apis need @ accomplish helpful.
ok, check this: http://developer.apple.com/library/ios/samplecode/mixerhost/introduction/intro.html
edit: sample project. page has detailed instructions inline code setup common configurations: http://developer.apple.com/library/ios/ipad/#documentation/musicaudio/conceptual/audiounithostingguide_ios/constructingaudiounitapps/constructingaudiounitapps.html#//apple_ref/doc/uid/tp40009492-ch16-sw1
Comments
Post a Comment