nativeOutputSampleRate property

int get nativeOutputSampleRate

Get the native audio output sample rate (Android only).

On iOS this returns 0.

Returns

  • The native sample rate, or 0 when not supported.

Implementation

static int get nativeOutputSampleRate {
  final OperationResult result = staticMethod(
    'SoundService',
    'getNativeOutputSampleRate',
  );
  return result['result'];
}