For internal use only.
int usToFrames(int us) { if (sampleRate == null) return 0; return (us * SECONDS_PER_US * sampleRate!).round(); }