You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
415 B
C
22 lines
415 B
C
3 years ago
|
#pragma once
|
||
|
|
||
|
#include "tools/mathutils.h"
|
||
|
#include <string>
|
||
|
|
||
|
class Music
|
||
|
{
|
||
|
public:
|
||
|
virtual ~Music() = default;
|
||
|
|
||
|
virtual bool openFromFile(const std::string& filepath) = 0;
|
||
|
|
||
|
virtual void play() = 0;
|
||
|
virtual void pause() = 0;
|
||
|
virtual void stop() = 0;
|
||
|
|
||
|
virtual void setVolume(int volume) = 0;
|
||
|
|
||
|
virtual void setOffset(const microsec& offset) = 0;
|
||
|
virtual microsec fetchOffset() = 0;
|
||
|
};
|