GUACAMOLE-905: Merge automatically resume AudioContext when recording starts.
diff --git a/guacamole-common-js/src/main/webapp/modules/AudioRecorder.js b/guacamole-common-js/src/main/webapp/modules/AudioRecorder.js
index e54dcca..7a1df8b 100644
--- a/guacamole-common-js/src/main/webapp/modules/AudioRecorder.js
+++ b/guacamole-common-js/src/main/webapp/modules/AudioRecorder.js
@@ -435,6 +435,11 @@
source = context.createMediaStreamSource(stream);
source.connect(processor);
+ // Attempt to explicitly resume AudioContext, as it may be paused
+ // by default
+ if (context.state === 'suspended')
+ context.resume();
+
// Save stream for later cleanup
mediaStream = stream;