コード例 #1
0
 /// <summary>
 /// Notifies the client that the volume level of an audio channel in the session submix has changed.
 /// </summary>
 /// <param name="channelCount">The number of channels in the session submix.</param>
 /// <param name="newChannelVolumeArray">An array of volume levels. Each element is a value of type float that specifies the volume level for a particular channel. Each volume level is a value in the range 0.0 to 1.0, where 0.0 is silence and 1.0 is full volume (no attenuation). The number of elements in the array is specified by the ChannelCount parameter.</param>
 /// <param name="changedChannel">The number of the channel whose volume level changed.</param>
 /// <param name="eventContext">The event context value.</param>
 /// <returns></returns>
 void IAudioSessionEvents.OnChannelVolumeChanged(int channelCount, float[] newChannelVolumeArray,
                                                 int changedChannel, ref Guid eventContext)
 {
     ChannelVolumeChanged?.Invoke(this,
                                  new AudioSessionChannelVolumeChangedEventArgs(channelCount, newChannelVolumeArray, changedChannel,
                                                                                eventContext));
 }
コード例 #2
0
 /// <summary>
 /// Notifies the client that the volume level of an audio channel in the session submix has changed.
 /// </summary>
 /// <param name="channelCount">The number of channels in the session submix.</param>
 /// <param name="newChannelVolumeArrayPtr">An array of volume levels. Each element is a value of type float that specifies the volume level for a particular channel. Each volume level is a value in the range 0.0 to 1.0, where 0.0 is silence and 1.0 is full volume (no attenuation). The number of elements in the array is specified by the ChannelCount parameter.</param>
 /// <param name="changedChannel">The number of the channel whose volume level changed.</param>
 /// <param name="eventContext">The event context value.</param>
 /// <returns></returns>
 int IAudioSessionEvents.OnChannelVolumeChanged(
     uint channelCount,
     IntPtr newChannelVolumeArrayPtr,
     uint changedChannel,
     ref Guid eventContext
     )
 {
     ChannelVolumeChanged?.Invoke(this, new AudioSessionChannelVolumeChangedEventArgs(channelCount, newChannelVolumeArrayPtr, changedChannel, eventContext));
     return(0);
 }