<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web Audio ScriptProcessorNode pauses, emits hum after switching audio output device"
   href="https://bugs.webkit.org/show_bug.cgi?id=169849">169849</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Web Audio ScriptProcessorNode pauses, emits hum after switching audio output device
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>macOS 10.12
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Web Audio
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>bvibber&#64;wikimedia.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>We're using Web Audio's ScriptProcessorNode to play audio files that have been decoded in JavaScript dynamically; it works quite well except when the audio output device is changed during playback.

On my MacBook Pro running macOS 10.12.3, I can reproduce this by plugging or unplugging a USB speaker during playback; both directions produce similar results:
* audio stops on the old device
* on the new device, a humming noise may be emitted
* audioprocessing events are no longer delivered

When switching back to the original output device, audioprocessing events continue being delivered, and audio continues as expected.

Simplified test case: <a href="https://brionv.com/misc/audio.html">https://brionv.com/misc/audio.html</a>

Same results with Safari 10 release version, Technical Preview, and WebKit Nightly.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>