Apologies if this is an obvious question, but I'm a new C++ programmer for Mac OS ...
and I'm trying to figure out a simple way to play a tone of a set frequency.
New to C++, or new to Mac OS X, or both?
New to programming in general? I.e. is C++ on Mac OS X your first programming language? If not, what other languages do you know?
What have you tried? Be specific.
If you used a search engine, what did you search for? What did you find?
When I google this: os x c++ audio library, I see the two top results are irrKlang and PortAudio.
If you're learning from a book, online tutorial, or video tutorial, which one? Title, author, and edition for a book; URL(s) for online resources.
Just looking for a simple way to make a tone- on windows would use the beep(freq,duration) command but googled extensively and couldn't find a mac equivalent.
Audio Queue API, Audio Unit API, CoreMIDI
Non of them will actually let you create a tone by them selves the way the OP requested though. Only the Audio Unit API is related, and it's part of Core Audio.
Edit: to clarify, something similar to: beep(freq,duration), although IMO the use of such a function is very limited. Core Audio on the other hand is very powerful.
OK, I looked up Core Audio on the apple developers sight and I see that it in theory gives you access to systems sounds, which is good, but in practice the rest of it was way over my head. Could someone give me some tips on how you would actually code something to make a tone of a given frequency using this? Many thanks in advance for any help.