Re: [Alsa-user] Capture on demand with ALSA

2006-04-18 Thread Alfons Adriaensen
On Tue, Apr 18, 2006 at 01:57:57PM +0200, Tobias Urban wrote: > I have already tried the snd_pcm_drain() function but this did not work with > my capture stream. Now I am trying a direct MMAP access - call hesync, > receive pointer, begin, read sample data, commit. However, the official ALSA > exa

[Alsa-user] Capture on demand with ALSA

2006-04-18 Thread Tobias Urban
Hallo, currently I am working on sound localization an for this reason I would like to extract - an amount of 1024 samples (contiguous ones) - from a never stopping ring buffer (stop threshold = boundary) - simultanously from two different sound cards with ALSA when I need a set of samples for fur