Sound Files
Hey guys, I need some help. Right now, I'm using the '.Play()' command for a '.SoundLocation' file. However, this only allows me to play .WAV files. What if I want to use .WAV files, .WMA files, .MP3 files, .M4A files, etc? What code do I use for this?
Well I find the easiest way is just to go and make an invisible media player bar.
Right click the toolbox and click "Choose Items"
Then go to the "COM components" Tab and scroll to the very bottom.
There should be 'Windows Media Player' tick the box and press OK.
Draw one on your form, rename it and set it's visibility to false.
Some snippets for media player.
Choosing file
[php]Player.URL = "c:/" ' set this to your file directory, or textbox value...or whatever. 'Player' was what I renamed my Media Player bar. [/php]
Using the pause/stop/play buttons
[php] player.CtlControls.XXXXX 'Use intellisense to see the options that can occupy the 'XXXXX' section.[/php]
Those are the main ones.
J-Deezy.