guacamole-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmuehl...@apache.org
Subject [4/7] incubator-guacamole-client git commit: GUAC-1511: Take number of channels into account when creating SampleArray.
Date Mon, 04 Apr 2016 20:34:12 GMT
GUAC-1511: Take number of channels into account when creating SampleArray.

Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/commit/6a4fab67
Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/tree/6a4fab67
Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/diff/6a4fab67

Branch: refs/heads/master
Commit: 6a4fab67aa2d2579cc9a2c69e8ea02075ec92c50
Parents: b6e1346
Author: Michael Jumper <mjumper@apache.org>
Authored: Sun Apr 3 15:03:15 2016 -0700
Committer: Michael Jumper <mjumper@apache.org>
Committed: Sun Apr 3 15:03:15 2016 -0700

----------------------------------------------------------------------
 guacamole-common-js/src/main/webapp/modules/AudioRecorder.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/6a4fab67/guacamole-common-js/src/main/webapp/modules/AudioRecorder.js
----------------------------------------------------------------------
diff --git a/guacamole-common-js/src/main/webapp/modules/AudioRecorder.js b/guacamole-common-js/src/main/webapp/modules/AudioRecorder.js
index 6575882..5b7b1ca 100644
--- a/guacamole-common-js/src/main/webapp/modules/AudioRecorder.js
+++ b/guacamole-common-js/src/main/webapp/modules/AudioRecorder.js
@@ -199,7 +199,7 @@ Guacamole.RawAudioRecorder = function RawAudioRecorder(stream, mimetype)
{
     var toSampleArray = function toSampleArray(audioBuffer) {
 
         // Get array for raw PCM storage
-        var data = new SampleArray(audioBuffer.length);
+        var data = new SampleArray(audioBuffer.length * format.channels);
 
         // Convert each channel
         for (var channel = 0; channel < format.channels; channel++) {


Mime
View raw message