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

Cut center or sides from stereo.

C++
virtual __stdcall int StereoCut(int fEnable, int fOutputCenter, int fBassToSides) = 0;
Parameters 
Description 
int fEnable 
Value 1 enables stereo cut, value 0 disables stereo cut. 
int fOutputCenter 
Value 1 outputs center and cuts sides. Value 0 outputs sides and cut center. 
int fBassToSides 
Value 1 enables bass to sides, value 0 disables bass to sides. 
Return Values 
Description 
All OK. 
Error. To get error message read here

Using this function you can cut center or side from stereo sound. This algorithm is based on FFT algorithm. 

Note: Set fBassToSides to 1 to enable bass output to sides. In this case bass from stereo center will not be cut and will remain in output. 

If you cut sides from stereo sound, resulting sound will contain only stereo center. In this case you will get sound with vocal, but without music. 

If you cut sides from stereo sound, resulting sound will contain only stereo center. In this case you will get sound with vocal, but without music.

Stereo center cut. 

ZPlay C++ Class interface  

instance->StereoCut(1, 0, 0);

 

C Style interface

zplay_StereoCut(instance, 1, 0, 0);
Copyright (c) 2010. Zoran Cindori - All rights reserved.

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

Email: zcindori@inet.hr