reworked the general update strategy interface

This commit is contained in:
2021-04-28 19:38:25 +02:00
parent b8a5cd7cf4
commit efad254193
53 changed files with 756 additions and 889 deletions

View File

@ -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) {

View File

@ -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"; }