[Openal] Highest sampling rate for capturing?
Chris Robinson
chris.kcat at gmail.com
Tue Dec 30 08:41:03 PST 2008
On Tuesday 30 December 2008 06:50:30 am E. Wing wrote:
> I am trying to analyze captured samples in real time. I am basically
> throwing my samples at FFTs. The more samples I can get in a shorter
> amount of time, the better. What is the highest sampling rate I rely
> on in OpenAL. And what happens if I specify something higher than
> that?
I think that depends on the implementation/hardware. The capture spec says
that if the requested format (which includes sample rate, AFAIK) isn't
available, the library will convert it before giving you the data. So if your
device can only handle 48khz capture and you ask for 96khz, OpenAL will
resample the data before giving it to you.
It's possible some implementations may just fail if the requested format isn't
available, too. So probably the thing to do would be to try the "ideal"
sample rate, and keep trying a lower value it until one opens.
More information about the Openal
mailing list