How to play sound when a form is opened

Hi ,
I do have a problem in playing sound, by getting values from a properties file.
The property file has values
tone1PitchkHz=1.2
tone1DurationSec=0.1
tone1SeparationSec=0.1
tone1VolumePct=80Using these values I want to play a sound when I open a form.I tried few methods but not successful. Can anyone help

Google is your friend.
[http://www.cs.princeton.edu/introcs/15inout/StdAudio.java.html]
[http://www.cs.princeton.edu/introcs/21function/Tone.java.html]
db
edit And what does this have to do with Swing anyway?
Edited by: Darryl.Burke

Similar Messages

  • How to play sound file in Forms 9i  using  PJC.

    Hi ,
    I want to play a sound file in Forms 9i over the web using "Pluggable Java Component". Any pointers / help in this regard will be highly appreciated.
    Thanks in Advance,
    Vinod.

    Vinod,
    just do a search on the Internet for a Java Bean and add this to Forms. However, if you don't necessarily require the sound to be played from within Forms, you could use web.show_document() to call it in a URL displayed in a hidden frame on the Forms HTML page. This way it would be the browser playing the sound (assuming a proper Plugin)
    web.show_document('http://server:port/myDir/mysound.wav','myHidden_frame')
    Frank

  • Help! My phone will not play sound when an app is open?!

    Seemingly out of the blue, my iPhone stopped playing sound through the external speaker. This began about a month or two ago and I have been unable to fix the problem. The sound will play through the external speaker until I open another app (safari, camera, etc.). The sound used to work through headphones until this morning. Now the sound won't work... At all! I brought my phone to an apple store a week ago and the first guy checked my phone with a flashlight and told me first that there didn't seem to be any water damage. Then, some other technician helped me. He opened iTunes and miraculously, the song played! I couldn't believe it was magically working. He explained that it looked like my dock connector was looking a little eroded and that is why the sound doesn't work. He said he could try to brush it out and that should fix the problem. Tried my phone later... Volume doesn't work anymore! The dock connector works fine otherwise, I am still able to charge my phone. My phone will not play music via bluetooth speaker. I talked to multiple people on the phone who all seem to think it's a software problem... I am really not understanding what is going on with my phone! I have googled this problem many times in the last few months and most people say that it turned out to be a software issue. I have checked both water indicators (in the dock connector and the headphone plug, right?) with a flashlight and I don't see any red... Any insight or ways to fix this would be very appreciated! The whole thing makes no sense to me.

    Are you using an APple charger or a thrid-party one?  I ask because if you are using a third party charger, it may not be wired properly and it may be telling your iPhone that the cable connected is also an audio interface so your iPhone may be sending the audio signals through the cable to the charger.  I have a charger in my truck that also doubles as an FM transmitter so I can play my iPhone audio through the truck radio.  Your charger may be doing something similar, especially if it is not an Apple charger.

  • How to play sound in servlet program

    How to play sound when a page is gernerated? Thank you for any suggestion.

    Why would you want to do that? Remember that the servlet runs on the web server, which is probably in a room full of computers. Nobody will be there to hear it, and if somebody does hear it they will just think it is a problem.
    Perhaps you wanted to play a sound when the page is loaded in the browser? That's an HTML/Javascript/browser question that might get an answer in a forum about those topics.

  • Notification center does not play sound when receiving notifications.

    Why my new ipad Notification center does not play sound when receiving notifications.

    Settings>Notifications .... Did you set up the various apps to receive notifications?
    Do have system sounds muted?
    If you lose sounds for keyboard clicks, games or other apps, email notifications and other notifications, system sounds may have been muted.
    System sounds can be muted and controlled two different ways. The screen lock rotation can be controlled in the same manner as well.
    Settings>General>Use Side Switch to: Mute System sounds. If this option is selected, the switch on the side of the iPad above the volume rocker will mute system sounds.
    If you choose Lock Screen Rotation, then the switch locks the screen. If the screen is locked, you will see a lock icon in the upper right corner next to the battery indicator gauge.
    If you have the side switch set to lock screen rotation then the system sound control is in the task bar. Double tap the home button and in the task bar at the bottom, swipe all the way to the right. The speaker icon is all the way to the left. Tap on it and system sounds will return.
    If you have the side switch set to mute system sounds, then the screen lock rotation can be accessed via the task bar in the same manner as described above.
    This support article from Apple explains how the side switch works.
    http://support.apple.com/kb/HT4085

  • How to get sound when my laptop is hooked to my tv w/hdmi cable?

    how to get sound when my laptop is hooked to my tv w/hdmi cable?  it's a hd tv and my mac's os 10.6.8
    tried using an external speaker both w/the computer and then the tv, but neither worked......
    Message was edited by: bevmex

    Hi,
    Open windows Control Panel, open Device Manager and open up Display Devices - make a note of the hardware listed here i.e. ATI, NVidia or Intel.
    Next, connect your notebook via HDMI to your Tv.  Right click the speaker icon in the Taskbar and select Playback Devices.  Left click once ( just to highlight the entry ) the HDMI Output that has the same name as your display adapter and then click the Set Default button - see if you now have audio.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • I am not being able to play sound when I import a .MTS file from my folder

    I am not being able to play sound when I import a .MTS file from my folder on my sequence bar of my Premiere Pro CS6. Even if I use my Media Browser to import the file, the video plays fine, but the audio is disabled it seems. I don't know what to do since I have used .MTS files before without hassle on CS5.5. It is quite frustrating. What can I do?

    Hi debesh05,
    Please mention the Operating System that you are using and also make and model of the Camera that was used to capture those clips. Also, try to make another folder with the same name in the same location where the .MTS files are and move all the clips into the new folder and then try to import the files again using Media Browser in Premiere Pro CS6. If this doesn't work then make a copy of one file and rename it as .M2TS and then import that single file into Premiere Pro CS6. Please update if either of the solution works for you.
    Regards,
    Vinay

  • HT201412 Why my new iPad Notification center does not play sound when receiving notifications.

    Why my new ipAd Notification center does not play sound when receiving notifications.

    1. Double-click the Home button and swipe Task Bar to the right
    2. Check the volume and mute settings
    http://i1224.photobucket.com/albums/ee374/Diavonex/6d3191ba.jpg

  • HT1766 no sound from my speaker, headphones play normal, phone rings normal, alarm sound normal, re-installed software, will not play sound when music is played from speaker but speaker works for everything else....

    No sound from my speaker iphone 4S, headphones play normal, phone rings normal, alarm sound normal, re-installed software, will not play sound when music is played from speaker but speaker works for everything else....(phone ring and alarm)... no notification sound for text messages......
    I checked all settings..... good...
    confused???
    please advise,

    it's a hardware issue read more about it here
    https://discussions.apple.com/thread/1343532?start=315&tstart=0
    more hits
    https://www.google.dk/search?client=opera&q=4:3&sourceid=opera&ie=utf-8&oe=utf-8 &channel=suggest#client=opera&hs=UGk&channel=suggest&sclient=psy-ab&q=iphone+stu ck+in+headphone+mode&oq=iphone+stuc&gs_l=serp.3.3.0l4.412779.418971.0.420896.16. 9.2.5.5.0.86.545.9.9.0...0.0...1c.1.9.psy-ab.HHtp6aEcO5U&pbx=1&bav=on.2,or.r_cp. r_qf.&bvm=bv.45175338,d.bGE&fp=43d9a4347e8aaeda&biw=1535&bih=773

  • What do i do about my Iphone not playing sound when it plays it only vibrates.... HHEELLPPP!!!!!

    what do i do about my Iphone not playing sound when it plays it only vibrates.... HHEELLPPP!!!!!

    You have a dead phone.  Call one of the numbers on
    this page for the country you live in:
    http://support.apple.com/kb/HE57
    or use the Express Lane for iPhone to find out
    what your options are.

  • My iPhone 4s refuses to play sound when the headphones are not in. When the headphones are in however, it works perfectly fine! This is most annoying, could someone please help me :)

    My iPhone 4s refuses to play sound when the headphones are not in. When the headphones are in however, it works perfectly fine! This is most annoying, could someone please help me   I have not dropped it and it has not been in any contact with liquid.

    I just tried both of those things and to no avail. Here are some pictures if that will help

  • How to fix file when it says, "Cannot open file " ". Adobe Indesign does not support the file format, a plug-in that supports the file may be missing, or file may be open in another application." It worked one second, I saved and closed the file, then tri

    How to fix file when it says, "Cannot open file " ". Adobe Indesign does not support the file format, a plug-in that supports the file may be missing, or file may be open in another application." It worked one second, I saved and closed the file, then tried to reopen and now it won't work. I am using Adobe InDesign CS5. It is the only version on my comp. I have tried opening on another comp & copying the file – same error comes up. PLEASE HELP

    First check the version of the document with Jongware's script "Identify.jsx" (ExtendScript/JavaScript).
    You can find it here:
    [Ann] Identify Your InDesign File
    If it is CS 5.5 or above, you need someone to open it in the version the script says and export an IDML representation from that. Another way would be to install a 30days version of CS6 or above (CC) and do it yourself.
    In regards of the script showing a result for InDesign files higher than CS6:
    CS7 = CC v9
    CS8 = CC v10 = CC-2014 or CC2014.1
    Uwe

  • I have a fillable form that we send to contractors - when the form is opened on a computer the contractor can view the fields we have completed, however when viewing from a mobile device or cell phone those fields appear blank. Any suggestions? I am at a

    when the form is opened on a computer the contractor can view the fields we have completed, however when viewing from a mobile device or cell phone those fields appear blank. Any suggestions? I am at a total loss as it works when viewing from the computer. I am assuming it is a setting or maybe we need to save it a special way?

    What version of Reader are they using, exactly? And are you sure they're
    using Reader itself and not opening the file inside a browser window, for
    example?
    On Fri, Feb 6, 2015 at 5:24 PM, jessicao96457206 <[email protected]>

  • Play sound when awaking from sleep?

    Hello! I'd like to make my Mac play a sound (.aif file) each time it awakes from sleep... any way to do this? How about playing a sound when starting up?
    Thanks!
    John Berry
    iMac g5 Mac OS X (10.4.4)

    Hi, John.
    1. SleepWatcher isn't a tool for Terminal newbies, but it's the only utility of its kind of which I am aware. My book focuses on troubleshooting — valuable on its own — but not programming: implementing tasks with utilities like SleepWatcher is clearly in the programming category and involves writing shell scripts or AppleScripts.
    I don't do programming tutorials on the Discussions since they can become very time consuming and if you make errors, then we get into a long thread trying to resolve them, which can be very difficult using a vehicle like the Discussions. I try to focus my limited time here on helping people troubleshoot their Macs. For questions like your post, I try to point them in the right direction or give them steps that can be accomplished without programming. I'm sure you can appreciate that.
    2. You wrote: "Also, I can add my file to the Login Items pane but it doesn't automatically play -- QT starts up, loads the file, but it doesn't play automatically..."I see you sorted that out. I suspect you did so by changing the default application for the sound file in question to QuickTime and have QuickTime preferences set to play movies automatically when opened.
    With QuickTime Pro you can save any sound file as a .sfil file and use PlaySnd to play it via Method B in my prior post.
    3. You wrote: "I've been a Mac user since 1984... it was easy then, your file just went in the Startup Items folder (that doesn't seen to have the same function anymore...)."It still does.
    Whether something is placed in /Library/StartupItems or added to your account's Login Items depends on if it is a System-wide function that should be started for all users before any users log in (e.g. enable the process used by anti-virus solution), or execute when a specific user logs in, respectively.
    The SleepWatcher case is different: you need to know how to program the specific action you want the Mac to perform when sleep is invoked using a shell script.
    There are plenty of resources available to learn the Terminal and Shell Scripting.
    - I recommend some books and other online resources in my "Learning About Mac OS X" FAQ.
    - Once you've made some headway in learning Terminal, one can find a plethora of resources concerning shell scripting with this Google search.
    - There are a variety of Developer-related Apple Discussions for asking coding questions concerning UNIX/Terminal, AppleScript, etc.
    - You could always e-mail SleepWatcher's author (his e-mail address is at the bottom of his Web page) for advice.
    Why not take up the challenge of learning Terminal and a bit about shell scripting? It can be fun as well as a valuable skill. We only grow by challenge!
    One of my mottos is: "Give a man a fish, feed him for today. Teach a man to fish, feed him for a lifetime."
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X
    Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • How to play sound after clicking on an object?

    Can anyone explain me how to play a sound in java when I click on a particular object? I have read lots of threads but couldn't find anything. All I want is a short sound(3,4 seconds) to be played each time I click on an object. I know I need to use Sound API but I cannot find anything helpful
    Thanks in advance

    flounder wrote:
    ProGenius wrote:
    I have read lots of threads but couldn't find anything.
    [I found lots of info|http://lmgtfy.com/?q=java+audioclip]
    that is knowing you can use audioclip. Even searching for "java sound tutorial" gives many good resources, including the sun trail:
    http://java.sun.com/docs/books/tutorial/sound/index.html

Maybe you are looking for

  • Can not copy a URL from the address bar/line

    Why is it proving so difficult for me to copy a URL from the address bar using Safari?  When I click on the link I want to copy, it does not highlight.  I have used Command L and Command C, and that works but there has to be a simpler way.  I also re

  • NoO!!! not my beloved macbook pro.. battery/hot heat issues..

    I have a macbook PRO 17" serial w8622.... I have read about the heat/noise/battery issues wi macbooks.. but I didn't see any complains on the 17" version so i assumed we were lucky or we didn't have those issues.... I got my mine middle of July of 06

  • Exporting Table from Indesign to tagged text.

    Hi, all!<br />I need to export table from InDesign to tagged text by the script.<br />I found ExportAllStories.jsx in samples.<br />It's good example but I have some questions<br />1. In my document more then one table and I need to export only some

  • Reset() of ObjectOutputStream diff in Linux and Windows

    From the previous post and my test, it is better to call ObjectOutputStream oos.reset() to clean up buffer. But I notice that it works all fine in Linux, but if the remote site is a Windows machine, if you call oos.reset(), the remote site will throw

  • Passing single form field to recordset

    I have a form and I want to pass one field from that form as a parameter to a recordset that would be used to create a dynamic table. I don't want to submit the form because I need to create the dynamic table to get information to fill out other fiel