• 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
Re: Outputing to different Channels on a Device
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Outputing to different Channels on a Device


  • Subject: Re: Outputing to different Channels on a Device
  • From: Marc Van Olmen <email@hidden>
  • Date: Thu, 28 Sep 2006 19:55:02 -0400

ok I tried many more combinations but nothing worked.
For example this one also gave an error:

 aChannelMap[0] = aDeviceChannelOutputLeft;
 aChannelMap[1] = aDeviceChannelOutputRight;

 BAIL_OSERROR(AudioUnitSetProperty(fOutputAudioUnit,
 			kAudioOutputUnitProperty_ChannelMap,
 			kAudioUnitScope_Output,
 			1,
 			aChannelMap,
 			8));


I know that it should work because with AULab I can address the different channels.


so just need to figure out how to put this thing in code.

still searching...

marc




marc

I tried the follow this functions deoesn't give an error back anymore
but still all sounds go to channel 0,1 on device..


BAIL_OSERROR(AudioUnitSetProperty(fOutputAudioUnit, kAudioOutputUnitProperty_ChannelMap, kAudioUnitScope_Global, 1, aChannelMap, aSizeOfChannelMem));

So not sure what to do ....

On 28 Sep 2006, at 01:54, Marc Van Olmen wrote:

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


_______________________________________________ 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>
References: 
 >Outputing to different Channels on a Device (From: Marc Van Olmen <email@hidden>)
 >Re: Outputing to different Channels on a Device (From: Marc Van Olmen <email@hidden>)

  • Prev by Date: Re: how to properly rename classes in a custom Cocoa view
  • Next by Date: stereo-mono conversion: Sound Manager vs. AudioConverter
  • Previous by thread: Re: Outputing to different Channels on a Device
  • Next by thread: Re: Outputing to different Channels on a Device
  • Index(es):
    • Date
    • Thread