libZPlay documentation (Win32)
IndexReferenceHome
PreviousUpNext
ZPlay.MixChannels Method

Mix stereo channels into mono channel.

C#
public bool MixChannels(bool Enable, uint LeftPercent, uint RightPercent);
Parameters 
Description 
bool Enable 
True enables mixing, false disables mixing. 
uint LeftPercent 
Percent of left channel in resulting sound. Range is from 0 to 100. 
uint RightPercent 
Percent of right channel in resulting sound. Range is from 0 to 100. 
Return Values 
Description 
True 
All OK. 
False 
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