Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3055)

Unified Diff: chrome/browser/resources/whispernet_proxy/js/init.js

Issue 637223011: Redesign the copresence audio handlers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/whispernet_proxy/js/init.js
diff --git a/chrome/browser/resources/whispernet_proxy/js/init.js b/chrome/browser/resources/whispernet_proxy/js/init.js
index a5b11c9faebdad44d4ffd25d98e195d7c0ed7b6d..693b7d4830bd5b4af726407a6211a58ad1e873a6 100644
--- a/chrome/browser/resources/whispernet_proxy/js/init.js
+++ b/chrome/browser/resources/whispernet_proxy/js/init.js
@@ -50,11 +50,12 @@ function encodeTokenRequest(token, audible) {
/**
* Sends a request to whispernet to decode samples.
- * @param {ArrayBuffer} samples Array of samples to decode.
+ * @param {ArrayBuffer} samples Array of samples to process.
+ * @param {Object} type Type of decoding to perform.
*/
-function decodeSamplesRequest(samples) {
+function decodeSamplesRequest(samples, type) {
if (whisperDecoder) {
- whisperDecoder.processSamples(samples);
+ whisperDecoder.processSamples(samples, type);
} else {
console.error('decodeSamplesRequest: Whisper not initialized!');
}

Powered by Google App Engine
This is Rietveld 408576698