Sound in Application

I'm just trying to play a song in a regular application, not in an applet. I mean just run the program in a command line window and play the tune. I have searched for a way to do this already and all I find is applet sounds.
I have tried using play(getCodeBase(), "mySong.mid");
Any clues????

http://onesearch.sun.com/search/developers/index.jsp?qt=%22java+sound%22&col=javadoc&col=javatecharticles&col=javatutorials&col=devarchive&col=devall

Similar Messages

  • Anyone familiar with Freeverse's Sound Studio application used with iTunes?

    I have been using Freeverse Software's Sound Studio application for the last year, which allows me to record workshops I lead, in AAC format, and I've always been able to drag the files into iTunes and play or burn them. Since upgrading to Leopard (and upgrading their software to the newest Leopard-compatible version), when I try to drag a file into iTunes, it won't copy into the library. Freeverse says it isn't a problem with the software.
    Anyone know why I might not be able to put an AAC file, recorded onto my MacBook Pro, into iTunes....and a workaround?
    Thanks

    Check to be sure that the file suffix is correct ie: .m4a, .mp3 etc.
    Can you 'add' to iTunes using the File menu?
    MJ

  • Recording sound between applications.

    On my old G4 Mac running Tiger I used a free programme called Soundflower to record audio from any program into a recording app like Audacity or Garageband. Now I am using OS X Yosemite and Soundflower is not compatible. Is there a viable alternative? I looked on the App store and on-line, where there are alternatives, but after downloading them as trials they don't really work.
    Soundflower was perfect as a conduit to let me record sounds coming from the computer and I miss not having that ability for the work that I need to do.
    Many thanks.

    Your subject mentions switching between sound playback applications, but the details in your message only mention a problem occurring when you open/close the laptop screen. Tell us more about the sound application switching you mentioned.
    Did you perform a recovery because of this symptom, or did the symptom appear after you performed the recovery?  And are the videos that you're watching on DVD media or are you streaming them in a web browser.
    Jim

  • I can't uninstall my Sound Blaster applications!

    I just tried to reinstall my Sound Blaster Audigy software using the original CDs and for some reason, it wreaked havoc on my Windows XP SP3 System. All of my audio files were automatically changed to open with Play Center and my Windows Sound Scheme disappeared. The other strange thing is that even though I used my original installation CDs, it installed strange new Sound Blaster applications that I never had before: Sound Blaster Audigy Web 2K/XP and Sound Blaster Li've! To make matters worse I can't uninstall any of the Sound Blaster Audigy software because it's telling me:
    Setup is unable to find installation languages in C:\Program Files\Creative\Uninstall\SETUP.LID file. ERROR 05?I'm also getting a registry error saying:
    Missing File: C:\Program Files\Creative\SBLi've2K\PlayCenter2\Ctplay2.Exe?< p class="MsoNormal">C:\Program Files\Creative\SBLi've2K\PlayCenter2\Ctplay2.Exe cannot access a necessary file, rprgctrl.dll
    <p class="MsoNormal">?
    <p class="MsoNormal">Where can I get this missing dll file and how can I get these Sound Blaster applications to uninstall? Is there a Creative Uninstall Clean Tool?

    If you are in Windows (which you haven't said), you can try using this tool to remove all traces of previous versions of Reader:
    http://labs.adobe.com/downloads/acrobatcleaner.html
    Then, download the full offline Reader installer from 
    http://get.adobe.com/reader/enterprise/
    and run it immediately after restarting your computer.

  • 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!

  • Help with playing sound in applications

    im new to java and i was practicing playing sound in a swing application but the problem is that when i press the play button no sound is played...here is my code
    import javax.swing.*;
    import java.applet.AudioClip;
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.io.File;
    public class JukeBox extends JFrame {
        private JLabel label;
        private JPanel panel, buttonPanel;
        private JComboBox playList;
        private JButton play, stop;
        private URL url1, url2, url3, url4, url5, url6;
        private AudioClip[] musicList;
        private AudioClip current ;
        public JukeBox() {
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            setSize(500, 120);
            setLocation(50, 50);
            setTitle("JAVA JukeBox");
            url1 = url2 = url3 = url4 = url5 = url6 = null;
            current = null;
            try {
                url1 = new URL("file", "localhost", "C:\\Documents and Settings\\KADA\\IdeaProjects\\Sound\\bottle-open.wav");
                url2 = new URL("file", "localhost", "C:\\Documents and Settings\\KADA\\IdeaProjects\\Sound\\BP2.mp3");
                url3 = new URL("file", "localhost", "C:\\Documents and Settings\\KADA\\IdeaProjects\\Sound\\fhm.aiff");
                url4 = new URL("file", "localhost", "C:\\Documents and Settings\\KADA\\IdeaProjects\\Sound\\jungle.rmf");
                url5 = new URL("file", "localhost", "C:\\Documents and Settings\\KADA\\IdeaProjects\\Sound\\spacemusic.au");
                url6 = new URL("file", "localhost", "C:\\Documents and Settings\\KADA\\IdeaProjects\\Sound\\trippygaia.mid");
            } catch (MalformedURLException e) {
                e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
            musicList = new AudioClip[7];
            musicList[0] = null;
            musicList[1] = JApplet.newAudioClip(url1);
            musicList[2] = JApplet.newAudioClip(url2);
            musicList[3] = JApplet.newAudioClip(url3);
            musicList[4] = JApplet.newAudioClip(url4);
            musicList[5] = JApplet.newAudioClip(url5);
            musicList[6] = JApplet.newAudioClip(url6);
            label = new JLabel("JAVA JukeBox", JLabel.CENTER);
            String[] musicList = {"select a track..."
                    , "bottle open"
                    , "bitch please II"
                    , "flutte, harmonica, mambo"
                    , "jungle"
                    , "spacemusic"
                    , "trippygaia"};
            playList = new JComboBox(musicList);
            playList.addActionListener(new ListListener());
            play = new JButton("Play");
            play.setActionCommand("play");
            play.addActionListener(new ButtonListener());
            stop = new JButton("Stop");
            stop.addActionListener(new ButtonListener());
            buttonPanel = new JPanel();
            buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.X_AXIS));
            buttonPanel.add(play);
            buttonPanel.add(stop);
            panel = new JPanel();
            panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
            panel.add(label);
            panel.add(Box.createRigidArea(new Dimension(0, 5)));
            panel.add(playList);
            panel.add(Box.createRigidArea(new Dimension(0, 5)));
            panel.add(buttonPanel);
            getContentPane().add(panel);
        private class ButtonListener implements ActionListener {
            public void actionPerformed(ActionEvent e) {
                if(current != null){
                    current.stop();
                if(e.getActionCommand().equalsIgnoreCase("play")){
                    if(current != null){
                        current.play();
        private class ListListener implements ActionListener {
            public void actionPerformed(ActionEvent e) {
                if (current != null) {
                    current.stop();
                current = musicList[playList.getSelectedIndex()];
        public static void main(String[] args) {
            setDefaultLookAndFeelDecorated(true);
            JukeBox jb = new JukeBox();
            jb.setVisible(true);
            jb.setResizable(false);
    }can u please tell me whats wrong with my code coz i cant hear no sound when i press the play button and can u please tell me why i cant simply put the file name in the URL instead of the complete path although the files are in the same directory of the source code and can i play mp3 using this little program ???
    plz help...im a newbie so plz explain as much as u can...

    After
    musicList = new AudioClip[7];
            musicList[0] = null;
            musicList[1] = JApplet.newAudioClip(url1);
            musicList[2] = JApplet.newAudioClip(url2);
            musicList[3] = JApplet.newAudioClip(url3);
            musicList[4] = JApplet.newAudioClip(url4);
            musicList[5] = JApplet.newAudioClip(url5);
            musicList[6] = JApplet.newAudioClip(url6);initialise the variable current with
    current = musicList[1];or similar because the AudioClip current always == null in your code so your listener blocks don`t execute.
    regards

  • Itunes 11.2 and 11.2.1 has no sound in Application

    Iv had Some problems with Itunes for a while now. All in the store with being unable to update Acount info. But Recently Iv been unable to Hear anything in itunes. The System Sound Checks out. The audio files are there. Movies and tvshows dont have sound but video works. If i take the Movie into quicktime it runs fine. the same with The Music. I can Use The ausio files in other applications like Final Cut and listen to them in quick time. This has only come up recently and only after I airdroped a movie from my Imac 27". (Which works Fine) Any Sollutions anyone
    PS: also have updated and Force quit my computer. Want to refrian from reinstalling because i will lose all of my music. Some of which is not off if the Itunes store>

    iOS: Device not recognized in iTunes for Windows

  • Can't get Sound to application from attached audio mixer

    I have an Onyx 1220 mixer connected to the mac pro via firewire.
    The mac sees it and allows me to select it in System Preferences.
    In prefs, I can talk into a mic attached to the mixer and see the level on the mac register normally.
    However, when I run an app, Garage Band, SoundTrack Pro, anything, and select the mixer as input, I get no sound into the application.
    I can't help but think this is user error since when I connect it to the PC running Win XP via firewire, and select the correct device, everything works fine.
    Any ideas? I know many podcasters use this model, so I must be doing something wrong or missing a step.

    You need an adapter. Mini DisplayPort can not output audio.
    Mini Displayport Male and Toslink Audio/USB Male to HDMI Female Adapter
    http://www.cablematters.com/pc-56-26-mini-displayport-male-and-toslink-audiousb- male-to-hdmi-female-adapter.aspx
    Then you need another HDMI to HDMI cable to connect this adapter to TV

  • "heap limit" - or the death of a perfectly sound web application ;-)

    hi everyone,
    i am running a web app on tomcat 6. There is this specfic feature in the web application where i need to parse data from a csv file and programatically place data in an excel file.
    i am using these api's :
    jexcelapi
    ostermillerutil
    here is the code
    // Parsing CSV file
              CSVParser p = new CSVParser(in);
              p.setCommentStart("#;!");
              p.setEscapes("nrtf", "\n\r\t\f");
              String[] line = null;
              Label label = null;
              WritableSheet sheet = writeWorkbook.createSheet("Data", 0);     
              int rowCount = 0;
              try {
                   while ((line = p.getLine()) != null) {
                        for (int column=0; column < line.length; column++) {
                             try {
                                  label = new Label(column,rowCount, line[column]);
                                  sheet.addCell(label);
                             } catch (RowsExceededException e) {
                                  // TODO Auto-generated catch block
                                  e.printStackTrace();
                             } catch (WriteException e) {
                                  // TODO Auto-generated catch block
                                  e.printStackTrace();                    
                        rowCount++;                    
              catch (IOException e) {
                        e.printStackTrace();
              }the problem is a quite outOfMemory error cause in the while loop.
    Its clear that the amout of data (aprox. 26000 rows of data - about 100megs of data) is the problem. My question is any of you can see anything i could optimize the loop with so that the app wont burst ;-)
    yours,
    Jazz

    the problem is a quite outOfMemory error cause in the
    while loop.
    Its clear that the amout of data (aprox. 26000 rows
    of data - about 100megs of data) is the problem. I have a great problem understanding why you need to process 100megs of data in a web application since you are unlikely to be shipping the 100megs to the client for display. I can only see some sense to it if your web application is offering a conversion service but even then you will still have an upload of 100megs followed by a download of 100megs. If you are offering a conversion service then because of the memory requirement you will probably be limited to just one client at a time anyway.
    Not what you would call a sound scalable solution to a problem.

  • Please recommend a sound counting application

    Please excuse me if this post is in the wrong section.
    I have been searching for about a week and cant seem to find an application that counts sounds from a microphone. I have found one that will count beats per minute of a mp3, but I would like to avoid the recording step if possible. Perhaps I am just looking in the wrong place and if someone can point me in the right direction that would be great.
    Here is some background
    I am a watchmaker, I specialize in refurbishing antique pocket watches. After servicing the watch needs to be adjusted to be in beat to keep accurate time. I did have a $300 timing machine, but it died after many years of service. I was hoping that it would be possible to use my computer and not have to purchase another timing machine as they are now over $500 and all they do is count the ticks.
    I have a contact microphone that works when plugged in, all I need is an application that would tell me how many "ticks" per minute. Most of the watches I work on are about 300 ticks per minute.
    Thanks in advance.

    Here's a VST called BeatCounter. I don't know if it will work in GNU/Linux or not though. It's worth trying. You'll need a VST host for that. I think Ardour should work.
    I think most real-time solutions to this problem will come in VST plugin format, if that helps narrow your search.
    Another option that would require a lot more work would be to implement something yourself in PureData
    Edit: the BeatCounter VST includes a Linux Makefile, which is promising.
    Last edited by jakobcreutzfeldt (2013-04-08 15:24:26)

  • Disable all sound from application

    Hi,
    I need to disable all sound or volume from my application upon a button press. I have a html component within my app that i need to be muted, for example if the user loads the youtube website and selects a video, the video should play but without any sound?
    Can this be done?
    Cheers
    Adam

    I am having a similar problem....didn't recognize it until today.... I wasn't getting any sound out of the right side of my headphones....Unplugged them....wasn't getting anything out of the right front speaker....Hmmmswap them around...speaker is good... Take apart the base unit for the Inspire 5400....nope, that's looks ok....plug it all back in....check wiring...plug everything in correctly....test speakers with Creatives software....all sound is now coming out of the front speakers....nothing out of the rear.... I can't figure it out....it is getting late...any suggestions would be greatly appreciated!

  • N82 Sound Recorder Application?

    This has been a handy tool on pretty much every phone I can remember owning in this century, but I can't seem to find such a feature on my new N82
    Am I missing something? Or does one not exist? If so, are there third party applications available for N-series phones that can let me use my phone as a sort-of dictaphone?

    sound recorder is available in N82. it is under
    Menu>Applications>Media>Recorder
    Hope this helps.

  • How to put sound in Application

    Hi guys,
    I am tryin to put sound in Java application but I can't figure out how to do that. It is totaly different than on JApplet.
    Can you guys tell the steps to put sound?
    Thank you

    Hi,
    He doesn not work i tried all the way but no compiling errors but it gives error when the sound need to be played.
    Here is my code
    private AudioClip clipEat;
    File fileEat = new File("SnakeGameApplication\\potato_c.wav");
    try {
                   AudioClip clipEat = Applet.newAudioClip(fileEat.toURL());
              } catch (IOException err) {
    clipEat.play();Cheers

  • I am not getting any sounds from Applications or Web Browsers, but i am getting alert sounds.

    I've tried everything: Restarting my computer, audio MIDI settings, reseting PRAM, opening garageband :l Nothing seems to work! This is really anoyying. I've looked at all the forums about this and i've tried everything it says, and no luck. Please help. And its weird because my computer is not muted and when i turn on the computer the startup sound comes, then i go into iTunes and play a song, but nothing plays, I just hear nothing but error and alert sounds! Please Help!!

    Hmmm, only thing I can think is some extension not loading or borked, open System Profiler, or whatever the name has changed to now, check Software>Extensions & see if all the myriad Audio ones appear to be loaded & valid...

  • The sound for applications isnt working on my macbook.

    The sound when i turned it on and notifacation sounds work, but when i try to watch a video or play music it doesnt. I have tried turning it up and down but nothing works. The sounds icon appears on my screen as usual and goes up and down but the actual sound doesnt change.

    3. Reset PRAM.  http://support.apple.com/kb/PH4405
    4. Reset SMC.     http://support.apple.com/kb/HT3964
        Choose the method for:
        "Resetting SMC on portables with a battery you should not remove on your own".
    Best.

Maybe you are looking for

  • My iphone 4s fell down and now it won't open

    Hello! So, my iPhone 4s fell down and now it won't open. I've tried to turn it on by holding simultaneously the home and lock button but nothing happens. I've plugged it in to its charger but all it does is vibrating constantly. Any suggestions?

  • Problem occured with installation Solaris 10 on x86!

    Hello all! I am a newbie with Solaris, please help me to resolve this problem following: I setup successfully Solaris 10 on my PC, during the processing, I did not choose value option for DHCP (Option No), then, the host name was unknown I set the na

  • Ical 5.0.3

    Any reason why Apple would "upgrade" a perfectly reasonable aesthetic for ical with one with a "vintage" look and at the same time diminish its functionality? My point: it seems that in "month" view, one cannot have a small side bar with previous mon

  • My iphone is causing tingling in fingers and up arm

    Hi, all.  When I use my iPhone 4 I am getting electrical shocks that begin in my fingers and go up my arm...depending on how long I use the phone.  I tried it with the adapter plugged in and without the adapter.  It does it both ways.  It does it whe

  • Automatically ejecting or unmounting a drive on shut down?

    Greetings, Is there a way to write a script for automatically ejecting or unmounting a drive on shut down? I have a couple of firewire external drives that need to be unmounted before I shut down the computer and sometimes I forget (running the risk