Open Bug 2011524 Opened 4 months ago Updated 4 months ago

linearRampToValueAtTime/exponentialRampToValueAtTime increase sometimes instantly changes to value

Categories

(Core :: Web Audio, defect)

defect

Tracking

()

People

(Reporter: karlt, Unassigned)

References

(Blocks 1 open bug)

Details

From https://github.com/mdn/browser-compat-data/issues/27568

  1. Open https://mdn.github.io/webaudio-examples/audio-param/
  2. Press play
  3. Press "Linear ramp gain to 0 in 2 seconds"
  4. Wait for the volume to go down
  5. Press "Linear ramp gain to 1 in 2 seconds"

Expected result: Should ramp volume up gradually
Actual result: Instantly sets volume to 1

Behavior appears to be as expected if instead step 4 does not wait the full two seconds.
Behavior is also as expected if steps 3 and 5 are swapped (volume ramps down gradually).

Reproduces with mozregression --launch 2023-09-01.

There is something similar with exponentialRampToValueAtTime(), but it doesn't reproduce when waiting only 2 seconds in step 4.
5 seconds seems to be sufficient.

Summary: linearRampToValueAtTime from zero gain instantly changes to value → linearRampToValueAtTime/exponentialRampToValueAtTime increase instantly changes to value
Summary: linearRampToValueAtTime/exponentialRampToValueAtTime increase instantly changes to value → linearRampToValueAtTime/exponentialRampToValueAtTime increase sometimes instantly changes to value
You need to log in before you can comment on or make changes to this bug.