Go Back   Wiki NewForum > Career Forum (Documents/Tutorials/Advice) > Tech Forum & Tutorial > Java Forum & Tutorial

Java Forum & Tutorial JavaScript and Client-Side Browser Scripting

Reply
Views: 502 Source: CNN18.com, India-Forums, TellyChakkar, India, Times of India, Youtube, BollywoodLife, Rediff  
Thread Tools Rate Thread Display Modes
  #1  
Old 08-09-2010, 11:55 AM
bholas bholas is offline
Award Winner
 
Join Date:
Apr 2010
Posts: 5,181
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

Ads
Reply With Quote
Reply

Tags
website tips

New topics in Java Forum & Tutorial

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Forum Jump


Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
asp web stats