• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Cannot set playback device with NSSound
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Can't set kAudioSubDevicePropertyDriftCompensation
  • Next by Date: Re: Can't set kAudioSubDevicePropertyDriftCompensation
  • Previous by thread: Re: Can't set kAudioSubDevicePropertyDriftCompensation
  • Next by thread: Enumerating Airplay devices
  • Index(es):
    • Date
    • Thread