Karaoke Mixer ActiveX Control

PBSetWaveWndOffset

 

Set the offset of left or right channel of Playback WaveForm.

Public Function PBSetWaveWndOffset(
     ByVal iChannel As Integer, _
     ByVal iOffsetValue As Integer
    )

 

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

iOffsetValue
 0 - Middle position. if the iOffsetValue  > 0, the direction is down, If the iOffsetVale < 0 , the direction is up.


No Return Value

Example

   

Visual Basic Syntax
KaraokeMixer1 .ShowPlaybackWaveForm =true
KaraokeMixer1 .PBSetWaveWndCaption "My WaveForm Window"
KaraokeMixer1 .PBSetWaveWndOwner me.hWnd
KaraokeMixer1 .PBSetWaveWndPopup false
KaraokeMixer1 .PBSetWaveWndStyle 1
KaraokeMixer1 .PBSetWaveWndPos 418, 0, 400,300
KaraokeMixer1 .PBSetWaveWndColor 0, RGB(255,0,0)
KaraokeMixer1 .PBSetWaveWndColor 1, RGB(0,255,0)
KaraokeMixer1 .PBSetWaveWndOffSet 0 ,-50
KaraokeMixer1 .PBSetWaveWndDivisor 12
KaraokeMixer1 .PBLoadAudioFile "c:\music.mp3"
KaraokeMixer1 .PBPlay