From 9293d8e2715f3e883fee4c0ed617636a785f20d1 Mon Sep 17 00:00:00 2001 From: nOOb3167 Date: Fri, 23 Mar 2018 15:31:43 +0100 Subject: Global initialization of sound using SoundManagerGlobal (#7063) * Global initialization of sound using SoundManagerGlobal --- src/sound_openal.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/sound_openal.h') diff --git a/src/sound_openal.h b/src/sound_openal.h index 6d538c8f9..f2cff4daa 100644 --- a/src/sound_openal.h +++ b/src/sound_openal.h @@ -19,6 +19,12 @@ with this program; if not, write to the Free Software Foundation, Inc., #pragma once +#include + #include "sound.h" -ISoundManager *createOpenALSoundManager(OnDemandSoundFetcher *fetcher); +class SoundManagerSingleton; +extern std::shared_ptr g_sound_manager_singleton; + +std::shared_ptr createSoundManagerSingleton(); +ISoundManager *createOpenALSoundManager(SoundManagerSingleton *smg, OnDemandSoundFetcher *fetcher); -- cgit v1.2.3