Modules/LibraryViewer/public/Player.hpp
IlyaShurupov a5f4d7149a Refactor!
2024-01-10 12:05:31 +03:00

32 lines
No EOL
561 B
C++

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