Set equalizer parameters, band gain and preamp gain.
Public Function SetEqualizerParam(ByVal PreAmpGain As Integer, ByRef BandGain() As Integer, ByVal NumberOfBands As Integer) As Boolean
Parameters |
Description |
ByVal PreAmpGain As 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. |
ByRef BandGain() As Integer |
Array of integers specifying gain for each band in millidecibels (thousandth of decibel). Positive values boost volume, negative value drops volume. |
ByVal NumberOfBands As 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 |