/// <summary> /// Get an attribute from the associated resampler. /// </summary> /// <param name="Handle">The stream's handle.</param> /// <param name="Attribute">A <see cref="SoxChannelAttribute"/>.</param> /// <param name="Value"></param> /// <returns></returns> public static bool ChannelGetAttribute(int Handle, SoxChannelAttribute Attribute, out int Value) { return(BASS_SOX_ChannelGetAttribute(Handle, Attribute, out Value)); }
/// <summary> /// Set an attribute on the associated resampler. /// </summary> /// <param name="Handle">The stream's handle.</param> /// <param name="Attribute">A <see cref="SoxChannelAttribute"/>.</param> /// <param name="Value"></param> /// <returns></returns> public static bool ChannelSetAttribute(int Handle, SoxChannelAttribute Attribute, bool Value) { return(BASS_SOX_ChannelSetAttribute(Handle, Attribute, Value ? 1 : 0)); }
static extern bool BASS_SOX_ChannelGetAttribute(int Handle, SoxChannelAttribute Attribute, out int Value);
/// <summary> /// Set an attribute on the associated resampler. /// </summary> /// <param name="Handle">The stream's handle.</param> /// <param name="Attribute">A <see cref="SoxChannelAttribute"/>.</param> /// <param name="Value">A <see cref="SoxChannelPhase"/>.</param> /// <returns></returns> public static bool ChannelSetAttribute(int Handle, SoxChannelAttribute Attribute, SoxChannelPhase Value) { return(BASS_SOX_ChannelSetAttribute(Handle, Attribute, (int)Value)); }