chore: unsingletonize SoundController (#5462)
This commit is contained in:
+3
-2
@@ -136,7 +136,7 @@ Application::Application(Settings &_settings, const Paths &paths,
|
||||
, ffzBadges(&this->emplace<FfzBadges>())
|
||||
, seventvBadges(&this->emplace<SeventvBadges>())
|
||||
, userData(new UserDataController(paths))
|
||||
, sound(&this->emplace<ISoundController>(makeSoundController(_settings)))
|
||||
, sound(makeSoundController(_settings))
|
||||
, twitchLiveController(&this->emplace<TwitchLiveController>())
|
||||
, twitchPubSub(new PubSub(TWITCH_PUBSUB_URL))
|
||||
, twitchBadges(new TwitchBadges)
|
||||
@@ -173,6 +173,7 @@ void Application::fakeDtor()
|
||||
this->seventvEmotes.reset();
|
||||
// this->twitch.reset();
|
||||
this->fonts.reset();
|
||||
this->sound.reset();
|
||||
this->userData.reset();
|
||||
}
|
||||
|
||||
@@ -435,7 +436,7 @@ ISoundController *Application::getSound()
|
||||
{
|
||||
assertInGuiThread();
|
||||
|
||||
return this->sound;
|
||||
return this->sound.get();
|
||||
}
|
||||
|
||||
ITwitchLiveController *Application::getTwitchLiveController()
|
||||
|
||||
Reference in New Issue
Block a user