Set equalizer points to create new frequency bands.
__stdcall __declspec(dllimport) int zplay_SetEqualizerPoints(ZPLAY_HANDLE handle, int * pnFreqPoint, int nNumOfPoints);
Parameters |
Description |
ZPLAY_HANDLE handle |
ZPLAY handle. Get this handle with zplay_CreateZPlay. |
int * pnFreqPoint |
Array of integers specifying frequency points to divide whole frequency range into bands. You have frequency range from 0 Hz to SampleRate/2 Hz. You need to specify frequency points to divide this range into bands. One point will divide range into 2 bands, 2 points will divide range into 3 bands ... If this value is NULL, class will restore default bands. |
int nNumOfPoints |
Number of points in pnFreqPoint array. |
Return Values |
Description |
1 |
All OK. |
0 |
Error. To get error message read here. |
New instance of interface has 10 default equalizer bands.
int FreqPoint[9] = {115, 240, 455, 800, 2000, 4500, 9000, 13000, 15000};
Note: There is no limit on number of bands.
GetEqualizerPoints, SetEqualizerParam, GetEqualizerParam, SetEqualizerPreampGain, GetEqualizerPreampGain, SetEqualizerBandGain, GetEqualizerBandGain, EnableEqualizer
zplay_GetEqualizerPoints, zplay_SetEqualizerParam, zplay_GetEqualizerParam, zplay_SetEqualizerPreampGain, zplay_GetEqualizerPreampGain, zplay_SetEqualizerBandGain, zplay_GetEqualizerBandGain, zplay_EnableEqualizer
Create 8 custom bands.
// band0: 0 - 100 Hz // band1: 100 - 400 Hz // band2: 400 - 1000 Hz // band3: 1000 - 3000 Hz // band4: 3000 - 5000 Hz // band5: 5000 - 10000 Hz // band6: 10000 - 15000 Hz // band7: 15000 - sr/2 Hz int eq_points[7] = {100, 400, 1000, 3000, 5000, 10000, 15000}; instance->SetEqualizerPoints(eq_points, 7);
// band0: 0 - 100 Hz // band1: 100 - 400 Hz // band2: 400 - 1000 Hz // band3: 1000 - 3000 Hz // band4: 3000 - 5000 Hz // band5: 5000 - 10000 Hz // band6: 10000 - 15000 Hz // band7: 15000 - sr/2 Hz int eq_points[7] = {100, 400, 1000, 3000, 5000, 10000, 15000}; zplay_SetEqualizerPoints(instance, eq_points, 7);
Copyright (c) 2010. Zoran Cindori - All rights reserved.
Web: http://libzplay.sourceforge.net/ Email: zcindori@inet.hr |