Ejemplo n.º 1
0
        public FModSounds()
        {
            Instance = this;
            FMOD.RESULT result = FMOD.Factory.System_Create(ref system);
            ERRCHECK(result);

            uint version = 0;

            result = system.getVersion(ref version);
            ERRCHECK(result);
            if (version < FMOD.VERSION.number)
            {
                System.Diagnostics.Trace.TraceError("Error!  You are using an old version of FMOD " + version.ToString("X") + ".  This program requires " + FMOD.VERSION.number.ToString("X") + ".");
            }

            result = system.init(32, FMOD.INITFLAGS.NORMAL, (System.IntPtr)null);
            ERRCHECK(result);

            system.createChannelGroup("channelGroup", ref channelGroup);
        }
Ejemplo n.º 2
0
 public static void StaticDispose()
 {
     Instance = null;
 }