Go Back   Wiki NewForum | Latest Entertainment News > Career Forum & Tips > Tech Forum & Tutorial > Java Forum & Tutorial

Why doesn't this Java applet play my sound file?

Views: 3642  
Thread Tools Rate Thread
Old 08-09-2010, 11:55 AM
bholas bholas is offline
Award Winner
Join Date: Apr 2010
Posts: 4,977
Default Why doesn't this Java applet play my sound file?

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 EditorDigital 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

Reply With Quote

website tips

New topics in Java Forum & Tutorial

Thread Tools
Rate This Thread
Rate This Thread:

Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2024, vBulletin Solutions, Inc.