framesToUs method

int framesToUs(
  1. int frames
)

For internal use only.

Implementation

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