Re: Sound Manager?
Re: Sound Manager?
- Subject: Re: Sound Manager?
- From: Uli Kusterer <email@hidden>
- Date: Wed, 3 May 2006 22:24:40 +0200
Am 03.05.2006 um 21:35 schrieb Shon Frazier:
The Sound Manager APIs are deprecated. What's the replacement under
Cocoa?
Official word is that you should use CoreAudio instead, or NSSound
if you have it. IIRC newer versions of OS X also come with OpenAL, an
open-source layer above the official audio APIs.
Specifically: I need to know when the system sound volume changes.
I'd also like to know whether headphones are plugged in.
1) Is there such a thing as a sound volume changed notification? If
so, how do I register for it?
2) The sound preferences pane in System Preferences tells me
whether I'm using internal speakers vs. headphones - how does my
code get that information?
I don't think there's anything like #1, even if you use the Sound
Manager. I don't know at all about #2.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden