W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2007

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

From: Ian Hickson <ian@hixie.ch>
Date: Sat, 4 Aug 2007 01:24:17 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.0708040123200.25485@dhalsim.dreamhost.com>
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

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:36 UTC