This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 19910 - Disallow AudioContext.createDelay(max) where max <= 0
Summary: Disallow AudioContext.createDelay(max) where max <= 0
Status: CLOSED FIXED
Alias: None
Product: AudioWG
Classification: Unclassified
Component: Web Audio API (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: TBD
Assignee: Chris Rogers
QA Contact: public-audio
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-08 17:37 UTC by Ehsan Akhgari [:ehsan]
Modified: 2013-01-18 16:05 UTC (History)
1 user (show)

See Also:


Attachments

Description Ehsan Akhgari [:ehsan] 2012-11-08 17:37:03 UTC
It doesn't really make sense for the maxDelay parameter to be negative or 0.  We should probably throw NOT_SUPPORTED_ERR when that happens.
Comment 1 Chris Rogers 2012-11-13 20:57:37 UTC
Fixed:
https://dvcs.w3.org/hg/audio/rev/36f092872c08
Comment 2 Ehsan Akhgari [:ehsan] 2012-11-13 22:24:05 UTC
Hmm, the spec doesn't mention what the unit for this value is.  Should I file another bug for that?
Comment 3 Chris Rogers 2012-11-14 00:13:28 UTC
I'll just update the spec right now to be more explicit about seconds -- it's already alluded to...
Comment 4 Olivier Thereaux 2012-12-18 13:10:24 UTC
(In reply to comment #1)
> Fixed:
> https://dvcs.w3.org/hg/audio/rev/36f092872c08

Can you s/must/MUST/ on the need to be >=0 ? 
I will then close this issue for good.
Comment 5 Olivier Thereaux 2013-01-18 16:05:08 UTC
(In reply to comment #4)
> Can you s/must/MUST/ on the need to be >=0 ? 
> I will then close this issue for good.

Done here https://dvcs.w3.org/hg/audio/rev/b238f54bff9b

Closing.