mirror of
https://github.com/sweidac/kidsbox.git
synced 2026-10-28 06:52:57 +01:00
Implements pause/resume for one file.
This commit is contained in:
1 parent
3200e25c65
commit
abb1711fcd
5 files changed
+40
-16
No files matched your search
@@ -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);
|
||||
};
|
||||
Reference in new issue
Block a user