Airplay devices and multiple output data sources
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