mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2025-06-18 18:56:36 +02:00
reworked the general update strategy interface
This commit is contained in:
@ -19,7 +19,7 @@ SoundService::SoundService(void) : engine() {
|
||||
SoundService::~SoundService(void) {
|
||||
}
|
||||
|
||||
bool SoundService::enable(Engine&) {
|
||||
bool SoundService::enable(Engine&, std::vector<UpdateStrategies::TaskInfo>&) {
|
||||
unsigned int flags = SoLoud::Soloud::CLIP_ROUNDOFF;
|
||||
auto r = engine.init(flags);
|
||||
if (r != 0) {
|
||||
|
@ -11,7 +11,7 @@ namespace MM::Services {
|
||||
SoLoud::Soloud engine;
|
||||
|
||||
public:
|
||||
bool enable(Engine&) override;
|
||||
bool enable(Engine&, std::vector<UpdateStrategies::TaskInfo>&) override;
|
||||
void disable(Engine&) override;
|
||||
|
||||
const char* name(void) override { return "SoundService"; }
|
||||
|
Reference in New Issue
Block a user