[Openal] Highest sampling rate for capturing?

E. Wing ewmailing at gmail.com
Tue Dec 30 10:18:24 PST 2008


On 12/30/08, Chris Robinson <chris.kcat at gmail.com> wrote:
> 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.
> _______________________________________

Thanks, again for the response. I missed the automatic conversion part
in the spec, so I'm glad you found that. I also like your fail idea
too. I think I'll put that in too.

Of course, I think if it is automatically converting, it's not really
going to help me because the data I'm getting in is not as good as I
think it is. Do you know if there is a way to find out what the real
rate is?

Thanks,
Eric


More information about the Openal mailing list