<div dir="ltr">Makes sense. Since this needs new code for atomically getting a device timer etc., also adding code for this shouldn't be too much of an extra problem although it does add to device maintenance costs.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On 24 January 2014 13:29, Chris Robinson <span dir="ltr"><<a href="mailto:chris.kcat@gmail.com" target="_blank">chris.kcat@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 01/24/2014 03:43 AM, Doug Binks wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
That sounds similar to what we were thinking.<br>
<br>
For device clock, one extra issue is that the programmer needs to know when<br>
to submit the play request in order to ensure the buffer can be queued<br>
before the device mixes the next output buffer. So we may also need to<br>
query the device output buffer size - I'm not sure if that's already in the<br>
extension spec.<br>
</blockquote>
<br></div>
It should be enough for the app to know the update/period time and add that to the retrieved clock time (i.e. a time or frequency derived from UpdateSize). So even if the clock updates just after you read it, you will still specify an equal or larger clock time to get accurate timing.<br>

<br>
Currently you could get that info with the ALC_REFRESH value (update time = clock_res / refresh), although like I noted in another message, that's not the best idea because the refresh is not a logical product of the update size (it currently is, but that's an implementation detail that could change).<div class="HOEnZb">
<div class="h5"><br>
______________________________<u></u>_________________<br>
openal mailing list<br>
<a href="mailto:openal@openal.org" target="_blank">openal@openal.org</a><br>
<a href="http://openal.org/mailman/listinfo/openal" target="_blank">http://openal.org/mailman/<u></u>listinfo/openal</a><br>
</div></div></blockquote></div><br></div>