Fires whenever a captioned Sound plays - a captioning overlay subscribes here, entirely
decoupled from Sound itself, which never imports anything UI-shaped.
Example
import { onCaption } from'@datamoc/mwg/audio';
onCaption.add(({ text }) =>showCaptionOverlay(text));
Fires whenever a captioned
Soundplays - a captioning overlay subscribes here, entirely decoupled fromSounditself, which never imports anything UI-shaped.