internal void FireChannelVolumeChanged(SessionChannelVolumeChangedEventArgs e) { SessionChannelVolumeChangedEventHandler del = OnChannelVolumeChanged; if (del != null) { del(this, e); } }
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); }
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; }
internal void FireChannelVolumeChanged(SessionChannelVolumeChangedEventArgs e) { SessionChannelVolumeChangedEventHandler del = OnChannelVolumeChanged; if (del != null) del(this, e); }