GUAC-1511: Provide ArrayBufferWriter with ArrayBuffer. Providing 16-bit TypedArray results in truncation of each sample to the low 8 bits.

This commit is contained in:
Michael Jumper
2016-04-03 14:47:33 -07:00
parent 99c3f2696f
commit 65e610275b

View File

@@ -237,7 +237,7 @@ Guacamole.RawAudioRecorder = function RawAudioRecorder(stream, mimetype) {
// Send blobs when audio buffers are received
processor.onaudioprocess = function processAudio(e) {
writer.sendData(toSampleArray(e.inputBuffer));
writer.sendData(toSampleArray(e.inputBuffer).buffer);
};
// Connect processing node to user's audio input source