Neet fixes
This commit is contained in:
parent
b74c5bc5e5
commit
98b5e4d182
10 changed files with 186 additions and 23 deletions
|
|
@ -3,6 +3,9 @@
|
|||
#include "WavPlayer.hpp"
|
||||
#include "LibraryGui.hpp"
|
||||
|
||||
// load mpre track info!!
|
||||
// display if track presents on fylesystem!!
|
||||
// enable playback!!
|
||||
// monitor resource usage
|
||||
// sorting
|
||||
|
||||
|
|
@ -10,13 +13,10 @@ void runApp() {
|
|||
|
||||
TrackPlayer player;
|
||||
|
||||
player.startStreamTrack(0);
|
||||
player.playSong();
|
||||
|
||||
Library library;
|
||||
library.loadJson("library/Library.json");
|
||||
library.loadJson(getHome() + "Library.json");
|
||||
|
||||
auto gui = LibraryWidget<tp::Window::Events, tp::Graphics::Canvas>(&library);
|
||||
auto gui = LibraryWidget<tp::Window::Events, tp::Graphics::Canvas>(&library, &player);
|
||||
|
||||
auto window = tp::Window::createWindow(800, 600, "Window 1");
|
||||
|
||||
|
|
@ -29,6 +29,8 @@ void runApp() {
|
|||
gui.proc(window->getEvents(), {}, { area.x, area.y, area.z, area.w });
|
||||
gui.draw(window->getCanvas(), {}, { area.x, area.y, area.z, area.w });
|
||||
|
||||
// tp::sleep(100);
|
||||
|
||||
window->draw();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue