Play Audio File in application

Hello all.
Can anybody tell me how can I play some Audio File from my application?
I think that it's impossible. (I can play Audio File only if i will use java.applet.AudioClip).
I know that some classes in sun.*.*... can play Audio File.
And I want to know why developers cann't make them easy of access.
Thank you,
Dmitry

There are 2 ways you can play audio in an application. The of audio tools packaged with applets can be adapted to work in an application. Unfortunately, I do not know how to do this. I have had more success with sun.audio.*, but have been unable to find any documentation on it, which makes it very limiting.

Similar Messages

  • Application that plays audio file at double rate

    I need to transcribe audio files and need an application that will play audio files at double their rate (and half their rate) so that I can quickly go through audio files and then concentrate on the pertinent portions.  Any suggestions of applications for Mac OS X?  Free is always good!

    Dear Matt,
         Thank you for your suggestion.  I checked it out.  As I am transcribing portions of the files, I would like to just change the playback speed, not the actual file.  It seems like, in Audacity, you actually transform the file.  I noticed to do this you use "change tempo" to avoid pitch changes.  However, by modifying the file, the file becomes longer or shorter and then I cannot reference a particular part of the file by a time (minute:second).
         Any ideas of programs that could do this?  Or does Audacity do this?

  • Playing Audio Files in the Finder-any tips?

    Something I've been meaning to ask for ages... and hopefully an easy one to answer!
    When playing audio files in the Finder (in 10.5.8), it's really annoying when the file stops playing when you click on another window or application (or even just the Desktop). Is there any way around this?
    Someone recommended Snapper, but it's the same story - file stops playing when you click on any other area. Is this problem confined to Leopard (ie. has it been fixed in Snow Leopard?) - never used to be like this in Tiger.
    Some of us like to multi-task when listening to audio. The only solution I can see is importing the file into itunes. Any other suggestions?

    I assume you're talking about QuickLook?
    That's not the Finder, that's QuickLook.
    QuickLook is a function that can only work with the foremost selected item, and that makes sense, as you can, for example, QL a PDF within Mail.app, as well.
    Why not just use column view (doesn't everybody?) and play it in the Preview pane at the right?
    It will keep playing until you close the window or select another object within it.
    I use QuickLook when I want to give an audio file a quick once-over - skip here and there, but for actually playing it through, I use the column view preview.
    Message was edited by: spheric

  • Playing audio file while Downloading

    Hello all,
    Can anyone give me an idea on how can I play audio file while downloading.
    Thanks

    Connect the external drive and then launch Disk Utility found in Applications/Utilities. Your external drive while show up in Disk Utility's side bar. It should be Mac OS Extended or OS Extended (Journaled).
    If it isn't:
    Then select it and click the 'Erase tab' at the top.
    Select Mac OS Extended-Journaled formatting from the Volume Format menu.
    Then click the oval Erase button at the lower right. Just remember-this will erase the drive!
    http://danslagle.com/mac/iMovie/usage/5006.shtml
    Sue

  • Play Audio Files in Pro7

    I loaded QT Pro 7 in Win2K and I can't play audio files. The progress pointer slides across but no audio and no indication on the little bar graphic thingy.
    Is it the file association? The sound card seems to be set up properly.
    Thanks,
    Bill

    Safe Mode,Wave out only should release so it could be a indication of the problem.
    If you go to C:\Documents and Settings\All users\Application Data\Apple Computer\Quicktime, Quicktime qtp is the file for QT preferences. If you delete Quicktime qtp a new one will be created when you run QT again.
    It will also be removing your Pro Key registration, so you'll want to have that before deleting qtp so you'll be able to re-enter it to get your Pro features back.
    Give it a try, if it don't solve the audio, I can suggest a few more things to try within the XP OS that relate to audio.

  • Play audio file in Java

    This is very cute example.
    I want to do this: In JTextPane I have some audio files (.au) and what I want to do is that vhen I duble clicked to the file that this file will be opened in some program (like CoolEdit). And this program (with file, which is played) I want to insert to my application. If someone know how to do this, pleasse tell.
    I know that with applet player can play audio file, but this is not good enough for me:)
    Thanks a lot.

    You can use some static methods in the Applet class to play AudioClips, but these only play short sound files. Try reading this thread to play long sound files:
    http://forum.java.sun.com/thread.jspa?forumID=513&threadID=450768

  • TS1717 I can play audio files in iTunes but I can't play downloaded tv shows or movies.  Everytime I attempt to play them, iTunes stops working and closes.

    I can play audio files in iTunes but I can't play downloaded tv shows or movies.  Everytime I try to play them, iTunes stops working and closes.  Any information will help.

    Is QuickTime installed? If not it might help to install it.
    If so is Direct3D Video Acceleration enabled? If so it might help to disable.
    tt2

  • The audo files do not play from websites instead ask for download. This has occured from the time I have updated Firefox 4 to Firefox 5. Why? And how can i play audio files?

    The audo files do not play from websites instead ask for download. This has occured from the time I have updated Firefox 4 to Firefox 5. Why? And how can i play audio files from websites?

    You have a <b>general.useragent.override</b> pref that identifies you as Firefox/3.5.7
    *Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)
    See:
    *https://support.mozilla.com/kb/Websites+or+add-ons+incorrectly+report+incompatible+browser
    *http://kb.mozillazine.org/Resetting_your_useragent_string_to_its_compiled-in_default

  • Can anybody explain me how to sample and play audio files with logic's EXS2

    can anybody explain me how to sample and play audio files with logic's EXS24 Sampler???
    i cant find a way to upload and manage my own audio content on this sampler...

    i uderstand , thanx...
    i managed to open an audio file and placed it in the sampler,i can play t sample in the little keyboard in the zones section, howver i dont know how to play it with my controller... the sample shows in C1 on logic's keyboard but if i play C1 on my controller nothing happens... how can i fix this?
    Also, i noticed the sample plays from beginning to end once i click on it, how do i do to just make it last until i release the key? like a logic sound??? (in case i want to play a small portion of the sample only)
    Thanx

  • Play audio files in Bridge CS6

    Hi,
    I used to be able to play audio files created with my Mk4 right in the preview window in CS4 which was easy for renaming files after their description was recorded when taking the shot.
    Does anyone know how I can do this in CS 6 - there are no play/pause controls under the preview like there was in CS4.
    Thanks Heaps for any help.

    Hi ,
    yes , MK4 and .wav files
    I have Mac 10.7.5 & Bridge CS6
    I have selected "Play audio files automaticly when selected" in the preferences but it doesnt do it.
    In previous versions of bridge you could get a play and pause buttons below the .wav icon view in the preview
    but this doesnt happen.
    It is really inconveinent as it defeats the purpose of having the .wav file and the I have to go back to Bridge CS4 to play the files.
    Thanks

  • I am having trouble with my speakers not working while online in particular on windows.My audio works when playing audio files

    I am having trouble with my speakers not working while online particular on facebook. My audio works when playing audio files.

    Hi,
    Did it happen all the time or sometime?
    Please check online browser status:
    Click Volume icon in the taskbar, click Mixer link button as below:
    If it's fine, follow this guide to run troubleshooter to detect and fix the issue:
    Tips for fixing common sound problems
    http://windows.microsoft.com/en-in/windows/tips-fixing-common-sound-problems#tips-fixing-common-sound-problems=windows-7
    Meanwhile, this similar thread also could be referred:
    https://social.technet.microsoft.com/forums/ie/en-US/a4a1cfe5-93a5-4c0b-9bf6-f7db0304f2ba/no-sound-on-youtube-or-any-other-webpage
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • IOS 6.0.1 Safari won't play audio files. Error: "Cannot play audio file."

    I recently updated my iPad to iOS 6.0.1, now Safari won't play audio files in any format. Error: "Cannot play audio file." Previously, it worked fine. I tried downloading and using GoogleChrome and Opera Mini, and these also won't play audio. What's up??

    Solved the problem. It seems that once iOS 6.0.1 installed, it caused all of my browsers to mishandle audio files. When I reset the iPad, that cleared up the problem.
    Before upgrading to iOS 6, my browsers would "autoplay" the sound files. After iOS 6, "autoplay" is disabled so you have to manually click play to play them.
    Nonetheless, everything is working fine again except for "autoplay," which I can live with.

  • I write a program to play audio file, it use sun.audio.*, but it can play

    i write a program to play audio file, it use sun.audio.*, but it can play ,can you tell me what error is it ?
    import sun.audio.*;
    import java.net.*;
    import java.io.*;
    import java.io.FileInputStream;
    public static void alertAudio(String fileName)
    try{
    InputStream in = new FileInputStream(fileName);
    AudioStream audio = new AudioStream(in);
    AudioPlayer.player.start(audio);
    catch(Exception e)
    System.out.println(e);
    public static void main (String argv[])
    String fileName = "test.au";
    alertAudio(fileName);
    System.out.println("close");

    help help me

  • Acrobat X, Acrobat XI, Reader: no one is playing Audio Files in a PDF

    Hello everybody,
    thank you for supporting.
    I tried the following with Acrobat X, XI and Reader but I didn't find any solution...
    You can see the problem on the pictures... One time I get the sound, but the as I reopened the file, the error was displaing again...
    When I click on every "sound" icon on the file (there are about 50 icons) I get the following message:
    If I click on "Richiama lettore multimediale" I get this pages with nothing... (WOW ADOBE!):
    Here an audio file properties:
    I've formatted my PC one time some month ago, and reinstalled Acrobat and Reader many times... nothing changes..
    Can you help me?
    Thank you!

    You are trying to play something we call "legacy media" which relies on an external program being installed that can read the media files (in this case, MP4). Adobe have stopped development of legacy media in Acrobat as it can be used to deploy malicious code; and as you have found out it is very unreliable.
    You need to ensure you have another application on your computer which can play those sound files, and that it's registered as the default application for that extension. Acrobat and Reader will then try and load it.

  • How to play audio in an application?? (HELP ME PLEASE!!)

    Hi! I'm studying computer science and I'm programming in Java for my last project of this period. I've been trying to play sound in an application but I haven't been able to. My teacher gave me a piece of code that looked like this:
    try{
    URL url=new URL("http://hostname/audio.au");
    AudioClip ac=Applet.new AudioClip(url);
    ac.play();
    }catch (MalformedURLException e){
    This is the code for my program:
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import java.applet.AudioClip;
    import java.applet.AudioClip.*;
    public class Sonido extends Frame implements AudioClip{
         public Sonido(){
              this.setSize(new Dimension(300,200));
              this.setTitle("Testing");
              this.setLayout(new BorderLayout());
              this.add(new Button("Music"), BorderLayout.CENTER);
              addWindowListener(new WindowAdapter(){
                   public void windowClosing(WindowEvent e){
                        System.exit(0);
         public static void main(String [] args){
              Sonido sound=new Sonido();
              sound.show();
              try{
                   URL url=new URL("C://toolate02.au");
                   AudioClip ac=new AudioClip(url);
                   ac.play();
              catch(MalformedURLException e){
    It is only a test but I have to get it to work because the teacher wants the sound to play forever! (with loop() I guess). Anyway, I don't know how to implement the methods of the AudioClip interface. Any help would be great!!! Thank you very much.
    Vanessa.

    This is probably too late to help you, but if you're using Java 1.3 or higher, you can use the javax.sound.sampled package to play .au's, .aiff's, and .wav's (but not .mp3's... support for those comes from Java Media Framework [JMF] or QuickTime for Java [QTJ])
    Anyways, this app plays a single file specified on the command line, like:
    java SimpleSound mailbag.aiff
    import javax.sound.sampled.*;
    import java.io.*;
    public class SimpleSound extends Object {
        public static void main (String[] args) {
            if (args.length < 1) {
                System.out.println ("Usage: SimpleSound <file-path>");
                return;
            try {
                Line.Info linfo = new Line.Info (Clip.class);
                Line line = AudioSystem.getLine (linfo);
                Clip clip = (Clip) line;
                File file = new File (args[0]);
                AudioInputStream ais = AudioSystem.getAudioInputStream(file);
                clip.open (ais);
                clip.start();
            } catch (Exception e) {
                e.printStackTrace();
    }Works for me on Mac OS X. .aiff's sound good but .au's sound awful. Your mileage may vary.
    More info on the JavaSound page -- http://java.sun.com/products/java-media/sound/index.html
    --Chris (invalidname)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • Where can I find the Paint Icon that is used to create pictures and is on normal computers, but is not on my PowerBook?

    Okay, so let's just start off by saying that I ABSOLUTELY HATE POWERBOOKS AND APPLE IN GENERAL, but sadly that is what I have.  It's difficult to manage and is not at all easy and being as I'm young, I hate messing with it.  There are so many things

  • IPod Nano 6G Case

    Hi, I just received my replacement iPod Nano.  I had a generation one and now Apple replaced it with a generation six.  I want to use this for when I go to the gym. I purchased the arm band for my G1, but the G6 is a lot smaller. I'm looking for two

  • Add Header fields in Confirmation trx SRM 5.0

    Hi guys, In the standard version of SRM 5.0 the only fields provided in header of the confirmation are: Conf.Number Conf.Name Delivery Performance date PurchOrd.Number Reference Document number. We need more fields for information in the case of a Se

  • Missing

    Hello, I am doing a java mapping from a flat file to an IDOC. After the document is mapped succesfully I call an RFC via the Adapter. When monitoring the adapter I get the error: com.sap.aii.af.rfc.RfcAdapterException: failed to read funtionname from

  • Exporting animated symbol to image sequence

    Hi guys! I'm unable to export an animated symbol to image sequence properly because the symbol does not animate. I created the tweens in multiple layers, then cut-pasted all layers to a new symbol. I did this so I could then just do some tween motion