application.playSound method

I have imported a .wav file on media library using the Import file button on Media window that I open using Place Image function on Element menu in developper mode, but when I run method containing :

application.playSound(‘media:///applause.wav’)

nothing happens.

What can I do ?

Is there a general parameter to allow sound ?

I use the Version R2 2.2.4-build 336

Tested here… it works with no problems:

Servoy Developer
Version R2 2.2.4-build 336
Java version 1.5.0_04-b05 (Windows XP)

application.beep(); beeps?
media file name is case sensitive!

I the past I had some problems also. It seems not all kind of wav-files can be played by Servoy (java) (I had some wav file that would play fine in the Media-player but refused to play in Servoy.

Maybe it has something to do with the bitrate, or recorded frequentie.

Thank you to HJK,

he is right; It seems that not all kind of wav-files can be played by Servoy (java) and for example applause.wav does not run.

Dominique Quintart.

Good to know!

btw… I tested with the applause.wav included in StarOffice 7 suite and worked fine!!!