25 May '13 - 23:29 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: Equalizer with Bass 2.3.0.2 and Visual Basic 6  (Read 1232 times)
SKS
Guest
« on: 4 Nov '07 - 19:18 »
Reply with quoteQuote

I would like to build a 7 band equalizer (250 Hz, 500 Hz, 1, 2, 4, 8, 16 kHz).
But I don't succeed.
I do not use the BASS_SAMPLE_FX flag, the stream which is uses for the effect is created with BASS_SAMPLE_SOFTWARE flag.

What's wrong with the following code?
Private Sub sld250Hz_Change()
    'Slider sld250Hz Min = -15, Max = 15
    'Set up effect on stream (cdhandle is a stream)
    BASS_ChannelSetFX cdhandle, BASS_FX_PARAMEQ, 1
    'Set Center to 125; Bandwith to 36; Gain to sld250Hz.Value
    BASS_FXSetParameters cdhandle, BASS_FX_PARAMEQ(125, 36, sld250Hz.value)
End Sub
Logged
Ian @ un4seen
Administrator
Posts: 15276


« Reply #1 on: 5 Nov '07 - 16:23 »
Reply with quoteQuote

What exactly is not succeeding, eg. is it a particular call, and if so, what error code (BASS_ErrorGetCode) does it generate? Also, checkout the FXTEST example for a little EQ demonstration.
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines