Play a sound while the app still runs
-
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
-
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
-
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
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