projects/common/audio/debouncer/debouncer.ts
import { CngxDebouncer } from '@cngx/common/audio'
Public handle returned by createDebouncer.
void
reset(name?: string)
Clear the recorded fire time for name, or all names when omitted.
name
string
boolean
shouldFire(name: string)
Returns true if name may fire now, false if an identical name fired within the window. A true result records the fire time; a false result leaves it untouched (so a burst is suppressed against its first fire).
true
false