Advertisement
2002ASP Windows System Services #57

Play .WAV (example 1)

Check if soundcard exist and then play a wave-file. http://137.56.41.168:2080/VisualBasicSource/vb4playwav.txt

AI

Resumo por IA: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Código fonte
original-source
'Add the following code to the Command1_Click event on a form:
Private Sub Command1_Click()
'Add the following code to the Command1_Click event:
  Dim i As Long
  Const SoundFileName$ = "c:\sb16\samples\s_16_44.wav"
  i = waveOutGetNumDevs()
  If i > 0 Then  'There is at least one sound device.
	i& = sndPlaySound(SoundFileName$, Flags&) 
  Else
   Beep
  End If
End Sub
Comentários originais (3)
Recuperado do Wayback Machine