Skip to content

Commit

Permalink
more audio logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffkaufman committed Jan 27, 2021
1 parent ac05206 commit 7823749
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion html/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ export class BucketBrigadeContext extends EventTarget {
var AudioContext = window.AudioContext || window.webkitAudioContext;
this.audioCtx = new AudioContext({latencyHint: 'playback'});
//sampleRate.value = this.audioCtx.sampleRate;
console.debug("Audio Context:", this.audioCtx);
console.log("Audio Context:", this.audioCtx);

// XXX: this all gets kind of gross with 44100, nothing divides nicely.
// XXX: this should really be on the clients, not the context?
Expand Down
4 changes: 4 additions & 0 deletions html/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -1880,6 +1880,10 @@ function do_latency_calibration() {

async function start(spectatorMode=false) {
var micStream = await bb.openMic(inSelect.value);
try {
console.log("Reported input latency (s):",
micStream.getTracks()[0].getSettings().latency);
} catch {}

bucket_ctx = new bb.BucketBrigadeContext({
micStream,
Expand Down

0 comments on commit 7823749

Please sign in to comment.