how change bass in C# bass.dll in runtime?

  Kiến thức lập trình

I am writing a player with the function of changing low frequencies in C# using the library bass.dll I have a problem with the low frequency change function. I use the BASS_FX_SET_PARAMETERS method, but there is no effect

private void FreaqBar_Scroll(object sender, EventArgs e)
{
    try
    {
        sound.ChangeBass((float)FreaqBar.Value);
    }
    catch
    {
        MessageBox.Show("Трек не выбран");
    }
}
public void ChangeBass(float gain)
{
    Bass.BASS_ChannelRemoveFX(Stream, (int)BASSFXType.BASS_FX_DX8_PARAMEQ);
    Bass.BASS_ChannelSetFX(Stream, BASSFXType.BASS_FX_DX8_PARAMEQ, 0);
    BASS_DX8_PARAMEQ bassboost = new BASS_DX8_PARAMEQ(100f, 18f, gain);
    Bass.BASS_FXSetParameters(Stream, bassboost);
}

I use the BASS_FX_SET_PARAMETERS method, but there is no effect

New contributor

thendont is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT