<br><br><div class="gmail_quote">On Fri, Jul 31, 2009 at 3:06 PM, Robert O'Callahan <span dir="ltr"><<a href="mailto:robert@ocallahan.org">robert@ocallahan.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Sat, Aug 1, 2009 at 12:20 AM, David Wilson <span dir="ltr"><<a href="mailto:dw@botanicus.net" target="_blank">dw@botanicus.net</a>></span> wrote:<br></div><div class="gmail_quote"><div class="im">
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I still don't understand the 'why' of this, whereas the 'why not'<br>
seems clear.</blockquote></div><div><br>Because for the 99% use case of "new Audio()" --- scripts loading sounds, and then playing them in response to events --- it's what you want. And if authors forget to set "autobuffer", then under some network conditions (fast networks), short sounds will play fine when play() is called because the sound data will have arrived with the metadata before the download is throttled, but under other network conditions (slow networks), the same sounds will not play smoothly because not all the data will have been preloaded. So probably authors will forget to set "autobuffer" and not notice, and users with slow networks will suffer.<br>
<br>This is not hypothetical, I suggested this change precisely because I noticed this problem happening while testing Firefox.<br><br></div><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It might be useful (in a "saving an extra line of code"<br>
kind of way), but the fact it implicitly causes potentially high<br>
bandwidth IO seems more wasteful than convenient.</blockquote><br></div>For the 99% use case, you want to incur that I/O.<br><br>If you never want to incur it, use a browser that lets you disable autobuffer or otherwise manage bandwidth the way you want.<br>
<br>Rob</div></blockquote><div><br>Agreed. If you want sounds on your UI, or you want to create a game using the canvas tag, you need to be able count on your sounds being loaded the same way you count on your images being loaded. I suspect those 2 use cases will be far more common than the streaming use case.<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><br></div><font color="#888888">-- <br>"He was pierced for our transgressions, he was crushed for our iniquities; the punishment that brought us peace was upon him, and by his wounds we are healed. We all, like sheep, have gone astray, each of us has turned to his own way; and the LORD has laid on him the iniquity of us all." [Isaiah 53:5-6]<br>
</font></blockquote></div><br>