Function
audioBufferClearCache
(engine: VisualNovelEngine, pattern?: string)
Source from the content-addressed store, hash-verified
| 56 | } |
| 57 | |
| 58 | export 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
Tested by
no test coverage detected