In message <[EMAIL PROTECTED]>you write: >Hi. I'm writing the alsa plugin for gstreamer. When I go to capture audio, my >loop eats the entire cpu. I set avail_min but still sometimes get out 32 frame >avail values. Here's the relevant portion: > >/* shamelessly stolen from pbd's audioengine. thanks, paul! */
well, it depends on what you do with the playback stream. there isn't much evidence that you do anything to it, which would cause poll(2) to return endlessly. perhaps gst_alsa_release_channel_addresses() does the right thing, i don't know. your code also seems to be assuming that `avail' for the playback stream is the same as for the capture stream. not a good assumption, not good at all. why not just add some g_printf's to see what's going on? --p _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel