/// <see cref="MediaFormatAudioChannelPosition.Mono"/> or <see cref="MediaFormatAudioChannelPosition.None"/> is set with another channel position.
/// </exception>
/// <exception cref="ArgumentOutOfRangeException">
- /// <paramref name="channel"/>, <paramref name="sampleRate"/>, <paramref name="bit"/>, or <paramref name="bitRate"/> is less than zero.
+ /// <paramref name="channel"/>, <paramref name="sampleRate"/>, <paramref name="bit"/>, or <paramref name="bitRate"/>,
+ /// <paramref name="bitDepth"/> is less than zero.
/// </exception>
/// <since_tizen> 6 </since_tizen>
public AudioMediaFormat(MediaFormatAudioMimeType mimeType,
/// <see cref="MediaFormatAudioChannelPosition.Mono"/> or <see cref="MediaFormatAudioChannelPosition.None"/> is set with another channel position.
/// </exception>
/// <exception cref="ArgumentOutOfRangeException">
- /// <paramref name="channel"/>, <paramref name="sampleRate"/>, <paramref name="bit"/>, or <paramref name="bitRate"/> is less than zero.
+ /// <paramref name="channel"/>, <paramref name="sampleRate"/>, <paramref name="bit"/>, or <paramref name="bitRate"/>,
+ /// <paramref name="bitDepth"/> is less than zero.
/// </exception>
/// <since_tizen> 6 </since_tizen>
public AudioMediaFormat(MediaFormatAudioMimeType mimeType,
throw new ArgumentOutOfRangeException(nameof(bitRate), bitRate,
"Bit rate value can't be negative.");
}
+ if (bitDepth < 0)
+ {
+ throw new ArgumentOutOfRangeException(nameof(bitDepth), bitDepth,
+ "Bit depth value can't be negative.");
+ }
ValidationUtil.ValidateEnum(typeof(MediaFormatAacType), aacType, nameof(aacType));