On Aug 17, 2006, at 7:47 PM, Bob Wyttenbach wrote:

Has anyone written RB classes to handle simple audio io?

It depends what you mean by simple i/o.

I want to read from the microphone or line input for a simple oscilloscope-like display.

Again, it really depends on what you mean by simple oscilloscope-like display. If you're looking for the level of audio coming in, then Real Capture Canvas can do what you want.

http://realcapture.com

If, however, you want something more sophisticated like calculating the frequency of incoming audio (or really any other FFT-type task), then you're going to have to get your hands (most likely very) dirty. For Mac OS X, you'd need to dig into the CoreAudio API. I'm less comfortable recommending the best solution on Windows.

Sending brief pulses out the headphone jack (to trigger external equipment) would also be useful.

This is another task altogether. What kind of pulse? Would a sine wave suffice? If so, I probably have some Mac code you could use for this.

I need a solution for OSX and Windows.

Except for high level APIs (like QuickTime), audio usually requires some heavy lifting. Additional platforms only increase that workload; sometimes considerably.

I assume this must be done with declares to the system API, since it doesn't seem to exist in RB itself.

Yes, probably so.

I'm comfortable working with declares if someone tells me what belongs in them, but I'm surprised this functionality doesn't already exist in RB.

I'm not surprised. It can get pretty complex. And many of those types of users don't use REALbasic.

Have I missed it?

No, don't think so.

Regards,
Erick
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to