Using Sound Fils in Applications

I have created a sound file in as a .wav format. I now wish to include it in an application to be audible when a button is pressed.
how would i attempt this?

http://java.sun.com/docs/books/tutorial/sound/playing.html
Dave

Similar Messages

  • Urgent Help Regarding Using Sound Files

    Hello,
    Using Java is it possible to
    a) represent a .WAV file in WAVE FORM Format (Graph) output.i.e to represent a
    audio file pictorially.
    b) Spilit a .WAV file into n small pieces or portions.
    Please guide me in this regard.Its Urgent
    Thankz

    Hello,
    Using Java is it possible to
    a) represent a .WAV file in WAVE FORM Format (Graph)
    output.i.e to represent a
    audio file pictorially.Open the AudioInputStream, read the AudioFormat, then read the frames one at a time and plot the data.
    Here's some code that plays a wave file using the AudioInputStream. Java Sound, see reply 2. this shows how to open the file and get the format, it just plays it, but is able to plays it, but it does read frames. This should provide a start for you.
    b) Spilit a .WAV file into n small pieces or portions.Yes, see the classes in package javax.sound.sampled.
    >
    >
    Please guide me in this regard.Its UrgentDon't mark your posts as urgent, don't cross post.
    ThankzYou're welcome, hope this helps

  • Using .ico files in applications

    Does anyone know how I can create a put a .ico file in the top corner of my application?

    The general census seems to be that you need to convert the .ico to a .gif, .jpg or .png and then do the following
    ImageIcon ico = new ImageIcon("path\\filename.png");
    this.setIconImage(ico.getImage());
    Hope this is what you want.

  • Using sounds in flash catalyst?

    Is it possible to use sound files?
    Example:
    When you click on a button, is it possible to play a sound?
    Thanks!
    OnlyNK

    http://forums.adobe.com/thread/445228 :
    Importing sound files and importing them isn't supported in the current build, but it is on our list features for future releases.
    - Ty
    I've asked it to soon!
    The same question has already been answered.
    But I couldn't find it first...
    Long live Google!
    Cheers!
    OnlyNk

  • Urgent Sound files on WEB

    Hi everybody,
    I am having problem in using Sound files over the web with forms 6.
    if someone can help me on this please.
    Thnakx
    null

    I think the form's sound object is not supported on the web.
    But you can use web.show_document routine to go to a url which contains your sound file or an html file that points to it.
    null

  • Using sound in a presentation: Is this the only way?

    I need to use sound files with individual slides in Keynote for the iPad. But I don't see sound files in my "media" list, the way I do with the full Keynote program. And if I import a presentation with imbedded sound, the sound will play in preview/edit mode on the iPad, but not in "play."
    So I developed a goofy workaround (below).
    Is this the only way?
    1. Record sound as part of a Quicktime movie.
    2. Process & save for iPad.
    3. Import the video through iTunes.
    4. Place on a slide & set to play automatically.
    5. Shrink the movie window to the size of a pixel and hide it somewhere on the slide.
    Surely there must be a better way to incorporate audio in Keynote for the iPad??????????

    I searched.
    The only semi-answer I found was essentially what I stumbled across on my own:
    To get sound, you have to import a movie and hide it. Even a video-free Quicktime movie file won't work; it has to be a "real" movie with video content.
    This needs fixing in 1.2.

  • How can i play a sound file in form 10g

    hi every body ,
    would any one help me with my problem
    *I 'd like to play a soend wave file _ say when press a button _*
    In forms 6i
    it was too easy,
    Read_sound_File('c:\aaa.wav', 'wav', 'emp.sound');
    Go_Item('emp.sound ');
    play_sound('emp.sound');
    But it doesn't work in 10g
    and there is n't read_sound_file in help of 10g
    is there any compatability with this instruction in forms 10g
    or how can i use sound file in 10g
    is it with webUtil ( i' ve configured it correctly )
    *or with java beans _ plz help me with it _*
    Thanks _ waiting for u answers _ plzzzzzzzzzzzzzzzz

         I 'd like to play a soend wave file _ say when press a button package sound;
    import oracle.forms.ui.VButton;
    import java.applet.AudioClip;
    import java.applet.Applet;
    import java.net.URL;
    import oracle.forms.properties.ID;
    public class sound extends VButton
    public final static ID PLAY = ID.registerProperty("PLAY");
    public String sou_loc = "FILE:///C:\EAM_original.wav" ;
    public sound()
    public boolean setProperty(ID p0, Object p1)
    if (p0==PLAY)
    { try
    sou_loc = p1.toString();
    URL sou = new URL(sou_loc);
    AudioClip clip = Applet.newAudioClip(sou);
    clip.play();
    } catch (Exception ex)
    {ex.printStackTrace();}
    return super.setProperty(p0, p1);
    }

  • Keynote and sound files

    I was preparing a lecture where I wanted to use sound files that would run over several slides. It appears that this is not possible. It is either one sound file per slide or one sound file for the whole show. Perhaps I'm wrong, but this is a big disappoinment given that the latest versions of Powerpopint do have this feature!
    I am using Keynote 4.0
    Bill

    There are numerous threads discussing this problem within this forum. There are only two "workarounds" that enable you to run an audio track over multiple slides:
    1) Create individual "sub-presentations" for each group of slides you want to use with a single audio Soundtrack and then link them together via Hyperlinks. CAVEAT: If you play KN presentations via Hyperlinks, you lose any Synchronization you may have created when you Recorded the Soundtrack. All Builds and/or Transitions will have to be triggered via a Click or Automatically for each slide as the presentation is playing.
    2) Use Builds to change your graphics, rather than create new slides. If you keep everything within one slide, you then can assign an audio track for the slide that will play through all of the graphics.

  • Raed sound file problem

    Hi when I use Sound File Read Simple function to read a wav file I get the following message and it carshes LabVIEW :
    Exception: Access violation (0xC0000005) at EIP=0x74AD464C 
    I can playback the file without any problem in Media player
    Could you please let help me on this . 
    Thanks

    Hi Tintin_99,
    It is hard to tell what may be causing the error simply from the crash report error. Would it be possible to show us your code which you are using to open and read the sound file?
    Also, how big is this sound file?
    Kind Regards,
    Laurence C.
    Senior Test Development Engineer
    Dyson Ltd

  • How can I use a sound file on one slide, which fades to another sound file on the next?

    I am trying to make a slide show that begins with a certain sound file, which then I hope to fade out to the second slide which uses a different sound file, I've followed Apple's online tutorials, but what happens is I get two sound files playing simultaneously. Also, I'd like to add sounds files to different individual slides throughout the presentation, which I want to play independently from the entire slide show's sound track. I have programmed the slides to change automatically. Is there any way I can have multiple sound files on multiple slides all playing independently, without playing over the top of the previous sound file? I imagine this is a simply task, so my apologies if this is the case. Thanks in advance for any help!
    kind regards,

    Getting sound to work right in Keynote requires a basic understanding that:
    1. Sound played during slide transitions (from one slide to the next) must be placed in the Document Inspector > Audio > Soundtrack Well - there can only be one audio file and it plays across all slides
    2. Additional sounds files can be placed on individual slides as sound objects - each object can have build-in and build-out assignments, but sound files need at least a Build-In > Start Audio (done in the Build Inspector) - each object, wether a shape, image, sound or movie can have discrete start timing such that the start of one sound object can be delayed X seconds after the previous event. This can be used to avoid overlapping starts or playing. If you know the length of each sound file object, you can adjust the start to occur after the end of a previous sound using the Build Inspector. Click on the More Options Button to display the event build-order list and click on the event to reveal how the build starts and add any delays to start there.
    3. Keynote does not have a Fade Feature - any fade-in or fade-out (sound up/sound down) of audio files must be done to the sound file using third party applications and then brought into Keynote. If you'd like to join the crowd wishing Apple might add this feature in the future, you can provide feedback to Apple here:
    http://www.apple.com/feedback/
    4. If you need an audio file to play across a few slides and another audio file to play across another few slides, break the presentation into seperate documents, place the audio in the soundtrack well for each document and then add a hyperlink object to connect to the next Keynote document in the series. Note: all files must be "opened" in the background and ready to play or else the next file will attempt to start but stall just when you don't need it to.
    Hope this helps.

  • Why are system and application sound files appearing in itunes?

    Suddenly, over 900 system and application sound files, each about a second or 2 long, have appeared in my iPhone 4S music player. They've also appeared in my iTunes on my desktop iMac. Not sure whether they appeared on the computer first or on the phone first. I can't figure out why they appeared there or how to get rid of them (without also removing them from the system and applications which, of course, I don't want to do).
    I searched through the discussions here and found several other people complaining about the same thing, going back a couple of years, but no solutions offered. I hope someone can offer a clue.

    Thanks for the suggestions and help. While the cause of this problem is still obscure, we've managed, with an Apple tech's help, to remove the system/application sound files from both the iPhone and iTunes. We used Time Machine to backtrack to the point at which the sound files first appeared in the iTunes folder, then moved back one more day and restored the iTunes Media folder (where all the music was stored) and 2 iTunes files: iTunes Library.itl and iTunes Music Library.xml (we could also have simply restored the entire iTunes folder with the same effect). Then we synced the iPhone.
    As for the cause, that's still a puzzle. From Time Machine, we were able to determine that the files were added between midnight and 12:47 AM on a particular day, but that computer was not in use at that time (the user was asleep in bed, and the only other person in the house at the time was me -- and I don't touch that computer).

  • Plz tell me which sound file format uses minimum memory of a director file

    plz tell me which sound file format uses minimum memory of a director file. bcoz on adding sound the projector file becomes a large memory file .
    so i am confused that which file format should be used.

    saramultimedia,
    Are you certain that you're asking your question in the right place? This forum is about the Adobe Media Encoder application. Most of the people who answer questions here are familiar with the digital video and audio applications such as After Effects and Premiere Pro.
    If you have a question about Director, it's probably best to ask on the Director forum. But I see that you already know that, since you already have a thread on that forum to ask this question, and it got an answer:
    http://forums.adobe.com/thread/769569

  • JMStudio locks up playing sound file - using java 1.5.0_02 - HELP!

    I'm using the jmf 2.1.1e cross platform version on Windows XP SP2. I have java 1.5.0_02 installed.
    When I open the sound file using JMStudio it locks up. It plays videos that don't have sound fine, so it's not the video. It's the sound that is killing it.
    Does anyone have any suggestions?

    Hi,
    yeah it's possible to play sound on Windows but you have to use the Windows Performance Pack instead of the crossplatform-version of JMF.
    This has to do with the JavaSound Architecture of Java 5.0. They made changes and now the JavaSound Renderer didn't work under Windows but the DircetSound Renderer works fine.
    So be sure that your application uses the DirectSound Renderer!
    This is one of the main problems of JMF but now Sun gets interested in JMF and they would build a new version of JMF. If this is true they have to fix this problem!
    Best regards, thomas

  • How to search file in application server using pattern

    Hi all,
    I want to search file in application server.
    Suppose there is file named abc20090808.dat.
    Is there is any function module to search the file?
    it should return back the file names starting with abc, if the import parameter is abc*
    Regards,
    Nikhil

    hello,
                 Have a look
            You can use this function module /SAPDMC/LSM_F4_SERVER_FILE for F4 help for application server file and then you can use the function module TEXT_CONVERT_XLS_TO_SAP to read data into internal table.
      access file from application server
    regards,
    shweta

  • To access pdf files from application server using web.show_document

    Hello!
    If my pdf file is copied in Oracle_home/forms90/java directory.Then using web.show_document i can access the pdf file.But I can't copy all the pdf files in /forms90/java directory.We have lacs of pdf files which I want to keep in my own directory.But my requirement is if my pdf file is in /home2/docs directory in (Linux application server) ie in my own directory where I store all the pdf files.Then web.show_document does not open the pdf file.It says page cannot be displayed.For that I think we have to configure the directory /home2/docs directory as a webserver.From otn I got something like forms90.conf file in application server where we have to set virtual directory mapping etc.If the pdf is in local machine then in orion-web.xml file we have to mention real path and save the file and shutdown oc4j instance and restart it again.I tried it.But it is not working.Can u give me step by step instructions to solve this problem.I found a few links in discussion forum.But is doesn't work out.My pdf file is in /home2/docs directory in Linux application server.Please treat it as urgent.
    Regards
    Jayashree

    Hi Sandeepmsandy,
    There is no available code sample for this scenario. You may write your own.
    Step 1: Get pdf URL from sqlite database. Please refer to the following MSDN blog and see a code sample.
    http://blogs.msdn.com/b/robertgreen/archive/2012/11/13/using-sqlite-in-windows-store-apps.aspx. Note, you need to retarget the project to 8.1 and then get two sqlite packages from NuGet before building this sample.
    Step 2: Use some special classes to get file from serer.
    HttpWebRequest can help download small pdf files. For more information to see
    https://social.msdn.microsoft.com/Forums/windowsapps/en-US/de96a61c-e089-4595-8349-612be5d23ee6/download-file-with-httpwebrequest?forum=winappswithcsharp. It’s easy for use, but if you want to download the larger or many files, it’s recommend to use
    BackgroundTransfer namespace. The classes in this namespace provide a power way to transfer files in the background. See a code sample from MSND.
    https://code.msdn.microsoft.com/windowsapps/Background-Transfer-Sample-d7833f61.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate
    the survey.

Maybe you are looking for

  • Why does my Macbook Pro keep freezing with the spinning beach ball?

    Hi, This issue started yesterday. Every minute or so or less, my Mac will freeze up and I cant do anything, and then the beach ball will pop up for 5-60 seconds before going away, my machine unfreezes, and it happens again pretty quickly. EtreCheck v

  • UCCX - Abandoned calls

    I realised an anomaly which occurred in the system whereby we still have abandoned calls even when the phone is not ringing. Most of them are coming from general line e.g 1234. Could it be because it takes too long for the call from general line 1234

  • Acrobat X Pro - Getting Started Screen

    Now I am currently running the trial version of Acrobat X, but, I did not see a way to turn off the Getting Started Screen. Its nice seeing my previous documents, but if I want to Create a PDF, it opens up my explorer, not a new PDF or a drop down, l

  • Using the pen tool, how best should I build or construct this image?

    Hello, I'm trying to recreate a certain image with the pen tool. I have already tried using Live Trace using the "Simple Trace" setting. Live Trace did a pretty good job but not with enough accuracy or fidelity to the original image as I would like.

  • Exchange Server 2013 and Office 365 Integration

    If we are using Exchange Server 2013 on premise, can we have 2 of our users integrated with Office 365 so that they can utilize their Exchange Server email account with the apps and features of Office 365?