The wav file is successful generated but at wrong location in the project folder instead of the given path.
I found the path argument is not implement in cpp for windows.
flutter_desktop_audio_recorder_plugin.cpp
if (method_call.method_name().compare("start_audio_record") == 0) {
auto name_it = arguments->find(flutter::EncodableValue("fileName"));
if (name_it != arguments->end())
{
std::string fileName = std::get<std::string>(name_it->second); //only use filename here
result->Success(flutter:: EncodableValue(recorder.startRecording(fileName)));
}
result->Error("Error while parsing path");
}
The wav file is successful generated but at wrong location in the project folder instead of the given path.
I found the
path
argument is not implement in cpp for windows.flutter_desktop_audio_recorder_plugin.cpp