コード例 #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);
 }