Cannot set playback device with NSSound
Cannot set playback device with NSSound
- Subject: Cannot set playback device with NSSound
- From: Tamas Nagy <email@hidden>
- Date: Thu, 03 Apr 2014 13:53:54 +0200
Hi,
I know its NSSound, not exactly Core Audio, but I think I found a bug - at least something weird, and would be great to hear your opinion.
Summary:
NSSound setPlaybackDeviceIdentifier: method won't change the playback device to output audio, when in OSX's Sound preferences a device which has multiple output has been set to default - even with an aggregate device.
Steps to Reproduce:
1. in OSX's Sound preferences, set a device to output which has multiple output channels (more then stereo). In case you don't have one, just create an Aggregate device
2. Create an NSSound object, and change the playback device with setPlaybackDeviceIdentifier: to an other then the system default sound output device
3. The NSSound object reports the playback device changes (by asking the method playbackDeviceIdentifier)
4. Sound still outputting to the system-wide sound output.
Sample code:
https://dl.dropboxusercontent.com/u/2533/NSSoundTest.zip
Thanks for any advice!
Tamas
_______________________________________________
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