libZPlay documentation (Win32)
IndexReferenceHome
PreviousUpNext
ZPlay.GetWaveOutInfo Method

Retrieves the capabilities of a specified waveform-audio output device.

Visual Basic
Public Function GetWaveOutInfo(ByVal Index As UInteger, ByRef Info As TWaveOutInfo) As Boolean
Parameters 
Description 
ByVal Index As UInteger 
Index of wave out device. Call EnumerateWaveOut to get number of wave out devices. 
ByRef Info As TWaveOutInfo 
Reference to TWaveOutInfo. User must allocate memory for this structure. 
Return Values 
Description 
True 
All OK. 
False 
Error. To get error message read here
Dim WaveOutInfo As TWaveOutInfo = New TWaveOutInfo
Dim WaveOutNum = player.EnumerateWaveOut()
Dim i As Integer
For i = 0 To WaveOutNum - 1 Step 1
  If player.GetWaveOutInfo(i, WaveOutInfo) Then
    MsgBox(WaveOutInfo.ProductName)
  End If
Next
Copyright (c) 2010. Zoran Cindori - All rights reserved.

Web: http://libzplay.sourceforge.net/

Email: zcindori@inet.hr