[Webkit-unassigned] [Bug 68776] New: Disconnecting and reconnecting source from filter doesn't affect waveform

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Sep 25 10:49:22 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=68776

           Summary: Disconnecting and reconnecting source from filter
                    doesn't affect waveform
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Web Audio
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: smus at google.com
                CC: crogers at google.com


1. Create a source S, filter F. Connect them S -> F -> context.destination
2. Disconnect S from F and reconnect them.

Actual: filter has no effect
Expected: same sound as when it was connected

Note that disconnecting F from context.destination, and reconnecting works fine.

To work around this issue, I'm changing filter.frequency.value slightly upon reconnect, as in the following sample:

FilterSample.toggleFilter = function(element) {
  this.source.disconnect(0);
  this.filter.disconnect(0);
  // Check if we want to enable the filter.
  if (element.checked) {
    // Connect through the filter.
    this.source.connect(this.filter);
    // TODO: Remove this hack when webaudio bug fixed.
    // Without this line, reconnected filter does nothing.
    this.filter.frequency.value = this.filter.frequency.value - 1;
    this.filter.connect(context.destination);
  } else {
    // Otherwise, connect directly.
    this.source.connect(context.destination);
  }
};

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list