mirror of
https://github.com/sweidac/kidsbox.git
synced 2025-07-28 03:41:54 +02:00
Implements pause/resume for one file.
This commit is contained in:
@@ -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