<!DOCTYPE html><html><head><title></title><style type="text/css">#fastmail-quoted p.fastmail-quoted-MsoNormal,#fastmail-quoted  p.fastmail-quoted-MsoNoSpacing{margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;}

p.MsoNormal,p.MsoNoSpacing{margin:0}
p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div><br></div><div>On Tue, Mar 12, 2019, at 22:25, Rémi Denis-Courmont wrote:<br></div><blockquote id="fastmail-quoted" type="cite"><div>Last I checked, we try to keep at least 100 ms buffer (or do we not anymore?) with 40 ms period, so then we'll never underrun by waiting 40 ms. But if you want to cut that for low latency filtering, there's going to be a problem.<br></div><div><br></div><div>And that's not just ALSA. All aouts will potentially need fixing.<br></div></blockquote><div><div><br></div><div>One question: if we choose low latency, we must reduce the period too. In any case we must have buffer > period * 2, do we agree ?<br></div><div><br></div><div>If the previous statement is true, my current patch won't (theoretically) cause any underrun. Maybe it should tell the core to wait for period T instead of buffer_len / 2.</div><div>But waiting only for period might me not enough like you explained, so we may end up sleeping/waking 2 times. If we sleep 2 times, we wait for 2*T periods, that is dangerously approaching buffer starvation. That plus the fact that we'll wake the CPU way more often, so yes POLL out might be a good idea.<br></div><div><br></div><div>Thanks for your explanation anyway.<br></div><div><br></div></div><blockquote id="fastmail-quoted" type="cite"><div><br></div><div class="fastmail-quoted-gmail_quote"><div>Le 12 mars 2019 23:10:12 GMT+02:00, "Rémi Denis-Courmont" <remi@remlab.net> a écrit :<br></div><blockquote class="fastmail-quoted-gmail_quote" style="margin-top:0pt;margin-right:0pt;margin-bottom:0pt;margin-left:0.8ex;border-left-color:rgb(204, 204, 204);border-left-style:solid;border-left-width:1px;padding-left:1ex;"><div>No space is okay on a spurious basis, sure. But you don't want to busy loop or to have stupidly short timers.<br></div><div><br></div><div class="fastmail-quoted-gmail_quote"><div>Le 12 mars 2019 21:59:30 GMT+02:00, Thomas Guillem <thomas@gllm.fr> a écrit :<br></div><blockquote class="fastmail-quoted-gmail_quote" style="margin-top:0pt;margin-right:0pt;margin-bottom:0pt;margin-left:0.8ex;border-left-color:rgb(204, 204, 204);border-left-style:solid;border-left-width:1px;padding-left:1ex;"><div><br></div><div>On Tue, Mar 12, 2019, at 20:48, Rémi Denis-Courmont wrote:<br></div><blockquote type="cite" id="fastmail-quoted-fastmail-quoted"><div><br></div><div>Wait less than necessary and you might have no space. Wait more and you risk an underrun.<br></div></blockquote><div><br></div><div>No space is okay. The play must be in a loop and you should always wait a little less than calculated. Maybe this approach is not precise enough, but I think it's ok for our usecase. <br></div></blockquote></div></blockquote></div><div><br></div><div>-- <br></div><div>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté. <br></div><div>_______________________________________________<br></div><div>vlc-devel mailing list<br></div><div>To unsubscribe or modify your subscription options:<br></div><div>https://mailman.videolan.org/listinfo/vlc-devel<br></div></blockquote><div><br></div></body></html>