Re: [Alsa-user] Re-opening an ALSA connection

2016-09-26 Thread Johannes Lorenz
On Monday 26 September 2016 10:05:04 Clemens Ladisch wrote: > > * Do you need to init the hardware parameters again? > > No. When you get -ESTRPIPE, the stream was suspended, and all you have > to do is to reinitialize it with snd_pcm_prepare() or snd_pcm_recover(). Thanks, snd_pcm_recover() w

Re: [Alsa-user] Re-opening an ALSA connection

2016-09-26 Thread Clemens Ladisch
Johannes Lorenz wrote: > the C++ app I am working on uses ALSA and usually works. However, when I s2ram > my computer while an ALSA connection is active, and the computer starts again, > the connection is broken (snd_pcm_writei returns < 0). In that case, I'd like > to reopen the connection. This r