mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
stream now restores speaker after long freezes
This commit is contained in:
parent
011bdd8397
commit
cd657a1234
4 changed files with 29 additions and 4 deletions
|
|
@ -73,6 +73,7 @@ namespace audio {
|
|||
class ALSpeaker : public Speaker {
|
||||
ALAudio* al;
|
||||
int priority;
|
||||
bool stoppedManually = false;
|
||||
public:
|
||||
uint source;
|
||||
|
||||
|
|
@ -93,6 +94,7 @@ namespace audio {
|
|||
void play() override;
|
||||
void pause() override;
|
||||
void stop() override;
|
||||
bool isStoppedManually() const override;
|
||||
|
||||
duration_t getTime() const override;
|
||||
void setTime(duration_t time) override;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue