PDA

View Full Version : Core Audio mutlichannel audio


tachyon
2005.03.16, 02:55 AM
Hi guys,

I've recently aquired an emagic a26 usb sound card and am having trouble getting core audio to initialize with anything other than 2 channels.

I am using AudioDeviceSetProperty() to set the number of channels. Anything other than 2 returns an error.

The card in windows works fine with multi-channel so i know its not a problem with the card.

Any help would be appriciated.

Thanks.

FCCovett
2005.03.16, 07:11 PM
There's a way to get info on all audio devices installed in your computer, both physical and stream formats. The HALLab source code that comes with Xcode (or CoreAudio SDK) shows you how to play audio throught any number of channels. It's a bit more involved than what is seems.

tachyon
2005.03.18, 04:04 AM
thanks, i had a look at the HALLab example and it was exactly what i needed :)