hi,
I want to play 3 files (english,french,spanish) to different audio
channels of a device.
Letting 3 streams playing to default output channels seems to work
fine. I'm creating AudioUnit for each of them.
But I have trouble trying let it playback to its other channel.
So now I want to playback French file to channel 2 and 3 of a
device which has 12 outputs (decklink card).
I retreived the number of channels by Using HALLab (info button):
but also by this code:
anError = AudioDeviceGetProperty(fAudioDeviceID, 0,
kOutputAudioDevice, kAudioDevicePropertyStreamConfiguration,
&aPropertySize, aBufferList);
if (!anError) {
for (i = 0; i < aBufferList->mNumberBuffers; ++i) {
anAnswer += aBufferList->mBuffers[i].mNumberChannels;
}
}
OS_Pointer_Free(aBufferList);
which gives 1 buffer and 12 channels back.
So quickly tested this code...
aChannelMap[0] = -1;
aChannelMap[1] = -1;
aChannelMap[2] = 0;
aChannelMap[3] = 1;
aChannelMap[4] = -1;
aChannelMap[5] = -1;
aChannelMap[6] = -1;
aChannelMap[7] = -1;
aChannelMap[8] = -1;
aChannelMap[9] = -1;
aChannelMap[10] = -1;
aChannelMap[11] = -1;
BAIL_OSERROR(AudioUnitSetProperty(fOutputAudioUnit,
kAudioOutputUnitProperty_ChannelMap,
kAudioUnitScope_Input,
1,
aChannelMap,
aSizeOfChannelMem));
but it returns 'fmt?'
any thoughts?,
marc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40sky4studios.be
This email sent to email@hidden