MaxOutputChannels reported as zero on MacOS X, V18
Matthew Marks <matthew <at> rd.bbc.co.uk>
2004-12-01 17:52:25 GMT
Hello. I've searched your mailing list archive and I don't think this is
mentioned - apologies if I missed it.
I've compiled an app, so far on x86 Linux (SuSE 9.2 - kernel 2.6.something)
and MacOS X (Panther; kernel 7.6.0).
On Linux, Pa_GetDeviceInfo(Pa_GetDefaultInputDeviceID())->maxOutputChannels
is 16, which is a little odd as it's using onboard stereo sound on a Dell
box. But for the same source code, on the Mac (Powermac G5; onboard
sound), it's reported as zero, which was causing my app to report that
there were too many channels in any file I tried to play. When I bypassed
this check, it worked, so it looks like it's just this value which isn't
When building Portaudio on the Mac, I had to specify -framework
AudioToolbox for it to link, as well as make a couple of other changes.
I do appreciate, from searching through the archive, that it's not trivial
to determine the number of channels, so it might just be "one of those
things", and may be fixed in V19 anyway.