Skip to content

Commit 7d9caa8

Browse files
Attempted to fix windows build
1 parent a62115f commit 7d9caa8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/rnnoise_libsndfile.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,14 @@ static const std::string DEFAULT_VAD_PROBE_FILENAME = "vad_prob.txt";
9393
#endif
9494

9595
int main(int argc, char** argv){
96+
97+
9698
cxxopts::Options options("rnnoise_libsoundfile denoiser", "Simple runner of rnnoise over WAVe files with 48K samplerate");
99+
const auto DEFAULT_VAD_PROBE_PATH {(std::filesystem::current_path()/DEFAULT_VAD_PROBE_FILENAME).generic_string()}
97100
options.add_options()
98101
("input", "Input file to process",cxxopts::value<std::filesystem::path>())
99102
("output", "Output file", cxxopts::value<std::filesystem::path>())
100-
("vad_probe", "Path to store output VAD prob data", cxxopts::value<std::filesystem::path>()->default_value(std::filesystem::current_path()/DEFAULT_VAD_PROBE_FILENAME))
103+
("vad_probe", "Path to store output VAD prob data", cxxopts::value<std::filesystem::path>()->default_value(DEFAULT_VAD_PROBE_PATH))
101104
("help", "Print usage");
102105

103106
auto result = options.parse(argc, argv);

0 commit comments

Comments
 (0)