libZPlay documentation (Win32)
IndexReferenceHome
PreviousUpNext
ZPlay::SetFFTGraphParam Method

Set and change parameters of FFT graph.

C++
virtual __stdcall int SetFFTGraphParam(TFFTGraphParamID nParamID, int nValue) = 0;
Parameters 
Description 
TFFTGraphParamID nParamID 
FFT graph parameter identifier. Specify parameter you need to set or change. 
int nValue 
Parameter value. This value depends on parameter identifier. Read more info about valid values for specific parameter identifier
Return Values 
Description 
All OK. 
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.

ZPlay C++ Class interface

// 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);

C Style interface

// 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