libZPlay documentation (Win32)
IndexReferenceHome
PreviousUpNext
libZPlayCpp::zplay_SetEqualizerPreampGain Function

Set equalizer preamp gain.

C++
__stdcall __declspec(dllimport) int zplay_SetEqualizerPreampGain(ZPLAY_HANDLE handle, int nGain);
Parameters 
Description 
ZPLAY_HANDLE handle 
ZPLAY handle. Get this handle with zplay_CreateZPlay
int nGain 
Preamp gain in millidecibels. Positive value boost gain, negative value lower gain. 
Return Values 
Description 
All OK. 
Error. To get error message read here

Note: Band gain is expressed in millidecibels. 

Preamp gain affects all bands.  

Class has by default 10 equalizer bands. See SetEqualizerPoints.

Raise preamp gain for 2 decibels. 

ZPlay C++ Class interface  

// raise preamp gain for 2 decibels
instance->SetEqualizerPreampGain(2000);

 

C Style interface

// raise preamp gain for 2 decibels
zplay_SetEqualizerPreampGain(instance, 2000);
Copyright (c) 2010. Zoran Cindori - All rights reserved.

Web: http://libzplay.sourceforge.net/

Email: zcindori@inet.hr