ThrowIfFailed("Failed to initialize the AudioEffect");
Count = count;
- MinBandLevel = min;
- MaxBandLevel = max;
+ BandLevelRange = new Range(min, max);
_bands = new EqualizerBand[count];
}
/// <summary>
/// Gets a <see cref="EqualizerBand"/> at the specified index.
/// </summary>
- /// <param name="index">The index of the band to get</param>
+ /// <param name="index">The index of the band to get.</param>
/// <exception cref="ObjectDisposedException">The <see cref="Player"/> has already been disposed of.</exception>
/// <exception cref="ArgumentOutOfRangeException">
- /// index is less than zero.
- /// <para>-or-</para>
- /// index is equal to or greater than <see cref="Count"/>.
+ /// <pramref name="index"/> is less than zero.<br/>
+ /// -or-<br/>
+ /// <paramref name="index"/> is equal to or greater than <see cref="Count"/>.
/// </exception>
public EqualizerBand this[int index]
{
get
{
- Log.Debug(PlayerLog.Tag, PlayerLog.Enter);
Player.ValidateNotDisposed();
if (index < 0 || Count <= index)
/// <exception cref="ObjectDisposedException">The <see cref="Player"/> has already been disposed of.</exception>
public void Clear()
{
- Log.Debug(PlayerLog.Tag, PlayerLog.Enter);
Player.ValidateNotDisposed();
Native.EqualizerClear(Player.Handle).
ThrowIfFailed("Failed to clear equalizer effect");
- Log.Debug(PlayerLog.Tag, PlayerLog.Leave);
}
- public int Count{ get; }
-
- // TODO replace with range struct
/// <summary>
- /// Get the minimum band level of the bands in dB.
+ /// Gets the number of items.
/// </summary>
- public int MinBandLevel { get; }
+ public int Count { get; }
/// <summary>
- /// Gets the maximum band level of the bands in dB.
+ /// Gets the band level range of the bands in the dB.
/// </summary>
- public int MaxBandLevel { get; }
+ public Range BandLevelRange { get; }
/// <summary>
/// Gets the value whether the AudioEffect is available or not.