libZPlay documentation (Win32)
IndexReferenceHome
PreviousUpNext
libZPlayCpp::zplay_EnableEqualizer Function

Enable or disable equalizer.

C++
__stdcall __declspec(dllimport) int zplay_EnableEqualizer(ZPLAY_HANDLE handle, int fEnable);
Parameters 
Description 
ZPLAY_HANDLE handle 
ZPLAY handle. Get this handle with zplay_CreateZPlay
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