Hi everybody,

i compiled the example code to capture data in
"A Tutorial on Using the ALSA Audio API".

It works fine as it is.

I then put everything except "readi()" into an
init() function and just "readi()" into a capture()
function.

When i now call init() once and capture() several
times, everything is ok.

But whenever there's a delay between the calls to
capture, it dies with "Speicherzugriffsfehler",
i think that translates to "Memory access error".

I don't know why it is like this, but i hate it.

How can i change it to work?

I think i need to add calls to snd_pcm_pause()?


Thanks for any hints,
Torsten.



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to