Skip to main content Link Menu Expand (external link) Document Search Copy Copied
getSampleRate method - FlutterSoundRecorder class - recorder library - Dart API
menu
getSampleRate

getSampleRate method

Future<int> getSampleRate()

Get the sampleRate used by startRecorder()

Implementation

Future<int> getSampleRate() async {
  _logger.d('FS:---> getSampleRate');
  Future<int>? r = null;
  await _lock.synchronized(() async {
    r = _getSampleRate();
  });
  _logger.d('FS:<--- getSampleRate ');
  return r!; // A Future!
}
flutter_sound 9.24.0