Mix stereo channels into mono channel.
__stdcall __declspec(dllimport) int zplay_MixChannels(ZPLAY_HANDLE handle, int fEnable, unsigned int nLeftPercent, unsigned int nRightPercent);
Parameters |
Description |
ZPLAY_HANDLE handle |
ZPLAY handle. Get this handle with zplay_CreateZPlay. |
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 |
1 |
All OK. |
0 |
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 |