Ejemplo n.º 1
0
    public void StartInternal()
    {
        // Ensure that the material is not initialized twice.
        if (materialHandle != IntPtr.Zero)
        {
            return;
        }

        // Create the internal material.
        if (PropIFace.CreateAudioMaterial(out materialHandle) != ONSPPropagationGeometry.OSPSuccess)
        {
            throw new Exception("Unable to create internal audio material");
        }

        // Run the updates to initialize the material.
        UploadMaterial();
    }