diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-07-31 09:41:49 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-07-31 09:41:49 +1000 |
| commit | 485eed28903a0bc23df9c1ced1417e35fd58c43c (patch) | |
| tree | a363714c1b0f5074c48bea64f46a907b4aa45cfc /src/app_console/app_console.cpp | |
| parent | 97bd3be892ce549dac8e0b9930607a282701653e (diff) | |
| download | tangara-fw-485eed28903a0bc23df9c1ced1417e35fd58c43c.tar.gz | |
use libtag duration where available
Diffstat (limited to 'src/app_console/app_console.cpp')
| -rw-r--r-- | src/app_console/app_console.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
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, audio::AudioState>( - audio::PlayFile{.filename = path.str()}); - */ + events::Audio().Dispatch(audio::PlayFile{.filename = path.str()}); } return 0; |
