Implements pause/resume for one file.

This commit is contained in:
Simon Weidacher
2022-01-03 21:42:13 +01:00
parent 3200e25c65
commit abb1711fcd
5 changed files with 40 additions and 16 deletions

View File

@@ -1,10 +1,16 @@
#pragma once
#include <string>
class AudioPlayer {
void* playerHandle;
std::string lastUri;
public:
AudioPlayer();
void play(char* uri);
void play(std::string uri);
void pause();
private:
bool isLastUri(std::string uri);
};