Solved

play audio file in application

Posted on 1998-11-03
1
186 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
1 Comment
 
LVL 8

Accepted Solution

by:
diakov earned 10 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
even odd program using while loop 3 74
Tomcat: Unable to run tomcat service. 2 30
ejb on wildfly 5 48
American Express @Work site and Java 4 69
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

730 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