Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Play a sound while the app still runs

Play a sound while the app still runs

Scheduled Pinned Locked Moved C#
tutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    QzRz
    wrote on last edited by
    #1

    Hello I want to play a sound/(audio file) (the format doesn't matter). But I want to play the file and still use the application. For example a button starts the sound/(audio file) and then if I press a new button, the first sound/(Adio file) stops and a new sound/(Audio file) starts. It is almost the same as Windows Media Player, which plays the file and still make the app useable. Can someone show me some articles or tell me how to do this? Thanks QzRz

    R S 2 Replies Last reply
    0
    • Q QzRz

      Hello I want to play a sound/(audio file) (the format doesn't matter). But I want to play the file and still use the application. For example a button starts the sound/(audio file) and then if I press a new button, the first sound/(Adio file) stops and a new sound/(Audio file) starts. It is almost the same as Windows Media Player, which plays the file and still make the app useable. Can someone show me some articles or tell me how to do this? Thanks QzRz

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #2

      Perhaps this[^] article will help? /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

      1 Reply Last reply
      0
      • Q QzRz

        Hello I want to play a sound/(audio file) (the format doesn't matter). But I want to play the file and still use the application. For example a button starts the sound/(audio file) and then if I press a new button, the first sound/(Adio file) stops and a new sound/(Audio file) starts. It is almost the same as Windows Media Player, which plays the file and still make the app useable. Can someone show me some articles or tell me how to do this? Thanks QzRz

        S Offline
        S Offline
        S Senthil Kumar
        wrote on last edited by
        #3

        You simply do the playing on a background thread. You can choose between BeginInvoke[^] and creating and running your own Thread.[^] Regards Senthil _____________________________ My Blog | My Articles | WinMacro

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups