Skip to content

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
sile committed Nov 25, 2024
1 parent 94566c9 commit 41bd8c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mp4-media-stream/src/audio_processor.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Mp4MediaStreamAudioWorkletProcessor extends AudioWorkletProcessor {
} else {
outputChannel[i] = audioData[this.offset]
this.offset++
if (this.offset == audioData.length) {
if (this.offset === audioData.length) {
this.inputBuffer.shift()
this.offset = 0
}
Expand Down
1 change: 1 addition & 0 deletions packages/mp4-media-stream/src/mp4_media_stream.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const WASM_BASE64 = '__WASM__'

// biome-ignore lint/style/noUnusedTemplateLiteral: audio_processor.js 内で文字列を使えるように `...` で囲む
const AUDIO_WORKLET_PROCESSOR_CODE = `__AUDIO_PROCESSOR__`
const AUDIO_WORKLET_PROCESSOR_NAME = 'mp4-media-stream-audio-worklet-processor'

Expand Down

0 comments on commit 41bd8c9

Please sign in to comment.