[vlc-devel] [PATCH 3/6] aout: use a seperate drain callback

Rémi Denis-Courmont remi at remlab.net
Tue Mar 12 18:50:48 CET 2019


Le tiistaina 12. maaliskuuta 2019, 19.36.30 EET Thomas Guillem a écrit :
> On Tue, Mar 12, 2019, at 18:05, Thomas Guillem wrote:
> > On Tue, Mar 12, 2019, at 17:46, Rémi Denis-Courmont wrote:
> > > Le tiistaina 12. maaliskuuta 2019, 17.23.51 EET Thomas Guillem a écrit :
> > > > This callback is not mandatory. If it is NULL, the core will wait for
> > > > the
> > > > delay returned by time_get(). This was already the case for most aout
> > > > plugins: PulseAudio, coreaudio, Android, DirectSound, Wasapi, and
> > > > Jack.
> > > > 
> > > > Note: The drain implementation of PulseAudio was removed since
> > > > pa_stream_drain() never worked for our case.
> > > 
> > > Excuse me? Waiting for completition did not work at some point, but that
> > > does not mean that you can altogether remove the call.
> > 
> > OK, I'll try to add it back. But from my last tries, there were no way
> > to fetch the drain state.
> 
> As a workaround  for the drain state not being notified, I can call pa_drain
> and add a timer corresponding to the delay.

For PulseAudio, you can do that if you don't trust the callback.

For ALSA, I don't know any way to avoid blocking.

-- 
雷米‧德尼-库尔蒙
http://www.remlab.net/





More information about the vlc-devel mailing list