Re: RS: basic sound tool
Re: RS: basic sound tool
- Subject: Re: RS: basic sound tool
- From: "I. Savant" <email@hidden>
- Date: Sat, 7 Jul 2007 20:49:43 -0400
On Jul 7, 2007, at 7:24 PM, Roland Silver wrote:
Is there a basic sound tool, in the form of a C-function or
Objective-C method, that causes sound to be emitted from the Mac
loudspeaker (for example, for definiteness, a 440 Hz sine wave, for
1 sec)?
NSBeep()? ;-)
Seriously, though, you might want to check out CoreAudio for such
specific frequency generation.
As to hitting a specific audio output device, it's possible, but
you should defer to the user's preference, since the audio device you
selected for output may not even be powered on / plugged in / whatever.
Also, assuming only the default audio output, if they've got
something plugged into the headphone jack, you won't hit the internal
speaker. I'm not sure it's possible to bypass this particular
roadblock with software.
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden