libZPlay documentation (Win32)
IndexReferenceHome
PreviousUpNext
ZPlay::EnableEqualizer Method

Enable or disable equalizer.

C++
virtual __stdcall int EnableEqualizer(int fEnable) = 0;
Parameters 
Description 
int fEnable 
Flag for enabling or disabling equalizer. If this parameter is 1, equalizer is enabled. If this parameter is 0, equalizer is disabled. 
Return Values 
Description 
All OK. 
Error. To get error message read here

Class has by default 10 equalizer bands. See SetEqualizerPoints.  

Note: By default, new class instance has disabled equalizer. To apply equalizer, user must enable this effect. 

Cut bas and boost high tones. Don't change preamp gain. 

ZPlay C++ Class interface  

int eq_values[10];
eq_values[0] = -12000;
eq_values[1] = -12000;  // cut bas 12 db
eq_values[2] = 0;
eq_values[3] = 0;  // unchanged
eq_values[4] = 0;
eq_values[5] = 0;
eq_values[6] = 0;
eq_values[7] = 12000; // boost high tones 12 db
eq_values[8] = 12500;
eq_values[9] = 0;
instance->SetEqualizerParam(0, eq_values, 10);
instance->EnableEqualizer(1); // enable equalizer

 

C Style interface

int eq_values[10];
eq_values[0] = -12000;
eq_values[1] = -12000;  // cut bas 12 db
eq_values[2] = 0;
eq_values[3] = 0;  // unchanged
eq_values[4] = 0;
eq_values[5] = 0;
eq_values[6] = 0;
eq_values[7] = 12000; // boost high tones 12 db
eq_values[8] = 12500;
eq_values[9] = 0;
zplay_SetEqualizerParam(instance, 0, eq_values, 10);
zplay_EnableEqualizer(instance, 1); // enable equalizer
Copyright (c) 2010. Zoran Cindori - All rights reserved.

Web: http://libzplay.sourceforge.net/

Email: zcindori@inet.hr