Question about Computers & Internet

1 Answer

How can I play a .wav file,.au file in a JDK 1.1.x applet?

Dear Sir,
I have some doubt, please help me in this regard. How can I play a .wav file,.au file in a JDK 1.1.x applet? I need some source code.

waiting for your reply
Abhi

Posted by on

1 Answer

  • Level 3:

    An expert who has achieved level 3 by getting 1000 points

    All-Star:

    An expert that got 10 achievements.

    MVP:

    An expert that got 5 achievements.

    Genius:

    An expert who has answered 1,000 questions.

  • Master
  • 2,785 Answers

Plz try with vlc media player

Posted on Jan 12, 2009

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

4 Answers

Im trying to convert a QCP file to an MP3 file. I have a conversion program but it seems to be damaging the file, not full play time of the song/file and bad quality. how can I make this work?


Rename the file to .WAV (change the .QCP extension to .WAV) then you can either play the WAV file itself OR convert the WAV file (for free) with CDex.

Mar 02, 2011 | Computers & Internet

1 Answer

Windows Media Player can't play the file.


Check that the file being played has one of these file extensions. If not, then the file isn't played by windows media player.
Extensions: asf, .asx, .avi, .wav, .wma, .wax, .wm, .wmv, .wvx, .ra, .ram, .rm, .rmm, .mpg, .mpeg,
.m1v, .mp2, .mpa, .mpe, .aif, .aifc, .aiff, .au, .snd, .ivf, .mov.

Nov 30, 2010 | Computers & Internet

4 Answers

Java is not working


Hello there :
first you are going to want to ensure that your your current version of java is installed correctly and is not corrupted and if it needs to be reinstalled
download the latest java version and reinstall this . www.java.com
this should be able to take care of the problem that you are having ok?
best regards michael

Aug 23, 2009 | ArcMedia JavaScript Source Code 3000 Pro...

1 Answer

Fatal error during installation


First u must make sure to close and exit all the applications that are using the resource of JDK.
Method 1: disable the auto load of JDK on machine start up from System Configuration Utility. Then reboot and try to uninstall again from the Add or Remove Programs.
Method 2: reinstall JDK and immediately uninstall it after the installation done. Or maybe u will found the uninstall function during the JDK setup.
Method 3: can try to use the cleaner software like CCleaner to uninstall the JDK application.

YBC (/\)

Jul 30, 2009 | ArcMedia JavaScript Source Code 3000 Pro...

1 Answer

How to use window.h in c++


Hi,
use windows.h header file and play the .wav file using PlaySound function as  e.g: PlaySound("C:\\SOUNDS\\BELLS.WAV", NULL, SND_ASYNC);

Thanks!

Apr 01, 2009 | Microsoft Computers & Internet

1 Answer

How to play audio clip in java


  • Create an AudioClip object
  • Load .au sound file into AudioClip
  • Play sounds once or loop continuously
  • Stop playback


Here's how the code for these steps looks:
import java.applet.*;
AudioClip ac = getAudioClip(getCodeBase(), soundFile);
ac.play(); //play once
ac.stop(); //stop playing
ac.loop(); //play continuously


It would seem logical to use this same code to play audio clips in a Java application. Unfortunately, if you do that you will get errors from the compiler. Why? Because the AudioClip object and the getAudioClip() method are part of the java.applet package -- and are not part of applications. The good news is we can dive down and make things work ourselves.
The trick to solving this problem is to use some undocumented features that are provided by Sun in its JDK. Taking a peek inside the classes.zip file from the Sun JDK (using any of the various zipfile utilities), we find not only the standard Java packages such as java.applet but also sun.audio. (These are in the directory sun/audio.)
The sun.audio package contains everything we need to be able to play audio clips! Here's the code:
import sun.audio.*; //import the sun.audio package
import java.io.*;
//** add this into your application code as appropriate
// Open an input stream to the audio file.
InputStream in = new FileInputStream(Filename);
// Create an AudioStream object from the input stream.
AudioStream as = new AudioStream(in);
// Use the static class member "player" from class AudioPlayer to play
// clip.
AudioPlayer.player.start(as);
// Similarly, to stop the audio.
AudioPlayer.player.stop(as);


To use a URL as the audio stream source, substitute the following for the input stream and audio stream setup:
AudioStream as = new AudioStream (url.openStream());


Playing the audio stream continuously adds a bit more complexity:
// Create audio stream as discussed previously.
// Create AudioData source.
AudioData data = as.getData();
// Create ContinuousAudioDataStream.
ContinuousAudioDataStream cas = new ContinuousAudioDataStream (data);
// Play audio.
AudioPlayer.player.play (cas);
// Similarly, to stop the audio.
AudioPlayer.player.stop (cas);

Jan 22, 2009 | Computers & Internet

1 Answer

Unable to View Java Applet


"load: class JFI.class not found."
Based on the console output, it means that it cannot find the java applet class. In other words, the applet is missing on the server side. There is nothing that you can do about it, unless you know the person who created the applet. Good luck :)

Dec 23, 2008 | ArcMedia JavaScript Source Code 3000 Pro...

2 Answers

Mp3 to wav tones?


well fist confirm if u phone support .wav format..download mp3 to wav convertor from the internet..but i suggest u to play mp3 files..because in (.wav) format sound quality is not so good

Nov 27, 2008 | Nokia 6600

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

67 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

kakima

Level 3 Expert

100405 Answers

David Payne
David Payne

Level 3 Expert

14160 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...