Does Microsoft VM play sounds?

Hi, I was running my applet that contain music and it ran fine in Sun's VM 1.4. But when I tried the applet in Microsofts VM, there was no sound, but the applet ran fine. Does anybody know if sounds could be played (like .mid, .wav) on Microsoft VMs? If they do, did I do something wrong? By the way, I compiled my applet with -target 1.1.

[347 byte] By [pandaloria] at [2007-9-29 8:37:05]
# 1
just because you used -target 1.1 doesn't mean you didn't use the wrong library. Show us your code. Did you use an Applet/AudioClip or did you use something in javax.media (or javax.sound.. whatever it is)
Woogleya at 2007-7-14 22:18:58 > top of Java-index,Other Topics,Java Game Development...
# 2
I know that Old MS Java (the one that you use when developing with J++) only recognizes Mu-Law 8-bit mono encoding sounds(.au files), which is really crappy. Java 2 though support of lot of other format.
evanzsa at 2007-7-14 22:18:58 > top of Java-index,Other Topics,Java Game Development...
# 3
I used AudioClip:AudioClip music;music = getAudioClip(getCodeBase(), "music.mid");Does Microsoft's VM only play .au files? It is possible to convert from .wav and .mid to .au?
pandaloria at 2007-7-14 22:18:58 > top of Java-index,Other Topics,Java Game Development...
# 4
I had a sound converter that I downloaded from the net when I needed it, but I don't recall what it was. In any case, yes it is highly possible to convert sound files format, like it is with text files and other types of files. You just need the converter to do so. Look on the Internet
evanzsa at 2007-7-14 22:18:58 > top of Java-index,Other Topics,Java Game Development...
# 5
Don't forget I am talking about the JAVA that is found within J++. Other JAVA may permit other type of files. JAVA2 permit a lot of format but I don't know which ones exactly.
evanzsa at 2007-7-14 22:18:58 > top of Java-index,Other Topics,Java Game Development...
# 6

This program will convert just about any audio format.

http://www.fmjsoft.com/awframe.html

The last time I tried it the demo was fully functional but it would only allow one save per session, so if you want to covert more that one audio file you have to exit and load the program back up, not a big deal. I doubt it will covert .midi to .au.

You can (if you have to) playback a midi file and use a sound recorder to capture its audio.

As evanzs said Mu-Law 8-bit mono is poo and not really suitable for music, its clarity is comparable to a **** down a telephone line.

KarateMarca at 2007-7-14 22:18:58 > top of Java-index,Other Topics,Java Game Development...
# 7
I'm going to try out that audio conversion program. But it seems like the trial version only allows the conversion of one instrument in the file only...
pandaloria at 2007-7-14 22:18:58 > top of Java-index,Other Topics,Java Game Development...
# 8
Whoa, I just tried using the conversion tool and a 20kB .mid file turned into a 3Mb .au file... this is not a good idea...
pandaloria at 2007-7-14 22:18:58 > top of Java-index,Other Topics,Java Game Development...
# 9

Well yeah....

.au is a Waveform based format. (similar to .wav)

It is ideal of complex sounds. (i.e. Sound FX)

.mid is synthesised sound.

Ideal for sound with repetition. (i.e. Music)

Use the right format for the right job, and stop limiting yourself to JRE1.1!!!!!!

Abusea at 2007-7-14 22:18:58 > top of Java-index,Other Topics,Java Game Development...