Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Play .AU file problem

Posted on 1999-07-21
3
Medium Priority
?
582 Views
Last Modified: 2006-11-17
Hi Gurus,

I have a problem when playing a particular au file. The problem looks like this: I have a wav file to be used in my applet, and so I used a software tool(GoldWave) to convert it into .au format. However, after this, when I play it in mouseDown(...) event handler, the sound clip sounds off just occassionally, that is, sometimes it sounds off, sometimes it does not. While most of other files I played using same method does not have this problem. Do you know what might cause this happen?

The way I play all my .au files is quite common, that is:

AudioClip mysound;
mysound = getAudioClip(getCodeBase(),"mysound.au");
mysound.play();

I can't find any problem with my coding, and then I suspect this particular file(which is only 327 bites after converted to .au)is so a compatible .au format with JDK1.1, could this be the cause? If so, do you know any program which can convert normal wav file to .au file that can be played within java applet, no matter the size of the file?

Thanks for any input,
0
Comment
Question by:lll888
[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
  • 2
3 Comments
 

Expert Comment

by:Yoia
ID: 1246711
According to the Java Tutorial (java.sun.com): JDK 1.1.x supports only one sound format: 8 bit, µlaw, 8000 Hz, one-channel, Sun ".au" files

When you converted your .wav file to .au, make sure you follow these specifications.
0
 

Author Comment

by:lll888
ID: 1246712
Thanks, I finally fixed this.
How can I credit points to you?(I am a bit new here)

0
 

Accepted Solution

by:
Yoia earned 600 total points
ID: 1246713
I'll just lock this question by giving an 'answer' and you can award the points then by accepting the answer.
Thanks! :)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Suggested Courses

715 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