PlayThru sample code
PlayThru sample code
- Subject: PlayThru sample code
- From: Lieven Dekeyser <email@hidden>
- Date: Tue, 27 Nov 2001 15:25:07 +0100 (CET)
I've put some sample code on my website:
1. HAL
http://studwww.rug.ac.be/~lbdkeyse/softs/opensource/PlayThru_Test.tgz
Simple PlayThru by directly copying data from the input device to the
output device. Uses one simple IOProc when the input device is the same as
the output device, and uses 2 IOProcs which copy data between each oder
using a simple queue.
2. HAL & AudioUnits
http://studwww.rug.ac.be/~lbdkeyse/softs/opensource/PlayThru_Test_2.tgz
Does the same as the first example, but it uses the default output
AudioUnit in stead of using an IOProc for the default output device.
3. HAL & AudioUnits
http://studwww.rug.ac.be/~lbdkeyse/softs/opensource/PlayThru_Test_2.tgz.2
This is an extended version of the second example. I connected a Reverb
AudioUnit to show the power & simplicity of the AudioUnits.
All these examples are little Cocoa projects, but you can use most of the
code in a Carbon project too.
You can use all these examples freely, but use them at your own risk. the
code contains little to no error handling.
Greetz,
Lieven