return 12;
}
for (int i = 1; i < argc; i++) {
-// out.log(astring(astring::SPRINTF, "soundfile %d: %s", i, argv[i]));
+ astring sound_file = argv[i];
+out.log(a_sprintf("soundfile %d: %s", i, sound_file.s()), ALWAYS_PRINT);
+ if (sound_file.ends(".mp3")) {
+ out.log(astring("skipping MP3 file ") + sound_file, ALWAYS_PRINT);
+ continue;
+ }
#ifdef __WIN32__
- if (!PlaySound(to_unicode_temp(argv[i]), NIL, SND_FILENAME))
- out.log(astring("failed to play ") + argv[i], ALWAYS_PRINT);
+ if (!PlaySound(to_unicode_temp(sound_file), NULL_POINTER, SND_FILENAME))
+ out.log(astring("failed to play ") + sound_file, ALWAYS_PRINT);
#else
- out.log(astring("this program is a NO-OP, ignoring ") + argv[i], ALWAYS_PRINT);
+ out.log(astring("this program is a NO-OP, ignoring ") + sound_file, ALWAYS_PRINT);
#endif
}
return 0;
#ifdef __BUILD_STATIC_APPLICATION__
// static dependencies found by buildor_gen_deps.sh:
+ #include <application/windoze_helper.cpp>
#include <basis/astring.cpp>
#include <basis/common_outcomes.cpp>
#include <basis/environment.cpp>
+ #include <basis/guards.cpp>
#include <basis/mutex.cpp>
#include <basis/utf_conversion.cpp>
+ #include <configuration/application_configuration.cpp>
+ #include <configuration/configurator.cpp>
+ #include <configuration/ini_configurator.cpp>
+ #include <configuration/ini_parser.cpp>
+ #include <configuration/table_configurator.cpp>
+ #include <configuration/variable_tokenizer.cpp>
+ #include <filesystem/byte_filer.cpp>
+ #include <filesystem/directory.cpp>
+ #include <filesystem/filename.cpp>
#include <loggers/console_logger.cpp>
+ #include <loggers/program_wide_logger.cpp>
+ #include <structures/checksums.cpp>
#include <structures/object_packers.cpp>
#include <structures/static_memory_gremlin.cpp>
+ #include <structures/string_hasher.cpp>
+ #include <structures/string_table.cpp>
+ #include <structures/version_record.cpp>
#include <textual/parser_bits.cpp>
+ #include <timely/earth_time.cpp>
+ #include <timely/time_stamp.cpp>
#endif // __BUILD_STATIC_APPLICATION__