• 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
Airplay devices and multiple output data sources
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Airplay devices and multiple output data sources


  • Subject: Airplay devices and multiple output data sources
  • From: Patrick Dehne <email@hidden>
  • Date: Sun, 15 Jun 2014 13:02:08 +0200

In earlier versions of Mac OS X I was able to select multiple output data sources of the Airplay device. This way it was possible to do synchronized playback on multiple physical airplay speakers.

Here is the code I am using:

void selectDataSourcesForOutput(const Array<OSType>& dataSourcesToSelect)
{
	if (deviceID != 0)
	{
		if(dataSourcesToSelect.size() > 0)
		{
			HeapBlock <OSType> dataSourcesToSelectMemory;
			dataSourcesToSelectMemory.calloc(dataSourcesToSelect.size());

			for(int i=0; i<dataSourcesToSelect.size(); i++)
				dataSourcesToSelectMemory[i] = dataSourcesToSelect[i];

			AudioObjectPropertyAddress pa;
			pa.mSelector = kAudioDevicePropertyDataSource;
			pa.mScope = kAudioDevicePropertyScopeOutput;
			pa.mElement = kAudioObjectPropertyElementMaster;

			AudioObjectSetPropertyData (deviceID, &pa, 0, 0, sizeof(OSType) * dataSourcesToSelect.size(), dataSourcesToSelectMemory);
		}
	}
}

This stopped working with 10.9. There is no error but output only goes to the first data source.

Is this a bug or did it only work by accident in previous versions and I am misusing the CoreAudio API?

Thanks,
Patrick
 _______________________________________________
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


  • Prev by Date: How to get time offset to Audio Queue's time slice border
  • Next by Date: AirPlay and AVAudioSessionCategoryPlayAndRecord
  • Previous by thread: How to get time offset to Audio Queue's time slice border
  • Next by thread: AirPlay and AVAudioSessionCategoryPlayAndRecord
  • Index(es):
    • Date
    • Thread