Enable or disable equalizer.
__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 |
1 |
All OK. |
0 |
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.
SetEqualizerPoints, GetEqualizerPoints, SetEqualizerParam, GetEqualizerParam, SetEqualizerPreampGain, GetEqualizerPreampGain, SetEqualizerBandGain, GetEqualizerBandGain
zplay_SetEqualizerPoints, zplay_GetEqualizerPoints, zplay_SetEqualizerParam, zplay_GetEqualizerParam, zplay_SetEqualizerPreampGain, zplay_GetEqualizerPreampGain, zplay_SetEqualizerBandGain, zplay_GetEqualizerBandGain
Cut bas and boost high tones. Don't change preamp gain.
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
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 |