Re: MOTU 896 vs. MOTU 896HD
Re: MOTU 896 vs. MOTU 896HD
- Subject: Re: MOTU 896 vs. MOTU 896HD
- From: Jeff Moore <email@hidden>
- Date: Wed, 18 Jan 2006 12:07:46 -0800
The problem is that you are totally failing to account for the fact
that different devices can have different stream layouts. In fact,
the code you provided shows a common mistake that developers make. It
will only ever affect the first stream on the device. Since the 896
and the 896HD are both multi-stream devices and yet have different
streams layouts, your code doesn't work with them. It will also fail
on devices like the Metric Halo devices where each channel is in it's
own stream.
In order to work correctly with multi-stream, you must manage format
info at the AudioStream level, as opposed to the AudioDevice level.
This means you have to get the stream list from the device and walk
it to discover/change the format on each stream.
On Jan 18, 2006, at 12:17 AM, Christof Faller wrote:
Dear list,
I have a software that uses N output channels (N = 2...32, whatever
desired).
With the MOTU 896 I can initialize with the code below. When I set
MOTU analog
as default device in Audio MIDI Setup and run this code I will
initialize with
8 channels.
However, the same with the MOTU 896HD gives me only two channels,
despite of
choosing the MOTU "analog", where it shows in the Audio MIDI Setup
8 channels.
Does anyone have a clue why that is? (Also, interestingly the same
method
for audio input works on both, 896 and 896HD).
--
Jeff Moore
Core Audio
Apple
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden