Hi list,

This is my first here post so please be gentle :)
Here is the content of a bug report (radar 23008804) I've sent to Apple one 
week ago, but got no response. So I'm hoping someone here can help.

=====================================================================================
Since 10.11, Core Audio can't list the airplay devices *except if the System 
Preferences audio pane is open*

Many well known apps are impacted by this : Vox.app, VLC etc...
I've referenced several messages on internet related to this major problem:
https://forums.developer.apple.com/thread/17664 
<https://forums.developer.apple.com/thread/17664>
http://forum.kodi.tv/showthread.php?tid=241068 
<http://forum.kodi.tv/showthread.php?tid=241068>
http://support.coppertino.com/discussions/problems/2720-no-airplay-options-on-os-x-1011
 
<http://support.coppertino.com/discussions/problems/2720-no-airplay-options-on-os-x-1011>
http://support.coppertino.com/discussions/problems/2718-airplay-behaving-weird-on-el-capitan
 
<http://support.coppertino.com/discussions/problems/2718-airplay-behaving-weird-on-el-capitan>

I've made a simple project to demonstrate the bug, it is ready to build and can 
be downloaded here: http://www.carrafix.com/airplaybugproof/airplaybugproof.zip 
<http://www.carrafix.com/airplaybugproof/airplaybugproof.zip>

Steps to Reproduce:
1. Ensure you have Airplay audio devices around such as an AppleTV or any other 
Airplay compatible device for audio.
2. Ensure the System Preferences is quit
3. *Build* the attached xcode project. the main idea is that it lists all 
devices Core Audio can find.
4. Now *run* the app, it won't list any Airplay devices. On my machine here is 
the output:
"list of all Core Audio devices
3 devices found:
2015-10-07 14:26:35.275 airplaybugproof[12718:1575252] device ID:51:
2015-10-07 14:26:35.275 airplaybugproof[12718:1575252]  
kAudioDevicePropertyDeviceUID: AppleHDAEngineInput:1B,0,1,0:1 
<mailto:AppleHDAEngineInput:1B,0,1,0:1>
2015-10-07 14:26:35.276 airplaybugproof[12718:1575252]  
kAudioDevicePropertyDeviceNameCFString: Built-in Microphone
2015-10-07 14:26:35.276 airplaybugproof[12718:1575252] device ID:57:
2015-10-07 14:26:35.276 airplaybugproof[12718:1575252]  
kAudioDevicePropertyDeviceUID: AppleHDAEngineOutput:1B,0,1,2:0 
<mailto:AppleHDAEngineOutput:1B,0,1,2:0>
2015-10-07 14:26:35.276 airplaybugproof[12718:1575252]  
kAudioDevicePropertyDeviceNameCFString: Built-in Output
2015-10-07 14:26:35.276 airplaybugproof[12718:1575252] device ID:38:
2015-10-07 14:26:35.276 airplaybugproof[12718:1575252]  
kAudioDevicePropertyDeviceUID: AppleUSBAudioEngine:Apple Inc.:Display 
Audio:162B0D4D:2,1 <mailto:Audio:162B0D4D:2,1>
2015-10-07 14:26:35.277 airplaybugproof[12718:1575252]  
kAudioDevicePropertyDeviceNameCFString: Display Audio"

5. Open System Preferences and go to the Sound pane. Ensure you have Airplay 
devices around, they should be listed.
6. (Quit and) run the app again and you'll see that Airplay devices are now 
listed such as my output:
list of all Core Audio devices
4 devices found:
2015-10-07 14:25:51.252 airplaybugproof[12712:1571715] device ID:46:
2015-10-07 14:25:51.252 airplaybugproof[12712:1571715]  
kAudioDevicePropertyDeviceUID: AirPlay
2015-10-07 14:25:51.253 airplaybugproof[12712:1571715]  
kAudioDevicePropertyDeviceNameCFString: AirPlay
2015-10-07 14:25:51.253 airplaybugproof[12712:1571715] device ID:51:
2015-10-07 14:25:51.253 airplaybugproof[12712:1571715]  
kAudioDevicePropertyDeviceUID: AppleHDAEngineInput:1B,0,1,0:1 
<mailto:AppleHDAEngineInput:1B,0,1,0:1>
2015-10-07 14:25:51.254 airplaybugproof[12712:1571715]  
kAudioDevicePropertyDeviceNameCFString: Built-in Microphone
2015-10-07 14:25:51.254 airplaybugproof[12712:1571715] device ID:57:
2015-10-07 14:25:51.254 airplaybugproof[12712:1571715]  
kAudioDevicePropertyDeviceUID: AppleHDAEngineOutput:1B,0,1,2:0 
<mailto:AppleHDAEngineOutput:1B,0,1,2:0>
2015-10-07 14:25:51.254 airplaybugproof[12712:1571715]  
kAudioDevicePropertyDeviceNameCFString: Built-in Output
2015-10-07 14:25:51.254 airplaybugproof[12712:1571715] device ID:38:
2015-10-07 14:25:51.254 airplaybugproof[12712:1571715]  
kAudioDevicePropertyDeviceUID: AppleUSBAudioEngine:Apple Inc.:Display 
Audio:162B0D4D:2,1 <mailto:Audio:162B0D4D:2,1>
2015-10-07 14:25:51.255 airplaybugproof[12712:1571715]  
kAudioDevicePropertyDeviceNameCFString: Display Audio


Expected Results:
Airplay devices should always be liste, whatever the state of System Prefereces 
Sound pane is, as it has always be since 10.8 (at least) !

Actual Results:
No airplay device is listed until the System Preferences Sound pane is opened

Notes:
This problem is new in El Capitan. It worked perfectly since 10.8 at least.
===================================================================================

If anyone can help on this problem, please do. 
I'm considering implementing my own Airplay stack to stream to an airplay 
device. But this is quite a big task and Core Audio fitted my needs perfectly 
until 10.11...
Thanks!





 _______________________________________________
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