• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Outputing to different Channels on a Device
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Outputing to different Channels on a Device


  • Subject: Outputing to different Channels on a Device
  • From: Marc Van Olmen <email@hidden>
  • Date: Thu, 28 Sep 2006 01:54:47 -0400

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Outputing to different Channels on a Device
      • From: Marc Van Olmen <email@hidden>
  • Prev by Date: Corrected tutorial in Audio Unit Programming Guide
  • Next by Date: Re: Outputing to different Channels on a Device
  • Previous by thread: Corrected tutorial in Audio Unit Programming Guide
  • Next by thread: Re: Outputing to different Channels on a Device
  • Index(es):
    • Date
    • Thread