From 485eed28903a0bc23df9c1ced1417e35fd58c43c Mon Sep 17 00:00:00 2001 From: jacqueline Date: Mon, 31 Jul 2023 09:41:49 +1000 Subject: use libtag duration where available --- src/app_console/app_console.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/app_console/app_console.cpp') diff --git a/src/app_console/app_console.cpp b/src/app_console/app_console.cpp index 3e2d8067..6faa27d0 100644 --- a/src/app_console/app_console.cpp +++ b/src/app_console/app_console.cpp @@ -112,17 +112,13 @@ int CmdPlayFile(int argc, char** argv) { database::TrackId id = std::atoi(argv[1]); AppConsole::sTrackQueue->AddLast(id); } else { - // TODO. - /* std::ostringstream path; path << '/' << argv[1]; for (int i = 2; i < argc; i++) { path << ' ' << argv[i]; } - events::Dispatch( - audio::PlayFile{.filename = path.str()}); - */ + events::Audio().Dispatch(audio::PlayFile{.filename = path.str()}); } return 0; -- cgit v1.2.3