karostudio / flutter_desktop_audio_recorder

BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

[Windows] path argument is not working #2

Open JesseChang opened 1 year ago

JesseChang commented 1 year ago

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");
    }
MengTingChen-maker commented 11 months ago

I have also encountered this problem. Do you know how to deal with it?