/// <inheritdoc cref="Command.SetSystemAudioMode"/> /// <param name="device">The device.</param> /// <param name="destination">The destination address.</param> /// <param name="status">The system audio status.</param> /// <returns>A <see cref="CecMessage"/> object representing the command.</returns> public static CecMessage SetSystemAudioMode(this CecDevice device, LogicalAddress destination, SystemAudioStatus status) { return(CecMessageBuilder.SetSystemAudioMode(device.LogicalAddress, destination, status)); }
/// <inheritdoc cref="Command.SetSystemAudioMode"/> /// <param name="source">The <c>CecMessage</c> source.</param> /// <param name="destination">The <c>CecMessage</c> destination.</param> /// <param name="status">The system audio status.</param> /// <returns>A <c>CecMessage</c> that represents the command.</returns> public static CecMessage SetSystemAudioMode(LogicalAddress source, LogicalAddress destination, SystemAudioStatus status) { return(new CecMessage(source, destination, Command.SetSystemAudioMode, ByteArrayHelper.ToByteArray(Convert.ToByte(status), "X2"))); }