[Openal] Capture audio, send to output source
Jason Daly
jdaly at ist.ucf.edu
Tue Jul 29 17:02:23 PDT 2008
Darren Rook wrote:
> Thanks for your response. I am using the standard 1.1 SDK on Windows.
> I am not using ALUT (not sure If I need to), I am using the alc()
> functions.
>
> I am new to OpenAL and have recently learned that the Soft OpenAL is
> the maintained version?
>
Sorry, I started composing this 6 hours ago, then just forgot about it!
The SDK is also maintained by Creative (OpenAL-Soft is actually based on
the open-source version of the SDK. The one you want to avoid is the
old sample implementation (OpenAL-Sample in the SVN repository).
ALUT isn't necessary, as long as you're opening the device and setting
up the context(s) properly.
To keep your sound card from starving, you might have to make your
buffers a bit larger (and accept a bit more latency), or service them
more often (and accept a bigger hit on the CPU). You definitely don't
want to be running out of data and having to restart the device over and
over again.
OpenAL wasn't really designed to be a real-time low-latency API (though
the better implementations do try as best as they can). If you really
need super-low latency, you might want to look at ASIO, although the API
isn't nearly as nice to use (IMHO), and you'll need a sound driver that
supports it.
--"J"
More information about the Openal
mailing list