libZPlay documentation (Win32)
IndexReferenceHome
PreviousUpNext
ZPlay.MixChannels Method

Mix stereo channels into mono channel.

Visual Basic
Public Function MixChannels(ByVal Enable As Boolean, ByVal LeftPercent As UInteger, ByVal RightPercent As UInteger) As Boolean
Parameters 
Description 
ByVal Enable As Boolean 
True enables mixing, false disables mixing. 
ByVal LeftPercent As UInteger 
Percent of left channel in resulting sound. Range is from 0 to 100. 
ByVal RightPercent As UInteger 
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