mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07: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
|
||||
// calculated optimal split length
|
||||
return [
|
||||
data.slice(0, optimalSplitLength),
|
||||
data.slice(optimalSplitLength)
|
||||
new SampleArray(data.buffer.slice(0, optimalSplitLength * format.bytesPerSample)),
|
||||
new SampleArray(data.buffer.slice(optimalSplitLength * format.bytesPerSample))
|
||||
];
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user