473,414 Members | 1,594 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

wave files using java.applet.Applet

How do you play wave files using java.applet.Applet?
Jul 17 '05 #1
2 5145
"webstar" <tr********@hotmail.com> wrote in message news:<w4*****************@news-server.bigpond.net.au>...
How do you play wave files using java.applet.Applet?


AudioClip clip = getAudioClip(getCodeBase(), "sound.wav");
clip.play();

However, this only works if the browser is using the Java 2
plugin; it won't work with Java 1.0 or Java 1.1, which only
play ".au" sound files.
Jul 17 '05 #2
thanks for the help
"Stephen Gilbert" <sg******@occ.cccd.edu> wrote in message
news:56**************************@posting.google.c om...
"webstar" <tr********@hotmail.com> wrote in message

news:<w4*****************@news-server.bigpond.net.au>...
How do you play wave files using java.applet.Applet?


AudioClip clip = getAudioClip(getCodeBase(), "sound.wav");
clip.play();

However, this only works if the browser is using the Java 2
plugin; it won't work with Java 1.0 or Java 1.1, which only
play ".au" sound files.

Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: ochulus | last post by:
Hi! I'm new to Java and I would like to know how to manage files (e.g. rm, mv, mkdir, etc.) using Java for a simple text-based application on Unix. It's just an extension of a tutorial question at...
0
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ...
1
by: srikanthr | last post by:
Is there any way to read standalone mdb files using java. i.e NOT connecting to the database via jdbc. i've searched this forum but found very old posts. Any pointers will be helpful.
2
by: asenthil | last post by:
i'm trying to read and write files using java... some errors occurs when i'm trying this code.. Error in java: Cannot find symbol location: class java.io.FileOutputStream FileOutputStream...
2
by: asenthil | last post by:
Hai, i'm a beginner to java... just now i had tried to read and write files using java... and then i had tried to connect a database using jdbc... now i want to export the data's from a...
3
by: rajasekar.karthik | last post by:
Hi Guys I need a php script which will merge two wave files as i have already done a script which will will join the two wave files and play one after the other, can anyone advice me...
0
by: ic3s | last post by:
I need help in completing my program that sends files using java. What I wanted, instead of putting the text in a string then send, I want to save it to file in my local drive and the program would...
0
by: sriharim | last post by:
Hi ALL How to read and write windowsini format .ini files using Java. I would like to parse complex elements. ini file fromat would be like SESSION = { name="session1", service="7000", ...
2
by: subaganesan | last post by:
hello i am in need to upload multiple files. help me.......
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.