diff options
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,3 +1,4 @@ +#include "config.h" #include "music.h" #include "decoder.h" #include "encoder.h" @@ -10,13 +11,14 @@ int main(int argc, char **argv) { try { - music::init(argv[1]); + config::init(); + music::init(config::vm["audist.music_root"].as<std::string>()); decoder::init(); encoder::init(); boost::asio::io_service io_service; - HTTP::Server httpd(io_service, tcp::endpoint(tcp::v6(), 8000)); + HTTP::Server httpd(io_service, tcp::endpoint(tcp::v6(), config::vm["audist.httpd_port"].as<int>())); std::vector<boost::shared_ptr<boost::thread> > threads; for(std::size_t i = 0; i < 10; i++) { |