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

Mix stereo channels into mono channel.

C++
virtual __stdcall int MixChannels(int fEnable, unsigned int nLeftPercent, unsigned int nRightPercent) = 0;
Parameters 
Description 
int fEnable 
Value 1 enables mixing, value 0 disables mixing. 
unsigned int nLeftPercent 
Percent of left channel in resulting sound. Range is from 0 to 100. 
unsigned int nRightPercent 
Percent of right channel in resulting sound. Range is from 0 to 100. 
Return Values 
Description 
All OK. 
Error. To get error message read here

This function will mix left and right channel and produce 2 channels with the same data. 

Note: libZPlay library will always outputs stereo data. Even if input stream is mono, class will output 2 channels with the same data. On stereo streams, mixing function will mix left and right channel and output will be 2 identical channels.  

Copyright (c) 2010. Zoran Cindori - All rights reserved.

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

Email: zcindori@inet.hr