Issue 243690 in chromium: AudioParam.exponentialRampToValueAtTime() does not throw exception with the value 0.

10 views
Skip to first unread message

chro...@googlecode.com

unread,
May 24, 2013, 6:08:19 AM5/24/13
to chromi...@chromium.org
Status: Unconfirmed
Owner: ----
Labels: Cr-Internals-Media Pri-2 Via-Wizard Type-Bug OS-Mac

New issue 243690 by choihong...@gmail.com:
AudioParam.exponentialRampToValueAtTime() does not throw exception with the
value 0.
http://code.google.com/p/chromium/issues/detail?id=243690

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.93 Safari/537.36

Example URL:
http://jsfiddle.net/hoch/3sXRq/2/

Steps to reproduce the problem:
gainNode.gain.setValueAtTime(0.0, 0);
gainNode.gain.linearRampToValueAtTime(1.0, 0.01);
gainNode.gain.exponentialRampToValueAtTime(0.0, 2.0); // no exception thrown

What is the expected behavior?
The code above should spit out the exception due to the target value
being "0.0."

What went wrong?
The code above produces a burst of sound, instead of a nice fade out. The
spec says 0.0 is not allowed to be passed into the method, it would be
better if the exception is thrown so user can notice the problem.

Did this work before? No

Is it a problem with Flash or HTML5? HTML5

Does this work in other browsers? No

Chrome version: 27.0.1453.93 Channel: stable
OS Version: OS X 10.7.5

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

chro...@googlecode.com

unread,
May 24, 2013, 8:18:22 PM5/24/13
to chromi...@chromium.org
Updates:
Cc: ana...@chromium.org

Comment #1 on issue 243690 by ajnol...@chromium.org:
AudioParam.exponentialRampToValueAtTime() does not throw exception with the
value 0.
http://code.google.com/p/chromium/issues/detail?id=243690

Hi Anand, can you check this out?

chro...@googlecode.com

unread,
May 24, 2013, 9:03:22 PM5/24/13
to chromi...@chromium.org
Updates:
Status: Untriaged

Comment #2 on issue 243690 by ana...@chromium.org:
AudioParam.exponentialRampToValueAtTime() does not throw exception with the
value 0.
http://code.google.com/p/chromium/issues/detail?id=243690

Thank you for the repro URL.

The spec for the value parameter to exponentialRampToValueAtTime does say:

An exception will be thrown if this value is less than or equal to 0, or if
the value at the time of the previous event is less than or equal to 0.

Link:
https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#methodsandparams-AudioParam

As seen here: http://jsfiddle.net/hoch/3sXRq/2/ there is no exception being
thrown for value=0.
Reply all
Reply to author
Forward
0 new messages