On Sat, Aug 1, 2009 at 12:20 AM, David Wilson <span dir="ltr"><<a href="mailto:dw@botanicus.net">dw@botanicus.net</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I still don't understand the 'why' of this, whereas the 'why not'<br>
seems clear.</blockquote><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><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); 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>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<br></div>-- <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>