Ejemplo n.º 1
0
    public static void Init()
    {
        Debug.Log("Time initialized");
        s_Stopwatch.Start();

        MyGameWindow.main.UpdateFrame += Update;
    }
Ejemplo n.º 2
0
    public static RESULT LoadSound(string path, out Sound sound)
    {
        var result = m_FMODSystem.createStream(path, MODE.DEFAULT, out sound);

        Debug.Log("Loading " + path + "... Result: " + result);

        return(result);
    }
Ejemplo n.º 3
0
    public static RESULT LoadChannel(Sound sound, out Channel channel)
    {
        var result = m_FMODSystem.playSound(sound, null, true, out channel);

        Debug.Log("Loading channel... Result: " + result);

        return(result);
    }
Ejemplo n.º 4
0
    private static RESULT LogError(
        object obj, RESULT result,
        [CallerLineNumber] int lineNumber = 0,
        [CallerMemberName] string caller  = null,
        [CallerFilePath] string filePath  = null)
    {
        Debug.LogError(obj, lineNumber, caller, filePath);

        return(result);
    }
Ejemplo n.º 5
0
    public static void Init()
    {
        if (Environment.Is64BitProcess)
        {
            Debug.Log("Loading 64bit FMOD Library");
            LoadLibrary("FMOD\\64\\fmod.dll");
        }
        else
        {
            Debug.Log("Loading 32bit FMOD Library");
            LoadLibrary("FMOD\\32\\fmod.dll");
        }

        Debug.Log("Creating System... Result: " + Factory.System_Create(out m_FMODSystem));

        Debug.Log("Setting DSP Buffer Size... Result: " + m_FMODSystem.setDSPBufferSize(1024, 4));
        Debug.Log(
            "Initializing System... Result: " + m_FMODSystem.init(32, INITFLAGS.NORMAL, (IntPtr)0));
    }