title: Playback with Web Audio api very slow
body: <p>I have a very strange problem:</p>
  
  <p>I'm playing a wav with the web audio api the following way:</p>
  
  <pre><code>        var d2 = new DataView(evt.data);
  
          var data = new Float32Array(d2.byteLength / Float32Array.BYTES_PER_ELEMENT);
          for (var jj = 0; jj &lt; data.length; ++jj) {
              data[jj] = d2.getFloat32(jj * Float32Array.BYTES_PER_ELEMENT, true);
          }
  
          var buffer = context.createBuffer(1, data.length, 44100);
          buffer.getChannelData(0).set(data);
  
          source = context.createBufferSource();
          source.buffer = buffer;
          source.start(startTime);
          source.connect(context.destination);
  
          startTime += buffer.duration;
  </code></pre>
  
  <p>This worked perfectly fine but now the playback speed is very slow...</p>
  
  <p>I did not change anything on the code. The only thing that changed was that i recently changed my OS from Windows 7 to Windows 8.1.
  Could there be any relation to this problem?</p>
  
  <p>I tried it in Chrome and Firefox and both have the same behaviour. </p>
  
  <p>Thanks for your help!</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I'm sending float values to the client because as i learned in <a href="https://stackoverflow.com/questions/27459436/play-bytestream-on-client-site-with-web-audio-api">this thread</a> the Web Audio Api needs float values between -1 an 1 to process the audio data correct.
  When i remove the float values and start sending PCM Data again the playback speed is normal. It's full of noise again but the speed is normal... </p>
  
  <p>I would really appreciate any input which might help me to figure out this strange problem.</p>