Read through this: iPhone Core Audio Part 2 – Setting up the AUGraph | Tim Bolstad