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