Results 1 to 5 of 5

Thread: playing sound

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2012
    Posts
    142

    playing sound

    how can i play a .wma file. it resembles a gunshot so it has to be played once.

  2. #2
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,762

    Re: playing sound

    Audio.Play Method sounds like what you may need. Look into the wait to complete playmode.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

  3. #3
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,481

    Re: playing sound

    the easiest way is using mciSendString API:

    http://www.scproject.biz/Playing%20MultiMedia%20Files.htm#bm2

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,350

    Re: playing sound

    Quote Originally Posted by dday9 View Post
    Audio.Play Method sounds like what you may need. Look into the wait to complete playmode.
    That's only for WAV format sounds.

  5. #5
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,481

    Re: playing sound

    Quote Originally Posted by jmcilhinney View Post
    That's only for WAV format sounds.
    more specifically only PCM (Pulse Code Modulation) wav files

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