Skip to content

Commit

Permalink
Fix missing speaker module warning
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanschramm committed Oct 20, 2024
1 parent 3da4d0d commit 9b6ec30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions retroload/src/player/SpeakerWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export class SpeakerWrapper implements PlayerWrapper {
try {
// Dynamically try to load speaker module.
// This way it doesn't need to be an actual dependency.
// @ts-expect-error Ignore missing module because it's just a loose dependency
const DynamicSpeakerImport = (await import('speaker')).default;
return new SpeakerWrapper(new DynamicSpeakerImport({channels, bitDepth, sampleRate}));
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand Down

0 comments on commit 9b6ec30

Please sign in to comment.