MOTU 896 vs. MOTU 896HD
MOTU 896 vs. MOTU 896HD
- Subject: MOTU 896 vs. MOTU 896HD
- From: Christof Faller <email@hidden>
- Date: Wed, 18 Jan 2006 09:17:57 +0100
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).
Any suggestions are appreciated, Christof
/* set output stream format */
myErr = -1;
i = 17;
while (i >= 2 && myErr != 0) {
i--;
streamDeviceOut.mSampleRate = SAMPLE_RATE1;
streamDeviceOut.mFormatID = kAudioFormatLinearPCM;
streamDeviceOut.mFormatFlags =
kLinearPCMFormatFlagIsFloat |
kLinearPCMFormatFlagIsBigEndian |
kLinearPCMFormatFlagIsPacked;
streamDeviceOut.mBytesPerPacket = i*4;
streamDeviceOut.mFramesPerPacket = 1;
streamDeviceOut.mBytesPerFrame = i*4;
streamDeviceOut.mChannelsPerFrame = i;
streamDeviceOut.mBitsPerChannel = 32;
size = sizeof(streamDeviceOut);
myErr = AudioDeviceSetProperty(
outputDeviceID,
NULL, 0, 0,
kAudioDevicePropertyStreamFormat,
size, &streamDeviceOut);
}
if (myErr != noErr) {
fprintf(stderr, "Could not set stream format for output
device!\n");
exit(0);
}
NOUTCHAN1 = i;
printf("Number of device output channels: %d\n", NOUTCHAN1);
_______________________________________________
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