I’m still fairly new to creating singleton managers and OOP in general, so I’m not sure what I’m doing wrong. Here’s my code:
In AudioManager.h,
class AudioManager : public Singleton<AudioManager>
{
public:
AudioManager(m_dirty); // m_dirty is a struct to prevent extra declarations
static void Init();
~AudioManager();
private:
static FMOD::System* _system;
static FMOD::Sound* _testSound;
}
I’m not seeing anything obviously wrong with your FMOD usage, System::release should not hang. I’d recommend you check the error codes returned from each function to ensure things are working as expected. Also link with the logging version of FMOD to get logging info in the Visual Studio output window to help debugging.
Have you tried our examples? Do you get a hang with those too?
If not, are you able to modify our examples to demonstrate the hang to help us debug your problem?