On 03/13/2018 09:04 PM, fredvs wrote:
>> 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); <<<<<-----
This probably will delay the flush operation which is undesirable.
I made a bug report:
http://mailman.alsa-project.org/pipermail/alsa-devel/2018-March/133323.html
Martin
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk