Get equalizer points of frequency bands.
virtual __stdcall int GetEqualizerPoints(int * pnFreqPoint, int nFreqPointNumber) = 0;
Parameters |
Description |
int * pnFreqPoint |
Pointer to array of integers receiving frequency points for frequancy bands. You have frequency range from 0 Hz to SampleRate/2 Hz. One point will divide range into 2 bands, 2 points will divide range into 3 bands ... If this value is NULL, function returns required size of array, required number of points. Caution: User must allocate memory for this array. |
nNumOfPoints |
Size of pnFreqPoint array, number of allocated points. If this value is 0, function returns required size for pnFreqPoint array, required number of points. |
Number of frequency points.
If pnFreqPoint is NULL or nNumOfPoints is 0, function returns number of frequency points. Use this value to allocate memory for pnFreqPoint array.
New instance of interface has 10 default equalizer bands.
int FreqPoint[9] = {115, 240, 455, 800, 2000, 4500, 9000, 13000, 15000};
SetEqualizerPoints, SetEqualizerParam, GetEqualizerParam, SetEqualizerPreampGain, GetEqualizerPreampGain, SetEqualizerBandGain, GetEqualizerBandGain, EnableEqualizer
zplay_SetEqualizerPoints, zplay_SetEqualizerParam, zplay_GetEqualizerParam, zplay_SetEqualizerPreampGain, zplay_GetEqualizerPreampGain, zplay_SetEqualizerBandGain, zplay_GetEqualizerBandGain, zplay_EnableEqualizer
Get frequency points.
int nNumOfPoints = instance->GetEqualizerPoints(NULL, 0); // get number of frequancy points int *pPoints = new int[nNumOfPoints]; // allocate memory int i; int number_of_points = instance->GetEqualizerPoints(pPoints, nNumOfPoints); for(i = 0; i < number_of_points; i++) { printf("Band %i: %i\n", i, pPoints[i]); } delete [] pPoints;
int nNumOfPoints = zplay_GetEqualizerPoints(instance, NULL, 0); // get number of frequancy points int *pPoints = new int[nNumOfPoints]; // allocate memory int i; int number_of_points = zplay_GetEqualizerPoints(instance, pPoints, nNumOfPoints); for(i = 0; i < number_of_points; i++) { printf("Band %i: %i\n", i, pPoints[i]); } delete [] pPoints;
Copyright (c) 2010. Zoran Cindori - All rights reserved.
Web: http://libzplay.sourceforge.net/ Email: zcindori@inet.hr |