CoreAudio Guides and Tutorials

4 posts / 0 new
Last post
bensmiley
CoreAudio Guides and Tutorials

If you find any good CoreAudio tutorials or guides link to them here. There are good guides around but sometimes they're pretty hard to find.

bensmiley

I've written a comprehensive CoreAudio tutorial which will help you get started using CoreMidi and setting up AudioUnits. I've also written a guide to using mixers to mix multiple audio inputs. Finally, I maintain a links page of all the useful CoreAudio guides I've found which can be found here: CoreAudio guides. If you've found any useful pages you can link to them here.

simmonsp2

I have gone thru the Ultimate Midi Tutorial but I do not see how/where I can intercept the sound buffer to add an effect.

Can you point me in the right direction?

Thanks

-Pat

bensmiley

I don't think you'd need to intercept the sound buffer. It depends on how you're doing it. I'd recommend that you us an audio effects unit. Take a look at AUComponent.h in AudioUnit.framework. You should find the kAudioUnitSubType_Reverb2 reverb unit. This can be attached between the mixer unit and the IO unit in the Audio Manager class. Set up your new unit at the top of the createAUGraph function like I've don with the other modules. Next, find the line:

  1. // Connect the output of the mixer node to the input of he io node
  2. result = AUGraphConnectNodeInput (_processingGraph, mixerNode, 0, ioNode, 0);

Here, we're connecting the mixerNode with the ioNode. You would want to connect the mixer node to your reverb node and then connect the reverb node to the ioNode.

Hope this helps.

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. The supported tag styles are: <foo>, [foo].
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.