/// <summary> /// Sets the parameters that describe the properties of the client's audio stream. /// </summary> /// <param name="useHardwareOffload">Boolean value to indicate whether or not the audio stream is hardware-offloaded.</param> /// <param name="category">An enumeration that is used to specify the category of the audio stream.</param> /// <param name="options">A bit-field describing the characteristics of the stream. Supported in Windows 8.1 and later.</param> public void SetClientProperties(bool useHardwareOffload, AudioStreamCategory category, AudioClientStreamOptions options) { audioClientProperties = new AudioClientProperties() { cbSize = (uint)Marshal.SizeOf <AudioClientProperties>(), bIsOffload = Convert.ToInt32(useHardwareOffload), eCategory = category, Options = options }; }
/// <summary> /// Sets the parameters that describe the properties of the client's audio stream. /// </summary> /// <param name="useHardwareOffload">Boolean value to indicate whether or not the audio stream is hardware-offloaded.</param> /// <param name="category">An enumeration that is used to specify the category of the audio stream.</param> /// <param name="options">A bit-field describing the characteristics of the stream. Supported in Windows 8.1 and later.</param> public void SetClientProperties(bool useHardwareOffload, AudioStreamCategory category, AudioClientStreamOptions options) { audioClientProperties = new AudioClientProperties() { cbSize = (uint) Marshal.SizeOf(typeof (AudioClientProperties)), bIsOffload = Convert.ToInt32(useHardwareOffload), eCategory = category, Options = options }; }