mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
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:
@@ -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