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

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..997498c8923e9c2378424b577e68dbe96968e329 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 {string} type Type of decoding to perform.
Daniel Erat 2014/10/17 22:25:59 document the acceptable values (or at least that t
rkc 2014/10/18 00:21:54 Code changed. This is now an object.
* @param {ArrayBuffer} samples Array of samples to decode.
*/
-function decodeSamplesRequest(samples) {
+function decodeSamplesRequest(type, samples) {
if (whisperDecoder) {
- whisperDecoder.processSamples(samples);
+ whisperDecoder.processSamples(type, samples);
} else {
console.error('decodeSamplesRequest: Whisper not initialized!');
}

Powered by Google App Engine
This is Rietveld 408576698