Karaoke Mixer ActiveX Control

MixerSetVolume

 

Adjust the volume of background audio or Microphone when mixing.

Public Function MixerSetVolume(
     ByVal iInputPinIndex As Integer, _
     ByVal iVolume As Double
    ) as Bool

 

Parameter
iInputPinIndex
 0 - adjust the volume of background music.
 1 - adjust the volume of selected audio pin. It may Microphone or PC Speaker. It is depend the value of audioinputpin property.

iVolunme
 0 = Silence
 1 = Full Volume


 Return Value
true - successful, otherwise return false.

Example

   

Visual Basic Syntax
KaraokeMixer1 .MixerLoadBgAudio "c:\music.mp3"
KaraokeMixer1 .MixerEnable true
KaraokeMixer1 .OutputType =2
KaraokeMixer1 .AudioDevice=0
KaraokeMixer1 .AudioInputPin = 0
KaraokeMixer1 .AudioFileName = "c:\test.mp3"
KaraokeMixer1 .Start
KaraokeMixer1 .MixerSetVolume 0, 0.5   ' set the volume of music.mp3 file