/// -or-\n
/// An internal error occurs.
/// </exception>
- /// <exception cref="ArgumentNullException"><paramref name="device"> is null.</exception>
+ /// <exception cref="ArgumentNullException"><paramref name="device"/> is null.</exception>
/// <exception cref="AudioPolicyException"><see cref="AudioStreamType"/> of <paramref name="device"/> is unavailable for this.</exception>
/// <exception cref="ObjectDisposedException">The <see cref="AudioStreamPolicy"/> has already been disposed of.</exception>
/// <seealso cref="AudioManager.GetConnectedDevices()"/>
/// The available <see cref="AudioStreamType"/> is <see cref="AudioStreamType.Voip"/> and <see cref="AudioStreamType.MediaExternalOnly"/>.
/// </remarks>
/// <exception cref="InvalidOperationException">An internal error occurs.</exception>
- /// <exception cref="ArgumentNullException"><paramref name="device"> is null.</exception>
+ /// <exception cref="ArgumentNullException"><paramref name="device"/> is null.</exception>
/// <exception cref="ObjectDisposedException">The <see cref="AudioStreamPolicy"/> has already been disposed of.</exception>
/// <seealso cref="AudioManager.GetConnectedDevices()"/>
public void RemoveDeviceForStreamRouting(AudioDevice device)
/// <summary>
/// Gets the value indicating whether the <see cref="IMediaBuffer"/> is read-only.
/// </summary>
- /// <value> true if the <see cref="IMediaBuffer"/> is read-only; otherwise, false.
+ /// <value> true if the <see cref="IMediaBuffer"/> is read-only; otherwise, false.</value>
bool IsReadOnly { get; }
/// <summary>
/// </summary>
public MediaFormatAacType AacType { get; }
+ /// <summary>
+ /// Returns a string that represents the current object.
+ /// </summary>
+ /// <returns>A string that represents the current object.</returns>
public override string ToString()
- {
- return $@"MimeTyp={ MimeType.ToString() }, Channel={ Channel.ToString() }, SampleRate=
+ => $@"MimeType={ MimeType.ToString() }, Channel={ Channel.ToString() }, SampleRate=
{ SampleRate }, Bit={ Bit.ToString() }, BitRate={ BitRate.ToString() }, AacType={ AacType.ToString() }";
- }
+ /// <summary>
+ /// Compares an object to an instance of <see cref="AudioMediaFormat"/> for equality.
+ /// </summary>
+ /// <param name="obj">A <see cref="Object"/> to compare.</param>
+ /// <returns>true if the formats are equal; otherwise, false.</returns>
public override bool Equals(object obj)
{
var rhs = obj as AudioMediaFormat;
Bit == rhs.Bit && BitRate == rhs.BitRate;
}
+ /// <summary>
+ /// Gets the hash code for this instance of <see cref="AudioMediaFormat"/>.
+ /// </summary>
+ /// <returns>The hash code for this instance of <see cref="AudioMediaFormat"/>.</returns>
public override int GetHashCode()
- {
- return new { MimeType, Channel, SampleRate, Bit, BitRate }.GetHashCode();
- }
+ => new { MimeType, Channel, SampleRate, Bit, BitRate }.GetHashCode();
}
}
/// <summary>
/// Gets the mime type of the current format.
/// </summary>
- public MediaFormatContainerMimeType MimeType
- {
- get;
- }
+ public MediaFormatContainerMimeType MimeType { get; }
internal override void AsNativeHandle(IntPtr handle)
{
MultimediaDebug.AssertNoError(ret);
}
- public override string ToString()
- {
- return $"MimeType={ MimeType.ToString() }";
- }
+ /// <summary>
+ /// Returns a string that represents the current object.
+ /// </summary>
+ /// <returns>A string that represents the current object.</returns>
+ public override string ToString() => $"MimeType={ MimeType.ToString() }";
+ /// <summary>
+ /// Compares an object to an instance of <see cref="ContainerMediaFormat"/> for equality.
+ /// </summary>
+ /// <param name="obj">A <see cref="Object"/> to compare.</param>
+ /// <returns>true if the formats are equal; otherwise, false.</returns>
public override bool Equals(object obj)
{
var rhs = obj as ContainerMediaFormat;
return MimeType == rhs.MimeType;
}
+ /// <summary>
+ /// Gets the hash code for this instance of <see cref="ContainerMediaFormat"/>.
+ /// </summary>
+ /// <returns>The hash code for this instance of <see cref="ContainerMediaFormat"/>.</returns>
public override int GetHashCode()
- {
- return (int)MimeType;
- }
+ => (int)MimeType;
}
}
/// </summary>
public MediaFormatTextType TextType { get; }
+ /// <summary>
+ /// Returns a string that represents the current object.
+ /// </summary>
+ /// <returns>A string that represents the current object.</returns>
public override string ToString()
- {
- return $"MimeType={ MimeType.ToString() }, TextType={ TextType.ToString() }";
- }
+ => $"MimeType={ MimeType.ToString() }, TextType={ TextType.ToString() }";
+ /// <summary>
+ /// Compares an object to an instance of <see cref="TextMediaFormat"/> for equality.
+ /// </summary>
+ /// <param name="obj">A <see cref="Object"/> to compare.</param>
+ /// <returns>true if the formats are equal; otherwise, false.</returns>
public override bool Equals(object obj)
{
var rhs = obj as TextMediaFormat;
return MimeType == rhs.MimeType && TextType == rhs.TextType;
}
- public override int GetHashCode()
- {
- return new { MimeType, TextType }.GetHashCode();
- }
+ /// <summary>
+ /// Gets the hash code for this instance of <see cref="TextMediaFormat"/>.
+ /// </summary>
+ /// <returns>The hash code for this instance of <see cref="TextMediaFormat"/>.</returns>
+ public override int GetHashCode() => new { MimeType, TextType }.GetHashCode();
}
}
/// </summary>
public int BitRate { get; }
+ /// <summary>
+ /// Returns a string that represents the current object.
+ /// </summary>
+ /// <returns>A string that represents the current object.</returns>
public override string ToString()
- {
- return $@"MimeType={ MimeType.ToString() }, Size=({ Size.ToString() }), FrameRate=
+ => $@"MimeType={ MimeType.ToString() }, Size=({ Size.ToString() }), FrameRate=
{ FrameRate.ToString() }, BitRate={ BitRate.ToString() }";
- }
+ /// <summary>
+ /// Compares an object to an instance of <see cref="VideoMediaFormat"/> for equality.
+ /// </summary>
+ /// <param name="obj">A <see cref="Object"/> to compare.</param>
+ /// <returns>true if the formats are equal; otherwise, false.</returns>
public override bool Equals(object obj)
{
var rhs = obj as VideoMediaFormat;
FrameRate == rhs.FrameRate && BitRate == rhs.BitRate;
}
+ /// <summary>
+ /// Gets the hash code for this instance of <see cref="VideoMediaFormat"/>.
+ /// </summary>
+ /// <returns>The hash code for this instance of <see cref="VideoMediaFormat"/>.</returns>
public override int GetHashCode()
- {
- return new { MimeType, Size, FrameRate, BitRate }.GetHashCode();
- }
+ => new { MimeType, Size, FrameRate, BitRate }.GetHashCode();
}
}
{
}
+ /// <summary>
+ /// This method is used by the infrastructure and is not intended to be used directly from application code.
+ /// </summary>
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr evas = Interop.EvasObject.evas_object_evas_get(parent);