NSBeep().
http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Miscellaneous/AppKit_Functions/Reference/reference.html#/
/apple_ref/c/func/NSBeep
Best,
Sumanth P.
On Aug 26, 2009, at 12:47 PM, DKJ wrote:
Once upon a time, there was a computer language called BASIC. It was
installed in just about every computer; usually with a soldering
iron. And a favourite beginner programmer project was getting the
computer to emit sounds when keys were pressed. As I recall, there
was something like a "BEEP" command that let you do this quite
easily, and also let you set parameters like duration and frequency.
I've been searching though the iPhone audio API looking for
something similar: i.e. a method that will let me generate a sound
ex nihilo, with a given duration and frequency. But as far as I can
tell, any sound that I want to produce has to use an audio file of
some sort.
Have I missed something simple? If so, please point me to the right
place in the docs.
dkj
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/peddamat%40gmail.com
This email sent to pedda...@gmail.com
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com