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

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

Issue 943053002: Adding CRC and multi-client support in the Whispernet NaCl wrapper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing crc decoding in nacl Created 5 years, 10 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 fada4f67986725b124af7cf9fc03634d3ba2f0f7..93f60ab9387575a987ca4253b45d281ceb05262f 100644
--- a/chrome/browser/resources/whispernet_proxy/js/init.js
+++ b/chrome/browser/resources/whispernet_proxy/js/init.js
@@ -23,7 +23,7 @@ function audioConfig(clientId, audioParams) {
return;
}
- console.log('Configuring encoder and decoder!');
+ console.log('Configuring encoder and decoder for client ' + clientId);
whisperEncoders[clientId] =
new WhisperEncoder(audioParams.paramData, whispernetNacl, clientId);
whisperDecoders[clientId] =
@@ -39,7 +39,8 @@ function encodeTokenRequest(clientId, params) {
if (whisperEncoders[clientId]) {
whisperEncoders[clientId].encode(params);
} else {
- console.error('encodeTokenRequest: Whisper not initialized!');
+ console.error('encodeTokenRequest: Whisper not initialized for client ' +
+ clientId);
}
}
@@ -52,7 +53,8 @@ function decodeSamplesRequest(clientId, params) {
if (whisperDecoders[clientId]) {
whisperDecoders[clientId].processSamples(params);
} else {
- console.error('decodeSamplesRequest: Whisper not initialized!');
+ console.error('decodeSamplesRequest: Whisper not initialized for client ' +
+ clientId);
}
}
« no previous file with comments | « chrome/browser/extensions/api/audio_modem/audio_modem_api.cc ('k') | chrome/browser/resources/whispernet_proxy/js/wrapper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698