Karaoke Mixer ActiveX Control

SetBgAudioWaveWndColor 

 

Set the color of the Background Audio's WaveForm (left channel or right channel)

Public Function SetBgAudioWaveWndColor(
     ByVal iChannel As Integer ,_
     ByVal clrWave As COLOR
    )

 

Parameter
iChannel
 0 - Left Channel.
 1 - Right Channel.

No Return Value

Example

   

Visual Basic Syntax
KaraokeMixer1.ShowBgAudioWaveForm=True
KaraokeMixer1.SetBgAudioWaveWndCaption "My Background Audio WaveForm Window"
KaraokeMixer1.SetBgAudioWaveWndOwner me.hWnd
KaraokeMixer1.SetBgAudioWaveWndPopUp false
KaraokeMixer1.SetBgAudioWaveWndStyle 1
KaraokeMixer1.SetBgAudioWaveWndPos 418, 0, 400,300
KaraokeMixer1.SetBgAudioWaveWndOffset 0, 10
KaraokeMixer1.SetBgAudioWaveWndDivisor 5
KaraokeMixer1.SetBgAudioWaveWndColor 0, RGB(255,0,0)
KaraokeMixer1.SetBgAudioWaveWndColor 1, RGB(0,255,0)

KaraokeMixer1.MixerLoadBgAudio "c:\music.mp3"
KaraokeMixer1.MixerEnable true
KaraokeMixer1.ShowWaveForm = True
KaraokeMixer1.SetWaveWndCaption "My Waveform Window"
KaraokeMixer1.SetWaveWndOwner Me.hWnd
KaraokeMixer1.SetWaveWndPopUp False
KaraokeMixer1.SetWaveWndStyle 1
KaraokeMixer1.SetWaveWndPos 0, 0, 400, 300
KaraokeMixer1.OutputType =2
KaraokeMixer1.AudioDevice=0
KaraokeMixer1.AudioInputPin = 0
KaraokeMixer1.AudioFileName = "c:\test.mp3"
KaraokeMixer1.Start