Paul Davis <[EMAIL PROTECTED]> writes: > >just writing a recording app with alsa lib i found i need > >to use > > > >snd_pcm_start(chandle); > > > >Why? What does it do? > > the hardware of audio interfaces doesn't activate all by itself - it > needs to be told to start processing i/o and generating interrupts. > > when you open a handle on either the playback or capture stream, ALSA > doesn't start the hardware running. it only does that when you tell it > to, with snd_pcm_start(). without this design, there would be no way > to stop and restart the hardware without closing/reopening the card, > which is a silly model to be using. >
Aha. Thanks, Paul. jm -- .- Dipl.-Ing. Jan-Mark Batke -- TU Berlin·Secretary FT 5-1 . Phone: ++49 30 314-2 45 78 Fachgebiet Fernmeldetechnik Fax: ++49 30 314-2 25 14 (Telecommunications Group) http://www-ft.ee.tu-berlin.de/~batke ------.¸.·¸.·´¯`·.¸.·. _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel