Okay: Another problem has arrived.
I use the struct to set the equalizer:
1 2 3 4 5 6 7
|
//Creates structure.
BASS_DX8_PARAMEQ eq;
//... does some stuff. Changing members value etc.
//Sets effect.
BASS_ChannelSetFX(handle, eq, 1);
|
I get the following error:
1 2
|
error C2664: 'BASS_ChannelSetFX' : cannot convert parameter 2 from 'BASS_DX8_PARAMEQ' to 'DWORD'
1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
|
I've looked in the help file for the libary and it has the following description:
1 2 3 4 5
|
HFX BASS_ChannelSetFX(
DWORD handle,
DWORD type,
int priority
);
|
Parameters:
handle The channel handle... a HSTREAM, HMUSIC, or HRECORD.
type One of the following types of effect.
BASS_FX_DX8_CHORUS DX8 Chorus. Use BASS_DX8_CHORUS structure to set/get parameters.
BASS_FX_DX8_COMPRESSOR DX8 Compression. Use BASS_DX8_COMPRESSOR structure to set/get parameters.
BASS_FX_DX8_DISTORTION DX8 Distortion. Use BASS_DX8_DISTORTION structure to set/get parameters.
BASS_FX_DX8_ECHO DX8 Echo. Use BASS_DX8_ECHO structure to set/get parameters.
BASS_FX_DX8_FLANGER DX8 Flanger. Use BASS_DX8_FLANGER structure to set/get parameters.
BASS_FX_DX8_GARGLE DX8 Gargle. Use BASS_DX8_GARGLE structure to set/get parameters.
BASS_FX_DX8_I3DL2REVERB DX8 I3DL2 (Interactive 3D Audio Level 2) reverb. Use
BASS_DX8_I3DL2REVERB structure to set/get parameters.
BASS_FX_DX8_PARAMEQ DX8 Parametric equalizer. Use BASS_DX8_PARAMEQ structure to set/get parameters.
BASS_FX_DX8_REVERB DX8 Reverb. Use BASS_DX8_REVERB structure to set/get parameters.
other effects may be supported by add-ons, eg. BASS_FX.
priority The priority of the new FX, which determines its position in the DSP chain. DSP/FX with higher priority are applied before those with lower. This parameter has no effect with DX8 effects when the "with FX flag" DX8 effect implementation is used.
How come it wants a DWORD?
Regards,
Simon H.A.