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:
1 parent
99c3f2696f
commit
65e610275b
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user