Mix stereo channels into mono channel.
bool MixChannels(bool Enable, System::UInt32 LeftPercent, System::UInt32 RightPercent);
Parameters |
Description |
bool Enable |
True enables mixing, false disables mixing. |
System::UInt32 LeftPercent |
Percent of left channel in resulting sound. Range is from 0 to 100. |
System::UInt32 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 |