• Raymond Toy's avatar
    Value setter must call setValueAtTime · 02938fe2
    Raymond Toy authored
    When using the AudioParam value setter, the setter must behave as if
    setValueAtTime were called with the given value at the current audio
    context time.  This includes throwing an error if the time is in the
    middle of a setValueCurveAtTime automation.
    
    This is a change in the old behavior where errors weren't thrown.
    This also clarifies the behavior of the value setter when automations
    are running.  Previously, the interaction between the setter and
    automations were not very well specified.
    
    Bug: 764396
    Test: AudioParam/audioparam-value-setter-error.html
    Change-Id: Ic1da32c27f9e4f29e2df3bcbb6dd0bd485409e0e
    Reviewed-on: https://chromium-review.googlesource.com/665318
    Commit-Queue: Raymond Toy <rtoy@chromium.org>
    Reviewed-by: default avatarHongchan Choi <hongchan@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#534737}
    02938fe2
audioparam-value-setter-error.html 3.41 KB