public FmodMusicSystem(FMOD.MusicSystem musicSystem) { if (m_musicSystem == null) { m_musicSystem = musicSystem; } }
public void release() { if (m_musicSystem != null) { m_musicSystem.freeSoundData(true); m_musicSystem = null; } }
public FmodMusicSystem getMusicSystem() { if (m_musicSystem == null) { if (m_eventSystem == null) { } FMOD.MusicSystem musicSystem = null; FMOD.RESULT result = m_eventSystem.getMusicSystem(ref musicSystem); ERRCHECK(result); m_musicSystem = new FmodMusicSystem(musicSystem); } return(m_musicSystem); }