MCPcopy Create free account
hub / github.com/Vanilagy/webcodecs-polyfill / configToCacheKey

Function configToCacheKey

src/audio_decoder.ts:14–16  ·  view source on GitHub ↗
(codecId: AVCodecID, sampleRate: number, numberOfChannels: number)

Source from the content-addressed store, hash-verified

12
13const configSupportCache = new Map<string, boolean>();
14const configToCacheKey = (codecId: AVCodecID, sampleRate: number, numberOfChannels: number): string => {
15 return `${codecId}:${sampleRate}:${numberOfChannels}`;
16};
17
18/**
19 * Decodes audio frames from encoded chunks.

Callers 1

isConfigSupportedMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected