Ejemplo n.º 1
0
        public void Create(Environment environment, RenderingSettings renderingSettings, GlobalContext globalContext)
        {
            HRTFParams hrtfParams = new HRTFParams
            {
                type           = HRTFDatabaseType.Default,
                hrtfData       = IntPtr.Zero,
                numHrirSamples = 0,
                loadCallback   = null,
                unloadCallback = null,
                lookupCallback = null
            };

            var error = PhononCore.iplCreateBinauralRenderer(globalContext, renderingSettings, hrtfParams, ref binauralRenderer);

            if (error != Error.None)
            {
                throw new Exception("Unable to create binaural renderer [" + error.ToString() + "]");
            }
        }
Ejemplo n.º 2
0
 public static extern Error iplCreateBinauralRenderer(GlobalContext globalContext, RenderingSettings renderingSettings, HRTFParams hrtfParams, [In, Out] ref IntPtr renderer);