29 lines
No EOL
407 B
C++
29 lines
No EOL
407 B
C++
#pragma once
|
|
|
|
#include "LibraryViewer.hpp"
|
|
|
|
class MusicPlayerContext;
|
|
typedef tp::ualni SongId;
|
|
|
|
class TrackPlayer {
|
|
public:
|
|
TrackPlayer();
|
|
~TrackPlayer();
|
|
|
|
bool startStreamTrack(SongId id);
|
|
|
|
void playSong();
|
|
|
|
void stopSong();
|
|
|
|
void setVolume(float volume);
|
|
|
|
float getProgress() const;
|
|
|
|
float getDurationSec() const;
|
|
|
|
void setProgress(float newProgress);
|
|
|
|
private:
|
|
MusicPlayerContext* mContext;
|
|
}; |