Hey James,

I have a couple questions:

1. If I set a bogus string, or a UID of a device that is not present anymore, 
will the device remain unchanged or go back to the default device? Do we need 
to communicate this error to the user though NSError and/or BOOL?

2. What happens to my AVAudioPlayer when I set currentDevice, and then that 
device is later removed from the system? 

Dan

> On Jan 24, 2017, at 1:02 PM, James McCartney <[email protected]> wrote:
> 
> The proposal is to add a property to AVAudioPlayer in support of whole house 
> audio. 
> AVAudioPlayer is a class within the AVFoundation framework.
> 
> @property(copy, nullable) NSString *currentDevice; /* the UID of the current 
> device (as a string) */
> 
> This allows setting the AVAudioPlayer to play from a specific audio device.
> Previously AVAudioPlayer has always played from the default device. Setting 
> this property to nil will have it go back to the default device.
> The device UID string from can be obtained from the CoreAudio.framework API 
> AudioObjectGetPropertyData with property kAudioDevicePropertyDeviceUID.
> 
> James McCartney
> Apple CoreAudio
> [email protected] <mailto:[email protected]>
> 
> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Coreaudio-api mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/coreaudio-api/dklingler%40apple.com
> 
> This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to