Re: Proposal for fixing race conditions

On Wed, Jul 17, 2013 at 6:06 PM, Jer Noble <jer.noble@apple.com> wrote:

> So how about a JavaScript-based Opus decoder that uses an
> AudioBuffer-backed ring buffer to do memcopy-free decoding and playback by
> decoding directly into a mutable AudioBuffer. If AudioBuffer.getAudioData()
> suddenly causes a memcopy, (or in an immutable world, the AudioBuffer must
> be recreated) suddenly the ring buffer memory use doubles. On an embedded
> system with no page file, this causes the UA to hit a hard memory limit
> (and be killed as a result) more often.
>

It's not clear to me how this example works. If the decoder is decoding
into a buffer that's being played at the same time, hilarity ensues. If
it's not, we can reclaim the buffer internally as I pointed out in a
previous message.

Rob
-- 
Jtehsauts  tshaei dS,o n" Wohfy  Mdaon  yhoaus  eanuttehrotraiitny  eovni
le atrhtohu gthot sf oirng iyvoeu rs ihnesa.r"t sS?o  Whhei csha iids  teoa
stiheer :p atroa lsyazye,d  'mYaonu,r  "sGients  uapr,e  tfaokreg iyvoeunr,
'm aotr  atnod  sgaoy ,h o'mGee.t"  uTph eann dt hwea lmka'n?  gBoutt  uIp
waanndt  wyeonut  thoo mken.o w  *
*

Received on Wednesday, 17 July 2013 06:18:25 UTC