News:

This week IPhone 15 Pro winner is karn
You can be too a winner! Become the top poster of the week and win valuable prizes.  More details are You are not allowed to view links. Register or Login 

Main Menu

Why doesn't this Java applet play my sound file

Started by charleychacko, October 13, 2006, 01:55:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

charleychacko

So that cool sound file you found doesn't work with your Java applet? It may have to do with the particular format of the sound file you're trying to use.

By default, Java applets are able to play audio (.au) files, a digital audio file format developed by Sun Microsystems. In order to be compatible with Java enabled browsers, audio files used with Java applets should be sampled at 8000 Hz, 8-bit, mono, u-law.

Wondering what to do if you have a sound file in another format such as wave (.wav) or even an .au file sampled at a different rate that you want to use with your Java applet? You could convert your file into the particular .au format supported by Java applets.

GoldWave Digital Audio Editor
Digital audio editor for Microsoft Windows featuring real-time amplitude, spectrum, spectrogram oscilloscopes, intelligent large file editing, numerous effects, and support for a wide variety of sound formats including .wav, .voc, .mp3, .au, and binary/text data.
Listing #1 : Digital audio editors able to create Java compatible .au files