Results 1 to 7 of 7

Thread: VB Snippet - Play wav file

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    VB Snippet - Play wav file

    VB Code:
    1. Private Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" _
    2. (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
    3.  
    4. Sub PlayWave()
    5.  
    6.     fileName = "C:\Windows\Media\MicrosoftSound.Wav"
    7.  
    8.     sndPlaySound fileName,0
    9.  
    10. End Sub
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  2. #2
    Fanatic Member evexa's Avatar
    Join Date
    Apr 2003
    Location
    USA
    Posts
    609
    It didnt work!
    Trust no one

    ----------------------------------------
    http://www.eccentrix.com/members/xeaudrey/exanegotium.html
    http://www.eccentrix.com/members/xeaudrey/

  3. #3
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    What didn't work? What was the problem?


    Has someone helped you? Then you can Rate their helpful post.

  4. #4
    Fanatic Member evexa's Avatar
    Join Date
    Apr 2003
    Location
    USA
    Posts
    609
    Originally posted by manavo11
    What didn't work? What was the problem?
    The wav file didnt play - no errors - just didnt play!
    Trust no one

    ----------------------------------------
    http://www.eccentrix.com/members/xeaudrey/exanegotium.html
    http://www.eccentrix.com/members/xeaudrey/

  5. #5
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    Did you maybe hear a beep? It makes a beep sound if the file that you specified is incorrect... Could that be the case?


    Has someone helped you? Then you can Rate their helpful post.

  6. #6
    Fanatic Member evexa's Avatar
    Join Date
    Apr 2003
    Location
    USA
    Posts
    609
    No beep
    Ill listen again but im pretty sure there was now beep
    Trust no one

    ----------------------------------------
    http://www.eccentrix.com/members/xeaudrey/exanegotium.html
    http://www.eccentrix.com/members/xeaudrey/

  7. #7
    Fanatic Member seec77's Avatar
    Join Date
    Jan 2003
    Posts
    596
    are you sure the file was there?
    i mean, it's probably not there on all systems
    and maybe the speakers were on mute!
    Best Regards,
    seec77

    If you helped me, cosinder yourself thanked.

    Get each and every Garfield strip here!
    Here you can get all Calvin & Hobes strips!
    Damn UComics! It was probably unprofitable for them to allow us to just download Garfield and Calving & Hobes strips... so they made folder indexing unallowed on their server!!!

    I am 33% addicted to Counterstrike. What about you?
    I am 23% addicted to Star Wars. What about you?
    I am 0% addicted to Tupac. What about you?

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