Refactor!
This commit is contained in:
parent
cb09a6f5de
commit
cd451d1c2a
14 changed files with 13024 additions and 1920 deletions
32
LibraryViewer/public/Player.hpp
Normal file
32
LibraryViewer/public/Player.hpp
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#pragma once
|
||||
|
||||
#include "Library.hpp"
|
||||
#include "Streamer.hpp"
|
||||
|
||||
class DeviceStream;
|
||||
|
||||
class Player {
|
||||
public:
|
||||
Player();
|
||||
~Player();
|
||||
|
||||
bool startStreamTrack(SongId id);
|
||||
SongId getPlayingId() const;
|
||||
void continuePlayback();
|
||||
void freezePlayback();
|
||||
|
||||
tp::halnf getDurationSec() const;
|
||||
|
||||
void setVolume(tp::halnf volume);
|
||||
tp::halnf getVolume();
|
||||
|
||||
tp::halnf getPlaybackProgress() const;
|
||||
void setPlaybackProgress(tp::halnf newProgress);
|
||||
|
||||
tp::halnf getLoadProgress() const;
|
||||
|
||||
private:
|
||||
SongId connected = 0;
|
||||
MusicStream mMusicStream;
|
||||
DeviceStream* mDeviceStream;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue