Refactor!

This commit is contained in:
IlyaShurupov 2023-12-02 19:04:42 +03:00
parent 5d7a343a20
commit a5f4d7149a
14 changed files with 13024 additions and 1920 deletions

View 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;
};