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!'); |
} |