Start midi file processing.
This commit is contained in:
parent
59c6161fdb
commit
36826fa1d4
22 changed files with 528 additions and 44 deletions
|
@ -19,9 +19,9 @@ target_link_libraries(sample_console PUBLIC console core network
|
|||
add_executable(xml_practice xml-practice.cpp)
|
||||
target_include_directories(xml_practice PUBLIC
|
||||
"${PROJECT_SOURCE_DIR}/src/core"
|
||||
"${PROJECT_SOURCE_DIR}/src/core/xml"
|
||||
"${PROJECT_SOURCE_DIR}/src/web/xml"
|
||||
)
|
||||
target_link_libraries(xml_practice PUBLIC core)
|
||||
target_link_libraries(xml_practice PUBLIC core web)
|
||||
|
||||
# Markdown practice
|
||||
add_executable(markdown_practice markdown-practice.cpp)
|
||||
|
|
|
@ -1,16 +1,37 @@
|
|||
#include <filesystem>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <iostream>
|
||||
#include "CommandLineArgs.h"
|
||||
#include "MainApplication.h"
|
||||
|
||||
int main()
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
CommandLineArgs command_line_args;
|
||||
command_line_args.Process(argc, argv);
|
||||
|
||||
std::string program_type;
|
||||
if(command_line_args.GetNumberOfArgs() > 1)
|
||||
{
|
||||
program_type = command_line_args.GetArg(1);
|
||||
}
|
||||
|
||||
// Start the main app
|
||||
auto main_app = MainApplication::Create();
|
||||
main_app->Initialize(std::filesystem::current_path());
|
||||
|
||||
//main_app->RunServer();
|
||||
main_app->PlayAudio();
|
||||
if(program_type == "server")
|
||||
{
|
||||
main_app->RunServer();
|
||||
}
|
||||
else if(program_type == "audio")
|
||||
{
|
||||
main_app->PlayAudio();
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cerr << "Unknown program type" << std::endl;
|
||||
}
|
||||
|
||||
main_app->ShutDown();
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue