Set equalizer parameters, band gain and preamp gain.
function SetEqualizerParam(PreAmpGain: Integer; var BandGain: array of Integer; NumberOfBands: Integer): Boolean;
Parameters |
Description |
PreAmpGain: Integer |
Preamp gain in millidecibels (thousandth of decibel). Value 0 specifies no change. Positive values boost volume, negative value drops volume. This value has effect on all bands. |
var BandGain: array of Integer |
Array of integers specifying gain for each band in millidecibels (thousandth of decibel). Positive values boost volume, negative value drops volume. |
NumberOfBands: Integer |
Number of frequency bands. |
Return Values |
Description |
True |
All OK. |
False |
Error. To get error message read here. |
Note: Band gain is expressed in millidecibels.
Class has by default 10 equalizer bands. See SetEqualizerPoints. If you create custom bands, use correct number of bands as nNumberOfBands parameter. And don't forget to specify pnBandGain array with correct size.
If you create 20 equalizer bands, then you need to send pointer to 20 values as pnBandGain parameter.
Copyright (c) 2010. Zoran Cindori - All rights reserved.
Web: http://libzplay.sourceforge.net/ Email: zcindori@inet.hr |