I am writing a program that includes playing sine waves and a combination of sine waves ... it should work on a Mac, and I'm looking for a simple API that I can use. I am open to ObjC, C, C ++, Ruby, Python, etc. I don't care what language it is, so far it is just a few lines of code. But Ruby would be nice :-)
On Linux, you can write in / dev / dsp, / dev / sound, etc., but not on mac. I know how to generate a sine wave, but the problem is getting the PCM samples that I create for the audio equipment. I know the sample code in / Developer / Examples / CoreAudio / SimpleSDK / DefaultOutputUnit, but it's a few hundred lines of funny Core Audio / AudioUnit code, and I want something simple with it.
source
share