(engine: VisualNovelEngine)
| 326 | } |
| 327 | |
| 328 | export 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 | } |
nothing calls this directly
no test coverage detected