> Then one needs to find a workaround Hello Martin. Till now, I do not get good result using only snd_pcm_drop to stop the stream.
I m more lucky (with help of PortAudio code) with snd_pcm_drain. int alsa_object_flush(struct audio_object *object) { struct alsa_object *self = to_alsa_object(object); if (self && self->handle){ snd_pcm_nonblock(self->handle, 0 ); // adding this snd_pcm_drain(self->handle); snd_pcm_drop(self->handle); // if not ---> crash when stop/start } IMHO the result is better (even if there is still a little "click" when changing frequency.) Fre;D PS: We will find the cause of the problem and fix it, sure. -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk