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

Function removeAudioBufferPersistent

src/engine/assets.ts:314–326  ·  view source on GitHub ↗
(engine: VisualNovelEngine, key: string)

Source from the content-addressed store, hash-verified

312}
313
314export async function removeAudioBufferPersistent(engine: VisualNovelEngine, key: string): Promise<void> {
315 const space = await audioBufferSpace(engine);
316
317 if (!space) {
318 return; // IndexedDB not available
319 }
320
321 try {
322 await space.remove(key);
323 } catch (error) {
324 console.warn('Failed to remove audio buffer from IndexedDB:', error);
325 }
326}
327
328export async function clearAudioBufferPersistent(engine: VisualNovelEngine): Promise<void> {
329 const space = await audioBufferSpace(engine);

Callers

nothing calls this directly

Calls 2

audioBufferSpaceFunction · 0.85
removeMethod · 0.65

Tested by

no test coverage detected