wood burning stoves 2.0*
The moose likes Applets and the fly likes Runing Applet that deal withe sound file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Runing Applet that deal withe sound file " Watch "Runing Applet that deal withe sound file " New topic

Runing Applet that deal withe sound file

mahmoud bakar

Joined: Nov 28, 2000
Posts: 5
i wrote an applet "audio player"that load a sound file ,and its run
on the internet Explorer,but i cant know how can i use it
to play any sound file,and load it.
Sean MacLean
Ranch Hand

Joined: Nov 07, 2000
Posts: 621
How are you loading the first AudiClip and what sound format are you using? If I recall, to applet loads an audio file (Sun au format with a sample rate of 8000) using a URL and an optional file name. Would someting like this do the trick?

This assumes that you have an "audio" directory in the root where your applet resides and that your applet is aware of all the files that are there.
Hope this helps
I agree. Here's the link: http://aspose.com/file-tools
subject: Runing Applet that deal withe sound file
Similar Threads
How to load audio clips using java?
Java sound-err->Windows Media Player cannot pla
playing sound from jar
applets..audio sound
java sound/windows media player