Results 1 to 3 of 3

Thread: play a short wav-file

  1. #1

    Thread Starter
    Hyperactive Member WP's Avatar
    Join Date
    Aug 2000
    Location
    Belgium
    Posts
    278

    Cool

    What's the best way to play a short wav-file (eg. for a step)? DX? MultimediaControl?

    WP

    Visual Basic 6.0 EE SP5 / .Net
    Windows XP

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    Oetje
    [email protected]
    93606776
    Visual Basic 6, Windows 2000

    Never pet a burning dog

  3. #3
    Hyperactive Member Wak's Avatar
    Join Date
    Nov 2000
    Location
    Brisbane, Queensland
    Posts
    298

    sndPlaySound

    option explicit
    Private Declare Function sndPlaySound _
    Lib "winmm.dll" Alias "sndPlaySoundA" ( _
    ByVal lpszSoundName As String, _
    ByVal uFlags As Long _
    ) As Long

    Private Sub Form_Load()
    sndPlaySound("C:\WINDOWS\MEDIA\start.wav", &H1)
    End Sub

    This should do the trick.
    Visual Basic 6.0 Enterprise
    Visual C++ 6.0 Professional

    Wak

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width