Re: Adjust the volume of individual airplay devices
Re: Adjust the volume of individual airplay devices
- Subject: Re: Adjust the volume of individual airplay devices
- From: Patrick Dehne <email@hidden>
- Date: Thu, 30 May 2013 20:39:23 +0200
Sorry for not describing exactly what I am trying to achieve but english is not my native language. I hope some source code will make it clearer:
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);
}
}
}
If dataSourcesToSelect has more than one entry multiple data sources are selected and are playing audio. But which one is the currently selected item? Probably both.
--
Thanks,
Patrick
On 30.05.2013, at 20:25, Jeff Moore <email@hidden> wrote:
> As I said, you can only change the volume of the currently selected AirPlay device. So, if the data source has two items, AppleTV1 and AppleTV2, and AppleTV1 is the currently selected item, then you can only change the volume on AppleTV1.
>
> --
>
> Jeff Moore
> Core Audio
> Apple
>
>
>
> On May 30, 2013, at 11:15 AM, Patrick Dehne <email@hidden> wrote:
>
>> Right, there is one currently selected AirPlay audio device and I can change its volume. For the AirPlay audio device I have successfully selected multiple data sources (physical airplay devices) and audio is played on all selected data sources simultaneously. Can I change the volume of the data sources somehow?
>
>
> _______________________________________________
> 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
>
_______________________________________________
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