Set and change parameters of FFT graph.
__stdcall __declspec(dllimport) int zplay_SetFFTGraphParam(ZPLAY_HANDLE handle, TFFTGraphParamID nParamID, int nParamValue);
Parameters |
Description |
ZPLAY_HANDLE handle |
ZPLAY handle. Get this handle with zplay_CreateZPlay. |
TFFTGraphParamID nParamID |
FFT graph parameter identifier. Specify parameter you need to set or change. |
nValue |
Parameter value. This value depends on parameter identifier. Read more info about valid values for specific parameter identifier. |
Return Values |
Description |
1 |
All OK. |
0 |
Error. To get error message read here. |
By default, FFT graph is using 512 FFT points, 257 harmonics, Blackman-Harris window, logarithmic frequency distribution, line type, 25% transparency.
// set horizontal scale to logarithmic instance->SetFFTGraphParam(gpHorizontalScale, gsLogarithmic); // set FFT points to 256 instance->SetFFTGraphParam(gpFFTPoints, 256); // set graph type to bars, left channel on top instance->SetFFTGraphParam(gpGraphType, gtBarsLeftOnTop);
// set horizontal scale to logarithmic zplay_SetFFTGraphParam(instance, gpHorizontalScale, gsLogarithmic); // set FFT points to 256 zplay_SetFFTGraphParam(instance, gpFFTPoints, 256); // set graph type to bars, left channel on top zplay_SetFFTGraphParam(instance, gpGraphType, gtBarsLeftOnTop);
Copyright (c) 2010. Zoran Cindori - All rights reserved.
Web: http://libzplay.sourceforge.net/ Email: zcindori@inet.hr |