iPhone AudioSessionSetProperty
<p>I got the below code from some example code.
What could possibly cause it to throw a CAXException?</p>

<p>I've loaded the AudioToolbox framework, am I missing anything?</p>

<p>Thanks,
Tee</p>

<p>UInt32 category = kAudioSessionCategory_RecordAudio;
XThrowIfError(AudioSessionSetProperty(kAudioSessionProperty_AudioCategory, sizeof(category), &amp;category), "couldn't set audio category123!");</p>
