[Openal] Open Capture Device fails with "invalid argument"

Stefan Kögel stefan-wieland.koegel at stud.tu-ilmenau.de
Fri Apr 17 06:08:54 PDT 2009


Looking very good. I added the mmap=false and it works nicely.
Thank you very much Chris.

Playback is currently using SDL, so this should not be affected.

But one thing remains unclear to me: how do I calculate the correct
biffer size.
The reason why I am asking is,  I need to support different sample
frequencies and formats.
For example I would like to capture 44khz 16bit stereo, or 22khz 8bit
mono. I assume I can retrieve samples 10 times a second.
What would be the correct buffer sizes?

Thanks again for your help.

Regards, Stefan
>
> It looks like the capture device is opening, though. It still prints out that 
> message because mmap fails, but it automatically falls back to a non-mmap 
> method in 1.7. If you want to get rid of that warning message, add this to 
> your ~/.alsoftrc:
> [alsa]
> mmap = false
>
> That will disable mmap for both capture and playback, so if mmap for playback 
> works, you may not want to do that.
>
> _______________________________________________
> Openal mailing list
> Openal at opensource.creative.com
> http://opensource.creative.com/mailman/listinfo/openal
>


More information about the Openal mailing list