[whatwg] Audio(): loop() with 0 or negative value as argument

On Sat, 27 May 2006, Shadow2531 wrote:
> 
> I might seem picky, but I don't really like how loop() takes a 
> *playcount* param.
> 
> loop() = infinite
> loop(1) = play once
> loop(2) = play twice
> 
> It's the loop(n) that bugs me. I see loop(1) and think that the file is 
> going to play once and then loop once. (The first time it plays is not a 
> looped play.)
> 
> Luckily, I saw the spec and read that the parameter is NOT how many 
> times to loop, but how many times to play, hence *playcount*.

The spec has changed (we no longer have loop() itself); is the new API ok 
in your opinion?

Cheers,
-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Friday, 3 August 2007 18:24:17 UTC