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

Function clearAudioBufferPersistent

src/engine/assets.ts:328–340  ·  view source on GitHub ↗
(engine: VisualNovelEngine)

Source from the content-addressed store, hash-verified

326}
327
328export async function clearAudioBufferPersistent(engine: VisualNovelEngine): Promise<void> {
329 const space = await audioBufferSpace(engine);
330
331 if (!space) {
332 return; // IndexedDB not available
333 }
334
335 try {
336 await space.clear();
337 } catch (error) {
338 console.warn('Failed to clear audio buffers from IndexedDB:', error);
339 }
340}

Callers

nothing calls this directly

Calls 2

audioBufferSpaceFunction · 0.85
clearMethod · 0.65

Tested by

no test coverage detected