You can play audio files quite easily with the Multimedia control with a couple of lines of code:
Code: Select all
mmcontrol.mediaName := "c:\mysong.mp3";
mmcontrol.play;
See "MultiMedia Class" in the EncycloWin.pdf document, available here:
http://www.jadeworld.com/jade/doc.htm
However, behind the scenes, the Multimedia control is using older Windows functionality that can struggle to play MP3s recorded at more than 128kbps. If you want to play higher-bit-rate MP3s, it's better to use a third-party control.
Attached is a JADE 6.2.17 schema (AudioPlayerSchema) that imports the Windows Media Player control and uses it on a JADE form. It works ok in JADE 6.3 as well.
If you load the schema and run the AudioPlayerSchema app (there is only one app in the schema), you can use the File menu items to play/stop an MP3 (or any other audio file) and the View menu items to control the look of the player. Have a look at the form's load method and the code in the menu item click events to see how it works.
Dean.