(engine: VisualNovelEngine, key: string)
| 312 | } |
| 313 | |
| 314 | export 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 | |
| 328 | export async function clearAudioBufferPersistent(engine: VisualNovelEngine): Promise<void> { |
| 329 | const space = await audioBufferSpace(engine); |
nothing calls this directly
no test coverage detected