예제 #1
0
        internal void FireChannelVolumeChanged(SessionChannelVolumeChangedEventArgs e)
        {
            SessionChannelVolumeChangedEventHandler del = OnChannelVolumeChanged;

            if (del != null)
            {
                del(this, e);
            }
        }
예제 #2
0
        public int OnChannelVolumeChanged(uint ChannelCount, IntPtr NewChannelVolumeArray, uint ChangedChannel, Guid EventContext)
        {
            float[] array = new float[ChannelCount];
            Marshal.Copy(NewChannelVolumeArray, array, 0, array.Length);
            Marshal.FreeCoTaskMem(NewChannelVolumeArray);

            if (_sessionControl != null)
            {
                SessionChannelVolumeChangedEventArgs e = new SessionChannelVolumeChangedEventArgs(array, ChangedChannel, EventContext);
                _sessionControl.FireChannelVolumeChanged(e);
            }
            return(0);
        }
예제 #3
0
        public int OnChannelVolumeChanged(uint ChannelCount, IntPtr NewChannelVolumeArray, uint ChangedChannel, Guid EventContext)
        {
            float[] array = new float[ChannelCount];
            Marshal.Copy(NewChannelVolumeArray, array, 0, array.Length);
            Marshal.FreeCoTaskMem(NewChannelVolumeArray);

            if (_sessionControl != null)
            {
                SessionChannelVolumeChangedEventArgs e = new SessionChannelVolumeChangedEventArgs(array, ChangedChannel, EventContext);
                _sessionControl.FireChannelVolumeChanged(e);
            }
            return 0;
        }
예제 #4
0
 internal void FireChannelVolumeChanged(SessionChannelVolumeChangedEventArgs e)
 {
     SessionChannelVolumeChangedEventHandler del = OnChannelVolumeChanged;
     if (del != null) del(this, e);
 }