Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

alexandergre

macrumors member
Original poster
Jul 28, 2009
58
0
in c#- c++, vis basic there is a method called console.beep(int1, int2);
int1: frequency int2: duration.

however is there such a thing in xCode?
if no can you please tell me a program which can generate sounds with a specified frequency/duration?

Thank you very much.
 
PlayAlertSound doesn't allow you to programatically and independantly set the frequency and duration.

You could write a small audio synthesizer method and feed the resulting audio sample vector to Audio Queues or to the Audio Unit RemoteIO.
 
PlayAlertSound doesn't allow you to programatically and independantly set the frequency and duration.

You could write a small audio synthesizer method and feed the resulting audio sample vector to Audio Queues or to the Audio Unit RemoteIO.

Go with AudioQueues if any, RemoteIO is a powerful beast but its terribly documented and very cryptic to begin with. Use it only if you HAVE to
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.