Results 1 to 2 of 2

Thread: Adding Audio

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2010
    Posts
    39

    Adding Audio

    What is the code to add an audio track to play?

    I need the file to play after a letter has been pressed so will be in the keypress function

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Adding Audio

    You could use something like this:

    Code:
    My.Computer.Audio.Play("c:\soundfile.wav",AudioPlayMode.Background)
    Note that .NET only directly supports playing 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