test/run_convert: fix Windows compiler errors
This commit is contained in:
parent
922c4bf3f0
commit
c962a6be76
@ -28,6 +28,7 @@
|
|||||||
#include "pcm/AudioFormat.hxx"
|
#include "pcm/AudioFormat.hxx"
|
||||||
#include "pcm/Convert.hxx"
|
#include "pcm/Convert.hxx"
|
||||||
#include "fs/Path.hxx"
|
#include "fs/Path.hxx"
|
||||||
|
#include "fs/NarrowPath.hxx"
|
||||||
#include "util/ConstBuffer.hxx"
|
#include "util/ConstBuffer.hxx"
|
||||||
#include "util/StaticFifoBuffer.hxx"
|
#include "util/StaticFifoBuffer.hxx"
|
||||||
#include "util/OptionDef.hxx"
|
#include "util/OptionDef.hxx"
|
||||||
@ -47,7 +48,7 @@
|
|||||||
struct CommandLine {
|
struct CommandLine {
|
||||||
AudioFormat in_audio_format, out_audio_format;
|
AudioFormat in_audio_format, out_audio_format;
|
||||||
|
|
||||||
Path config_path = nullptr;
|
FromNarrowPath config_path;
|
||||||
|
|
||||||
bool verbose = false;
|
bool verbose = false;
|
||||||
};
|
};
|
||||||
@ -71,7 +72,7 @@ ParseCommandLine(int argc, char **argv)
|
|||||||
while (auto o = option_parser.Next()) {
|
while (auto o = option_parser.Next()) {
|
||||||
switch (Option(o.index)) {
|
switch (Option(o.index)) {
|
||||||
case OPTION_CONFIG:
|
case OPTION_CONFIG:
|
||||||
c.config_path = Path::FromFS(o.value);
|
c.config_path = o.value;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OPTION_VERBOSE:
|
case OPTION_VERBOSE:
|
||||||
|
Loading…
Reference in New Issue
Block a user