Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

play audio file in application

Posted on 1998-11-03
1
Medium Priority
?
190 Views
Last Modified: 2010-03-30
I have written an application in Java. I want to call an audio file when an exception occurs. How do I do that?? My program uses core API only.  I tried AudioClip of java.Applet package, it works only in an applet but not in an Application. What is way to call Audio file in application??
I use 1.2jdkrc1 on Windows 95.
thanks in advance
0
Comment
Question by:hvhemant
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 8

Accepted Solution

by:
diakov earned 20 total points
ID: 1226892
Jdk 1.2 also JavaSound interface.

This release includes the following new method in the class java.applet.Applet. This method does not require an AppletContext, and thus enables applications as well as applets to create AudioClips.

public static final AudioClip newAudioClip(URL url)

For more information go to:
http://www.javasoft.com/products/jdk/1.2/docs/

Cheers,
  Nik
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question