mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUAC-1354: Use ArrayBuffer.slice - do not call slice directly on typed arrays (not widely supported).
This commit is contained in:
@@ -332,8 +332,8 @@ Guacamole.RawAudioPlayer = function RawAudioPlayer(stream, mimetype) {
|
|||||||
// Otherwise, split the packet into two new packets according to the
|
// Otherwise, split the packet into two new packets according to the
|
||||||
// calculated optimal split length
|
// calculated optimal split length
|
||||||
return [
|
return [
|
||||||
data.slice(0, optimalSplitLength),
|
new SampleArray(data.buffer.slice(0, optimalSplitLength * format.bytesPerSample)),
|
||||||
data.slice(optimalSplitLength)
|
new SampleArray(data.buffer.slice(optimalSplitLength * format.bytesPerSample))
|
||||||
];
|
];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user