SetVideoVolume (DVR version only)
Top  Previous  Next

Description

Sets the audio volume level of the AVI file currently open for a playback.

Syntax


[VB]
objActiveGige.SetVideoVolume Value


[C/C++]
HRESULT SetVideoVolume(short Value);


Data Types
[VB]

Value: Integer


Parameters
[C/C++]

Value [in]  
The volume to be set, in percent.  


Return Values

S_OK  
Success  
E_FAIL  
Failure.  

Example


This VB example uses a scroll bar to adjust the video volume.

Private Sub Form_Load()  
HScroll1.Min=0  
HScroll1.Max=100  
ActiveGige1.OpenVideo "C:\\video1.avi", True  
HScroll.Value=ActiveGige1.GetVideoVolume  
ActiveGige1.PlayVideo  
End Sub  
 
Private Sub HScroll1_Scroll()  
ActiveGige1.SetVideoVolume HScroll1.Value  
End Sub  
 

Remarks


In order for this method to work, the AVI file must be recorded with the sound and opened with the sound option enabled.