Application sound

how do you put sound and music on an application (not applet). where should i store the music files also.

you can use the audioclip class to play music, its the simplest way i think.
just have the music in the same folder as all your code and it should work....
something like this:
java.io.File file = new java.io.File("song.mid");
AudioClip sound = Applet.newAudioClip(file.toURL());
sound.play();
that uses a midi file but you can use it for other music types aswell.
have fun!

Similar Messages

  • 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).

  • Recording application sound

    I want to make a captivate recording of a multimedia
    application.
    It works fine to record the movie-elements in the
    application, but i also want to record the application sound.
    As a work around, I now put my microphone in fron of a
    loudspeaker. The result is not to bad, but it would be much better
    If I could record the application sound electronically into
    Captivate. Is this possible? How?

    Hi Paul,
    Unfortunately this isn't really any thing else that you can
    using Captivate to capture the audio. I've used the old sticking
    the microphone in front of the speaker from some projects in past.
    If volume of the recorded audio is a problem then you could
    probably improve on this using an audio editing application such as
    Adobe
    Soundbooth (Beta 2) or
    Adobe Audition.
    Failing that, could you always contact the developers and can them
    if they could provide you with the application sounds.
    Regards,
    Mark

  • Q10 Software 10.2.1.537, Application Sound and Speakerphone Problem

    Hi
    Several days after I updated my BB Q10 with 10.2.1.537 Software Release, I experienced two problems:
    a.  when I make or receive phone call, the Speakerphone mode is always turned ON automatically.  I cannot turn it OFF.  So I cannot make phone conversation in private.
    b.  the applications' sound becomes very small.  
         Ex: sounds from receiving email, BBM, SMS messages.  Reminder sound from calendar
         Exception: only Alarm application sound is still normal
    After I reboot the phone, the applications' sound becomes normal.  But as soon as I make or receive phone call, the applications' sound becomes very small again.
    I have performed Reload Device Software with Blackberry Link, install the latest 10.2.1.537 Software Release, and restore the backup file.  Same problems still persist.
    Please advice how to fix these problems.
    Thanks

    My Q10 has a similar problem that seems to happen only when driving over 40 Kph. sound cuts in and out, whether i am on speaker phone, earphone or blue tooth. I've gotten a replacement Q10 and its doing the same. Any solutions?

  • Applications sound doesn't work

    The applications sound is muted even though it's turned on and the ringer's sound works normally, what could be the problem?

    Do all other apps have sound, or just the Music and Videos apps, and do those apps have sound if you use headphones ? If they do then have you got notifications muted - that would mute notifications (including most app), so the Music and Videos apps, and headphones, still get sound.
    Depending on what you've got Settings > General > Use Side Switch To set to (mute or rotation lock), then you can mute notifications by the switch on the right hand side of the iPad above the volume switch, or via the taskbar : double-click the home button; slide from the left; and it's the icon far left; press home again to exit the taskbar. The function that isn't on the side switch is set via the taskbar instead : http://support.apple.com/kb/HT4085
    If that isn't the case then have you tried deleting one of them and then re-downloading it via the Purchased tab in the App Store app to see if it then works ?

  • Application sound off

    Hi all,
    Is it possible to mute the iphone so that also applications like safari do not make any sounds? Most apps offer a mute option but I want to also mute the apps that do not offer such an option
    Thanks!

    Set the ring/silent switch to silent:

  • Applications sound is damged on my ipad!! Any help?

    There is no sound or voice when i open any of my applications on my ipad or even the typing sound, when i start typing on the keyboard it used to make a sound but not anymore now! Although all my sounds volume are on the max! What can i do? Format my ipad or is there any other solution!

    Have you got notification mute on (which will mute most apps) ? Depending on what you've got Settings > General > Uee Side Switch To, notifications can be muted either by the switch on the right-hand side, or via the taskbar (double-click the home button to bring up the taskbar, slide the bar to the right, and it's the icon far left). More info about the switch here http://support.apple.com/kb/HT4085

  • Applet / Application Sound problem

    Hey everyone,
    I'm programming a game named None Left, and the main file (NoneLeft.java) contains a constructor :
    public class NoneLeft extends javax.swing.JApplet implements Runnable, ContextListenerIt also contains a main method:
        public static void main(String s[]) {
            JFrame f = new JFrame("NoneLeft");
            f.addWindowListener(new WindowAdapter() {
                public void windowClosing(WindowEvent e) {System.exit(0);}
            JApplet applet = new NoneLeft();
            f.getContentPane().add("Center", applet);
            applet.init()        f.pack();
            f.setSize(new Dimension(800,600));
            f.setVisible(true);
    AudioClip music;
    music = applet.getAudioClip(new URL("file:///K:/BinaryFinary2.wav"));
    music.loop();The problem is that whenever I try to use the applet's method getAudioClip,
    i get the following error:
    Exception in thread "main" java.lang.NullPointerException
            at java.applet.Applet.getAppletContext(Applet.java:187)
            at java.applet.Applet.getAudioClip(Applet.java:295)
            at noneleft.NoneLeft.main(NoneLeft.java:865)The code at line 865 is:
    music = applet.getAudioClip(new URL("file:///K:/BinaryFinary2.wav"));
    music.loop();The NullPointerException is really what has me puzzled. The applet is there: It's created in the public static void main method, but it just won't work. Anyone have a clue about why that is?
    I have a feeling it's because of the Applet inheritance and the application; it's not sure which one is which...or maybe not.
    Thanks so much!
    Edited by: simpavid on May 27, 2008 4:11 PM

    Thank you so much for your help so far;
    However, I still haven't gotten this to work.
    I now have the code:
    JFrame f = new JFrame("NoneLeft");
    JApplet applet = new NoneLeft();
    f.getContentPane().add("Center", applet);
    applet.init();
    f.pack();
    f.setSize(new Dimension(800,600));
    f.setVisible(true);
    AudioClip music = applet.getAudioClip(applet.getCodeBase(), "BinaryFinary.wav");
    music.loop();but my error still exists:
    Exception in thread "main" java.lang.NullPointerException
            at java.applet.Applet.getCodeBase(Applet.java:152)
            at noneleft.NoneLeft.main(NoneLeft.java:861)The strange part is that getAudioClip no longer gives me a null pointer but getCodeBase() does. I also tried getDocumentBase() and it gives me an error. I'm wondering if this has to do with the fact that this is called on an applet from a main method? The applet is instantiated as a NoneLeft object, which extends JApplet, so that shouldn't be the problem. Do you have a clue on how to fix that?
    Again, thanks so much for the help.

  • Assigning an application to different sound outputs

    Question: Is there a way to assign an application to use a sound output options in the mixer or another Win7 application?
    I have installed Win7 RC 32bit.  I have headphones and speaker outputs on my system.  Both are detected and both can be assigned to a working default sound choice.  I am unable to assign an applications sound output to a certain outputs or change them.
    The only way I can make a sound application work through the speakers if the headset is assigned the default role is to go into sound management, then assign the speakers to default and then restart my application.
    Desired: I would like an application profile to default to the assigned role from the mixer.  The settings could be permanent or temporary.  If the 1st choice is not available, use the alternate working or (default).  The sound should dynamically change or at the very least keep that profile with that application until changed.
    In the mixer, I should be able to rt click on the application in the mixer and manually assign it to a sound device.  This option should be assigned to a default target to play ONLY if the desired is not available.  Possible options can be, just one time, or have this device handle sound if available.
    Hardware:  Asus Rampage 2: Gene motherboard, 6GB Ram, GTX 275 graphics, Seagate 1.5TB.  Drivers auto discovered on install and appear to be functional.

    Hi TKCDAC,
    As you may noticed, great improvements have been made in Windows 7. Applications can realize Stream Routing via the new Core Audio APIs. Windows 7 has the ability to distinguish between communication devices and all other audio devices. It is now possible to have both a Default Communications Device that is separate from the Default Audio Device. The Default Communication Devices will be used for PC based communication like web chat or VOIP, and the Default Audio Device will be used for everything else. Stream switching enabled dynamic stream switching based on the default device. If the default audio device is disabled or unplugged, Windows automatically tries to determine the next default audio device and will dynamically redirect the audio to that new device.
    For instance, if you would like to play the audio via headphone when using communication applications such as Windows Live Messenger, we can simply right click the volume icon in the system tray, click Playback Devices, right click the headphone listed and then choose Set as default Communications Device.
    For more information, please refer to the following articles:
    http://msdn.microsoft.com/en-us/library/dd756612(VS.85).aspx
    http://louisgale.blogspot.com/2009/08/live-messenger-and-default.html
    Also, based on my test, certain application such as Windows Media Player has a sound output option. To change the settings, please open Windows Media Player, click Tools, Options, click Devices tab, double click Speakers in the Devices list, pull down the Select the audio device and then choose the device you would like to play the music from Windows Media Player, click OK. We may play another song in the play list to take effect.
    In the meantime, I will forward your suggestions to our Product Group. Please be assured that any improvements in the product are based on users' requirements.
    Thanks,
    Linda

  • [SOLVED] Playing sound simultaniously from wine and other applications

    I'm using Pulseaudio with the following packages installed:
    ~> pacman -Q | grep 'alsa\|pulse'
    alsa-lib 1.0.27.2-1
    alsa-plugins 1.0.27-2
    alsa-utils 1.0.27.2-1
    lib32-alsa-lib 1.0.27.2-1
    lib32-libpulse 5.0-1
    libpulse 5.0-1
    pulseaudio 5.0-1
    pulseaudio-alsa 2-2
    When running a wine application sound works, unless a linux application is playing sound. If that is the case, no sound is playing from the wine app until sound from the linux application stops (for example by pausing smplayer).
    Is there any way to make sound work simultaneously from wine and native applications?
    Other information that may be relevant:
    Architecture - x86_64
    Desktop - KDE
    Wine application - BabasChess
    Last edited by CarbonFixer (2014-04-16 16:14:10)

    V1del wrote:Install lib32-alsa-plugins and set wine to use the default resp (System Standard) card in winecfg pulsemixers should show an [alsa-plugin] wine stream
    Thanks
    Was missing that package.

  • No alert sounds for applications running on Rosetta

    I've lost sound for applications running on Rosetta, i.e. Entourage. I even tried it with Safari in Rosetta, and there's no sound there either. All Intel native applications sound off fine.
    I'm running OS 10.4.10. Hope someone can help.

    Sure, To mute iCal on your iPod Touch do the following.
    Settings > Sounds > 'slide off' Calendar alerts.
    To keep alerts but for only specific events in in calendar on your iPod Touch do the following.
    Edit an event > Tap 'Alert' > Select None
    There is no way of getting the alert but muting the sound unless you wan to mute the sound on all alert which if you do i recommend the following, hope this helps.
    !http://www.carelabels.co.uk/images/ebay/logos/Smile11.jpg!

  • Problem with drivers/ sound stopping / vista32bit/ xfi fatal

    i have an xfi fatality, installed the latest drivers and since then, sound will stop at random times usually happens when i am pausing something on media player (videos) and it might come back when i reopen the video
    sometimes i will watch a video on firefox, and i might not get any sounds at all (sounds completely stop, not only per application)
    sound will come back, on its own, at random times. some times i need to restart
    i uninstalled the audio console, uninstalled the driver from system, and installed the previous version and i am still getting this problem (i wasnt getting it before)
    any solution
    thanks a lot.

    Is there anybody with any idea what the problem might be?

  • Sound coming from internal speakers, not plugged in external ones

    I've got a set of speakers plugged into the audio jack in the back of the computer. System sounds (beeps and such) come out of the external speakers like they should. But, application sounds (RealPlayer) insist on coming from the internal speaker of the computer, no matter what I choose in the System Preferences for Sound Output. This happened when I first bought the machine, and then it miraculously got fixed (no idea how). Now it's doing it again. Any idea how to force applications to output sound to external speakers?
    Mike

    Go System/Pre then sound
    from there, go to Output-Line-Out,
    see if its on mute aswell,
    it was not on mute. I ended up plugging the speakers into the microphone jack on the front (instead of the line out in the back) and now it works.
    Mike

  • Track an application back to a package to remove [SOLVED]

    I have several application installed that I'd like to remove.  I have no idea which package brought them to my system.  Is there a way I can search within a package for a keyword?  For example:
    Gnome Applications>Sound & Video>
    -Dragonplayer
    -JuK
    -Kscd
    Last edited by graysky (2009-05-23 15:54:30)

    I have a reverse-and-opposite question: I have uninstalled a couple pkgs and now an app I need went missing. How do I find out which package is it in?
    The app in question was xdpyinfo from xorg-utils IIRC. Is there an easy way to query some Arch / pacman-related db or do I have to google it? Use 'locate' on my local ABS db?
    It's even harder when I have never had it installed - I know the app's name, but not the package's. I know what I need, but not how to get it :-)

  • 10.4.7 sound output source is broken

    If I go to System Preferences -> Sound -> Sound Effects -> "Play alerts and sound effects through", the pulldown menu is grayed out.
    Sometimes applications sounds completely disappear and do not play through the speakers. This happens to Mail and the Finder. I didn't have any problems like this before updating to 10.4.7.
    Is anyone else experiencing this?

    I just verified with 10.4.6, and 10.3.9 which I have backups of that you can only have one output source at a time. So that menu in Apple menu -> System Preferences -> Audio -> Sound Effects will always be grayed out, and auto update itself when you plug in something or remove something from the sound output port of the Mac. There is another bug that causes some programs to not give audio out in machines like yours and mine. Applications -> Utilities -> Audio Midi setup defaults itself to 96 Hz on machines with SPDIF out after certain updates including 10.4.7. Setting it for 44.1 Hz on Audio Output will fix the audio out problem on many a program and restarting. Sometimes you need to also zap the PRAM:
    http://docs.info.apple.com/article.html?artnum=2238

Maybe you are looking for

  • How do i delete a download from my itunes account?

    I purchased a 23 episode tv show off itunes and I allowed 17 of the 23 episodes to download before halting the download when i realised how much space it was taking up. I was able to "swipe left to right and hit delete" to remove the remaining 6 epis

  • Create tablespace in Oracle 11g

    Windows 2008 R2 (64-bit OS) Oracle 11g R2 Standard Edition ONE(64-bit database) I use the following Oracle command to create tablespace in 11g. CREATE TABLESPACE TEST_TBS DATAFILE 'C:\ORACLE\ORADATA\TEST_TBS01.DBF' SIZE 5M AUTOEXTEND ON NEXT 5M MAXSI

  • In one country but not another?

    Hi I'm new to all of this, But i was desperately wanting to perchase an EP from one of my favourite artists, Marcus Foster, which was released today, However it is available on the UK iTunes, but not the Australian, where I am. Is any one able to hel

  • Help: RenderAtClient vs different Acrobat Reader versions

    Hi, I'm used to LC 7.2, Designer 7.0 and Reader 7.x and they all work fine initially. After Reader 8.x on some client PCs were introduced, the following conflict is encountered: If I turn on RenderAtClient=true/auto and viewed by Reader 8.1, the layo

  • How to test Airport Card?

    How can I make sure that my Airport Card is working properly?