start static method

bool start(
  1. String filePath
)

Starts recording audio to the specified filePath. Returns true if the recording started successfully.

Implementation

static bool start(String filePath) {
  final ffi.Pointer<Utf8> filePathPtr = filePath.toNativeUtf8();
  final success = _startNative(filePathPtr);
  calloc.free(filePathPtr);

  if (success) {
    _isRecording = true;
    _isPaused = false;
  }
  return success;
}