예제 #1
0
        public unsafe void AddCallback(libobs.obs_volmeter_updated_t callback, IntPtr param)
        {
            // store the delegate tuple to prevent delegate getting removed
            // by garbage collector

            // Currently only support one callback
            if (delegateRefs.Any())
            {
                RemoveCallback();
            }

            delegateTuple tuple = new delegateTuple(callback, param);

            delegateRefs.Add(tuple);
            libobs.obs_volmeter_add_callback(instance, tuple.Item1, tuple.Item2);
        }
예제 #2
0
 public unsafe void AddCallBack(libobs.obs_volmeter_updated_t callback)
 {
     AddCallback(callback, IntPtr.Zero);
 }