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

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

Issue 444373004: Add Audible support to the whispernet client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 e346f2063f695b64f0c5aa90725fa282c0f9fd1e..a5b11c9faebdad44d4ffd25d98e195d7c0ed7b6d 100644
--- a/chrome/browser/resources/whispernet_proxy/js/init.js
+++ b/chrome/browser/resources/whispernet_proxy/js/init.js
@@ -38,10 +38,11 @@ function initialize(audioParams) {
/**
* Sends a request to whispernet to encode a token.
* @param {string} token Token to encode. This needs to be a base64 string.
+ * @param {boolean} audible Whether we should use encode audible samples.
*/
-function encodeTokenRequest(token) {
+function encodeTokenRequest(token, audible) {
if (whisperEncoder) {
- whisperEncoder.encode(atob(token), true);
+ whisperEncoder.encode(atob(token), audible, true);
} else {
console.error('encodeTokenRequest: Whisper not initialized!');
}

Powered by Google App Engine
This is Rietveld 408576698