[vlc-devel] Reworking OpenSLES audio output

Rémi Denis-Courmont remi at remlab.net
Wed May 4 10:19:48 CEST 2011


   Hello,

On Tuesday 03 May 2011, Hugo Beauzee-Luyssen wrote:
> 2011/5/3 Rémi Denis-Courmont <remi at remlab.net>:
> >   Hello,
> > 
> > On Tuesday 03 May 2011, Hugo Beauzee-Luyssen wrote:
> >> Yep I was kinda affraid of that... would having some kind of
> >> "available buffers" counter that gets incremented by the OpenSLES
> >> callback, and decremented by the aout thread at each queued buffer
> >> would be enough ?
> > 
> > Uh? No?
> 
> As I clearly don't have any idea of what would be the best solution,
> I'd love some piece of advice so the code can be merged faster.

I don't know OpenSL, I can't tell you that.

> >> I'd say having a waid condition in the Play() function is a *really*
> >> bad idea, I guess you will confirm.
> > 
> > It would be bad, but no worse than waiting in the callback.
> 
> If you come to understand I was planning on waiting in the callback,
> then I've been misunderstood.

Either the OpenSL buffer is larger than VLC's, or you'll need to wait 
somewhere.

-- 
Rémi Denis-Courmont
http://www.remlab.info



More information about the vlc-devel mailing list