MCPcopy Create free account
hub / github.com/Monogatari/Monogatari / audioBufferClearCache

Function audioBufferClearCache

src/engine/assets.ts:58–68  ·  view source on GitHub ↗
(engine: VisualNovelEngine, pattern?: string)

Source from the content-addressed store, hash-verified

56}
57
58export function audioBufferClearCache(engine: VisualNovelEngine, pattern?: string): void {
59 if (!pattern) {
60 engine._audioBufferCache.clear();
61 } else {
62 for (const key of engine._audioBufferCache.keys()) {
63 if (key.startsWith(pattern)) {
64 engine._audioBufferCache.delete(key);
65 }
66 }
67 }
68}
69
70// ============================================================================
71// Image Cache

Callers

nothing calls this directly

Calls 2

clearMethod · 0.65
keysMethod · 0.65

Tested by

no test coverage detected