mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 05:31:22 +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
|
// Send blobs when audio buffers are received
|
||||||
processor.onaudioprocess = function processAudio(e) {
|
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
|
// Connect processing node to user's audio input source
|
||||||
|
Reference in New Issue
Block a user