Appease the linter
This commit is contained in:
parent
61730f2f88
commit
4f75e2944c
3 changed files with 8 additions and 8 deletions
|
@ -19,8 +19,8 @@ import {percentageOf} from "../utils/numbers";
|
|||
|
||||
// from AudioWorkletGlobalScope: https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope
|
||||
declare const currentTime: number;
|
||||
declare const currentFrame: number;
|
||||
declare const sampleRate: number;
|
||||
// declare const currentFrame: number;
|
||||
// declare const sampleRate: number;
|
||||
|
||||
class MxVoiceWorklet extends AudioWorkletProcessor {
|
||||
private nextAmplitudeSecond = 0;
|
||||
|
|
|
@ -116,7 +116,7 @@ export class VoiceRecording extends EventEmitter implements IDestroyable {
|
|||
|
||||
// Dev note: we can't use `addEventListener` for some reason. It just doesn't work.
|
||||
this.recorderWorklet.port.onmessage = (ev) => {
|
||||
switch(ev.data['ev']) {
|
||||
switch (ev.data['ev']) {
|
||||
case PayloadEvent.Timekeep:
|
||||
this.processAudioUpdate(ev.data['timeSeconds']);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue