Sound bank does not work

I unzip soundbank - deluxe.gm in:

e:\jdk1.7.0_75\jre\lib\audio\soundbank-Deluxe.GM

and too much is to:

Programa\JavaSoft\JRE\1.7.0_75\lib\audio\soundbank-deluxe.gm C:\Archivos

I have the following code in GET_MIXER.java

javax.sound.sampled import;

javax.sound.MIDI import;

//=====================================================

public class GET_MIXER {}

public static Mixer.Info [] getMixerInfo ();

//=====================================================

Public Shared Sub main (String [] args) {}

}

//=====================================================

} / / end of class GET_MIXER

I compile this way:

D:\EJ_JAVA\SOUND > JAVAC - d. GET_MIXER. Java

and I have the following result:

GET_MIXER. Java: 1: error: there is no such thing as javax.sound package

javax.sound.sampled import;

^

GET_MIXER. Java: 2: error: there is no such thing as javax.sound package

javax.sound.MIDI import;

^

GET_MIXER. Java: 6: error: package mix does not exist

public static Mixer.Info [] getMixerInfo ();

^

GET_MIXER. Java: 6: error: lack of method, or declare abstract body

public static Mixer.Info [] getMixerInfo ();

^

4 errors

too, I copied soundbank - deluxe.gm to soundbank.gm

and give me the same result.

where is the javax.sound package search?

Wath is bad? I do not know.

Can you help me please?

=====================================================================

SOLUTION.

Well, the error was a simple "." * »

The 2 lines produce errors

javax.sound.sampled import;

javax.sound.MIDI import;

The 2 lines are solutions

Javax.sound.sampled import. *;

Javax.sound.midi import. *;

and the next line deleted

public static Mixer.Info [] getMixerInfo ();

Reserching in the Java Documentation, I did

a program to play a sound file bit (11.0 KB. (WAV), and it is:

=====================================================================

Javax.sound.sampled import. *;

Javax.sound.midi import. *;

import java. IO;

//=====================================================

public class PLAY_SOUND_FILE {}

//=====================================================

Public Shared Sub main (String [] args) {}

File = new File ("1.WAV");  Size 11KB

try {}

Information AudioInputStream = AudioSystem.getAudioInputStream (file);

AudioFormat audio_format = information.getFormat ();

System.out.println ("\nAudioInputStream.getFormat ()"WAV"] =" + information.getFormat () + "]");

Line clip;

DataLine.Info info = new DataLine.Info (Clip.class, audio_format);

If (!.) AudioSystem.isLineSupported (info)) {}

Handle the error.

System.out.println ("\nLine is NOT taken in charge [] =" + info + "]");

}

else {}

open and start the line.

line = AudioSystem.getLine (Clip) (info);

Line.Open (information);

Line.Start ();

Thread.Sleep (500);

Line.Stop ();

Line.Close ();

line = null;

}

}

catch (Exception e) {}

e.printStackTrace ();

}

}

} / / end of class

=====================================================================

It will play the song file

and the output on the screen is:

("WAV") AudioInputStream.getFormat = [PCM_SIGNED 22050.0 Hz, 16-bit,

[mono, 2 bytes/frame, little endian]

=====================================================================

If you do not use the line

Thread.Sleep (500);

do not hear the sound

Tags: Java

Similar Questions

  • Satellite 5000 with Windows XP, Service Pack 1 is installed and now my sound card does not work

    Everyone knows this problem.

    I have a 5000 Satellite with Windows XP. I installed SP1 and now my sound card does not work.

    Any ideas out there?

    Does anyone have this problem?

    I reinstalled the Yamaha drive a couple of times and always the same: no sound?

    I bought this unit in Holland and it was great until the problem of Service Pack. I heard that Comcom was a dealer right here. Maybe I'll have to make to them, if I can't help here?

  • Sound card does not work after upgrade to XP Pro

    I need help - Microsoft participated three times without result. After that I updated to XP pro that my SigmaTel C Major sound card does not work. Done all the usual uninstall the driver, update driver etc. No results. When I go into the properties of audio devices, midi and mixer IE driver I see a status message: active but device not started

    Any ideas on how to solve it is greatly appreciated.

    Hello

    Sorry but I have no explanation for this. I can recommend you to remove the sound card in Device Manager, then restart the unit. After reboot, the sound card must be recognized and installed properly.

    It will be interesting to know what model of laptop you have.

  • Sound system does not work

    Original title: I have Windows XP and a sound system that does not work

    Everything is present in my sound system, don't except for one thing... no audio devices installed.  How do I get this audio device installed,
    so that it works again?

    Hi Jack,
     
    Thanks for the post. I understand that your sound system does not work on your computer.

    I imagine the inconvenience that you are experiencing. I will definitely help you with this.
     
    To help you suggest several steps to solve the problem, I would appreciate it if you could answer the following questions:
     
    1 have you ever done any recent hardware or exchange of software on your computer before the show?
    2. What is the brand and model of the computer?

    Please follow the steps below and check if that helps.
     
    Method 1:
     
     
    Method 2:
     
    I suggest you to update the audio drivers by following the steps from the link below:
     
    How to update a sound card driver in Windows Vista and Windows XP:

    http://support.Microsoft.com/kb/166774

    Your response is very important for us to ensure a proper resolution. Please get back to us with the information above to help you accordingly.
  • When I want to install express inte intaler then he said that he failefk to install it. Why and my sound system does not work.

    My sound system does not work. my sound card on the motherboard is damaged then I bought a new and it worked fine then when I reinstalled xp wasn't working the audio device. What can I do now?

    Hello

    ·         You get an error code?

    ·         What is the brand and model of the computer?

    ·         What is the brand and model of the sound card?

    ·         Using Intel motherboard?

    I suggest you follow the troubleshooting steps form the article and check if it helps.

    No sound in Windows

    http://Windows.Microsoft.com/en-us/Windows/help/no-sound-in-Windows

    You can also check this link for Intel Express installer fails to start and check if it helps.

    http://www.Intel.com/support/motherboards/desktop/sb/CS-014565.htm

  • Urgent - the sound recorder does NOT work after getting the window system 7 (64-bit)

    I have a problem with the sound recorder. After that I got the system with Windows 7 (64-bit), the sound recorder does not work. It's very urgent because I need to procticing my English pronunciation and the test day is coming.

    Please would you give me help? I really appreciate!

    Thank you very much.

    Eleanor

    A prompt by right clicking and select "Run as Administrator"
    and then at the command prompt, type: chkdsk /f r, then press the Enter key.

    If you are asked to plan the volumn to check the next time that the system restarts,
    Enter: y

    If you know the manufacturing of your hard drive you can also download their diagnostic software.

    Another use: SpeedFan has an online health analysis function
    (SMART tab) for hard drives. It will show how your disks
    compared with other discs of the same brand and model.
    http://www.almico.com/SpeedFan.php

    ========================================================================

    Run the SFC/scannow command. This will check and repair if necessary all of the critical Windows system files.

    Click on start / all programs/accessories then
    Right-click on the command prompt option and select "Run as Administrator".
    (or "Safe Mode" open a command prompt)
    At the command prompt, enter: SFC/scannow

    Windows 7 - order SCANNOW SFC - System File Checker
    http://www.SevenForums.com/tutorials/1538-SFC-SCANNOW-Command-System-File-Checker.html

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
    http://support.Microsoft.com/kb/929833

    How to analyze the entries in log file generating the program Checker (SFC.exe) resources of Microsoft Windows in Windows Vista:
    http://support.Microsoft.com/kb/928228

    J W Stuart: http://www.pagestart.com

  • sound system does not work. Booth option no longer available.

    I have HP Pavilion dv 1000. After formatting the laptop, sound system does not work. I hear no noise; standby and hibernate options are no longer available. Please help me.

    Hello

    Nazia2011 wrote:
    I was getting a blue screen that says technical fault, look for the BIOS. Disable the BIOS memory options such as implementing caching or shading. I also received this message: a malfunction of the equipment. NMI: Parity check/Memory Parity error. The system is shut down. I spoke with HP technical team, they helped me. However, they said that this laptop model is not supported in India. Material was found OK after free hard drive test. Then they asked me to run the operating system cd, I did. While working CD, formatting option, I did gave me. Since computer laptop works very well, but the problem with the sound system. Support optionally visible round but only off and restart works. Hibernate also unavailable. Serial number is CNF54727DN

    Audio drivers must be placed on the second disc of the entire recovery. Give me the serial number instead of the name/number of all important product is no help at all for me.  If you are not going to help me help you then... I'm sorry.

    Others ask for help and they have no problem reading and give the necessary information

    Best regards
    ERICO

  • HP PAVILION NOTEBOOK PC - sound G6 does not work properly, "crackling".

    Hiya,

    The laptop was having problems, so I nuked it and reformat the hard drive and reinstalled Windows 7 64 bit. I downloaded the drivers for audio here - http://support.hp.com/us-en/drivers/selfservice/hp-pavilion-g6-1200-notebook-pc-series/5145704/model... I didn't know that was what I wanted for the sound itself for the speakers, so I downloaded each, uninstalled the previous until I had some kind of result, the one who gave me a result was "IDT high definition CODEC. When I click on test in reading, she sometimes plays nothing but another time parts of the carillon will play and cut, in a sort of crackling. Videos YouTube do not seem to want to play either, so pilots himself seems to have installed, but obviously it does not work as expected, so I'm stumped on how to fix it. Little help would be much apprechiated.

    HP Pavilion Notebook PC g6
    Product number: A7D64EA #ABU

    Since I am from a tech background, I think that its in my best interest to give the same kind of help that I would see when I googled these questions.

    Many thanks to @Dvortex who, in a different thread, gave this advice, which totally fixed my problem. I hope this helps someone coming through this.

    Go to Device Manager (you can give a right click on the windows logo on the lower left corner of your screen and select Device Manager from the list)

    Now to maximize the "audio, video, and game controllers" in the list. You will see the audio driver. Right click on "IDT high definition audio CODEC" / "Realtek audio CODEC" and select "Update driver software".

    Choose "Browse my computer for driver software" - choose "Let Me pick from a list of drivers for devices on my computer.

    Select "High Definition Audio Device" (not IDT high def... or Realtek High Def... This is important) and click Next. You get a warning message but answer 'yes '.

    Once windows have updated driver software, try to play the audio again and check.

  • HP Pavilion dv8210us sound card does not work.

    Computer p/n ET831UA #ABA came with WIN XP Home Edition.  Designed for Windows XP, Windows Vista Capable label States.  I formatted the hard drive and loaded Windows Vista Business 64-bit.  I downloaded and installed all the drivers that have been recommended by HP, but my sound and Audio does not work.  Doesn't my mass storage controller or my PCI Modem.  All were working with WIN XP.  Need help on how to do all this work.

    Hello:

    Mass storage controller needs this driver...

    http://h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public/psi/swdDetails/?sp4ts.oid=1847704&spf_p.tpst=swdMain&spf_p.prp_swdMain=wsrp-navigationalState%3Didx%253D%257CswItem%253Dob_70996_1%257CswEnvOID%253D2103%257CitemLocale%253D%257CswLang%253D%257Cmode%253D%257Caction%253DdriverDocument&javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken

    But it's the only, you will be able to work as there are no 64-bit drivers for the audio or modem.

    While the processor may be 64-bit capable, some other material is not.

    Not to mention that your laptop can take up to 2 GB of memory, a 64-bit operating system will work worse than a 32 bit OS with only 2 GB of memory.

    64-bit operating systems require more memory and disk space to run the 32-bit operating system only.

    Not double, but more.

    My recommendation if you can install Vista 32 bit would be that you can use the drivers on your laptop support and the driver page.

  • His record game. I can't play the sound. troubleshhoot does not work

    Next to my changer volume, there is a small 'X '. When I go over it with my mouse, it says: "no speakers or headphones are connected ', but the speakers are integrated into my PC, so my monitor. Also, if I click it, it brings up to solve problems, but that does not work either! Any help is appreciated, I can't do that without sound on YouTube!

    Next to my changer volume, there is a small 'X '. When I go over it with my mouse, it says: "no speakers or headphones are connected ', but the speakers are integrated into my PC, so my monitor. Also, if I click it, it brings up to solve problems, but that does not work either! Any help is appreciated, I can't do that without sound on YouTube!

    Have you tried to uninstall and reinstall sound card driver? You may need to visit the manufacturer's Web site to download and install the latest sound card driver.

  • Sound Recorder does not work XP

    My recorder does not work.  The only way it works is that if I plug a headset with a microphone.  He worked at one time, but I ran HIJACK THIS and think that something has been removed.  Help, please.  Thank you!!

    You have posted on a Windows 7 forum, but referred to as "XP" - Please use the link at the top of the page to return to the XP forum.

    If you meant 'Windows 7' then use the audio troubleshooters in Control Panel, troubleshooting.

    If this does not help, check the devices errors & drivers updated in Device Manager.

  • My sound card does not work after working yesterday. "This device cannot start. (Code 10) »

    Hi support team!

    I have a HP Pavilion zv6000 and my audio does not work and I enter the Manager of devices and displays this error: "this device cannot start. Code 10 "after this I installed my audio driver from the site and still the same problem.

    With repsect, OZNalex.

    OZNalex wrote:

    Hi support team!

    I have a HP Pavilion zv6000 and my audio does not work and I enter the Manager of devices and displays this error: "this device cannot start. Code 10 "after this I installed my audio driver from the site and still the same problem.

    With repsect, OZNalex.

    Hello

    First do a hard reset.

    Please go through this Hotfix from Microsoft for the error you are getting.

    Please uninstall & update audio driver & BIOS after checking, you have such version specified in the site pilot here on the website of the HP product . Reboot after that. Do the troubleshooting in the Microsoft Fix document.

    When you're done, shut down the laptop.

    Disconnect the power adapter and remove the battery.  Press and hold the Power button for 30 seconds.  Reinsert the battery and plug in the AC adapter.

    Robinet tap away at the key ESC that you start the computer to launch the Start Menu, and then select F10 to open the BIOS menu.  Press F5 to load the default values (sometimes it's F9, but the menu below indicates the correct key), use the arrow keys to select 'Yes' and press ENTER.  Press F10 to save the setting and still use the arrow keys to select 'Yes' and press on enter.

    Check if its working

    Thank you

  • Why my sound button does not work on my Macbook Air? New

    I stupidly clicked "Questioned solved" on my last thread, I'm sorry. Here's my problem:

    I have a late 2010 13 inch Macbook Air and when I press on my sound button on my keyboard it does not to do (the image is appearing). Also, when I watch a video with my unpredictable sound helmet goes out and hangs my computer for a few seconds. How can I fix?

    Carolyn Samit proposed that:

    "Disconnect the headset and then see if the prohibitive icon disappears when you press F12 icon."

    Also, open System Preferences > Sound , then select the output tab.

    Make sure you have good sale selected device and the mute box is not checked. »

    And I answered:

    "I did what you said and selected the correct output device but curiously he still doesn't seem to work. The icon disappeared when I pressed the F12 key. You have any other suggestions? Thank you very much. »

    Thanks if you can help.

    Hello...

    See if the NVRAM reset help > How to reset NVRAM on your Mac.

    In the future, it is easier for everyone if you stick to your original message

  • sound card does not work correctly after Windows update

    My sound card has been disabled when I install an automatic update for windows. There was an extra audio driver in Device Manager 'bluetooth AV audio' and audio peripheral anoither like this. After installation there is no sound coming out if my sound card was on the list of Device Manager. I followed several steps through windows help and support to solve the problem since seeing him on my laptop for mute also did not work. After you resolve the problem with the use of MICROSOFT FIX IT, it was fixed but this isn't the same quality that I get. Its volume is less eventhough volume: 100. The sound card that was originally installed on my laptop is "Conexant High definition SmartAudio HD2. Is there something more I need to do in order for me to get the same quality of sounds I have before installation?

    Moreover, the light of my keyboard for caps lock shift and scrolling also failed after installation. I reformat my laptop after the incident, so I can get a good in the new system, but it does not solve the problem.

    I also need to update my sound card for my HP laptop? Please help me.

    Thank you!

    Hello

    1. what windows update that you install?

    I would ask you to try using a different set of drivers to verify. For more information, see the articles below.
    Updated a hardware driver that is not working properly
    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly

    Tips for solving common audio problems
    http://Windows.Microsoft.com/en-us/Windows7/tips-for-fixing-common-sound-problems

    Conexant support:
    http://www.Conexant.com/support/

    I hope this helps.

  • External sound card does not work correctly

    I have a Nimbus PC music that I used for a few years. I have 2 its external cards: my main unit, which is a Focusrite Scarlett 18i8 and the backup device Steinberg CI2.

    The two devices have been works fine with my PC for a long time, but this weekend my Scarlett has stopped working, and my CI2 works with an intermittent buzzing. The two appear as audio devices and I reinstalled the drivers, checked speakers etc. configurations. I also tried both devices with my laptop and both work just fine then the issue is definitely with my PC.

    This problem started after I changed my setup for all my devices on my desk to put on a free-standing shelf so I changed USB ports and moved my PC and audio devices.

    What is the best way to try to solve this problem?

    Hello

    Thanks for posting your question on the forum of the Microsoft community.

    I would like to know some information about the problem so that we can help you better.

    1. What is the model number of your computer?
    2. you made any hardware or software changes on your computer before the show?

    The problem may occur due to corrupted audio drivers or the settings.

    I would suggest trying the following methods and check if it helps.

    Method 1:
    Run the audio Troubleshooter and check.
    Reference:
    Open the troubleshooting of Audio playback
    http://Windows.Microsoft.com/en-us/Windows7/open-the-playing-audio-Troubleshooter

    If this does not help, use method 2.

    Method 2:
    Please use the suggestions contained in this Microsoft support article and check the issue.
    Reference:
    No sound in Windows
    http://Windows.Microsoft.com/en-us/Windows/no-sound-help#no-sound=Windows-7&V1H=win8tab1&V2H=win7tab1&V3H=winvistatab1&v4h=winxptab1

    I hope this information helps.

    Please let us know if you need more help.

    Thank you

Maybe you are looking for

  • How can I make my songs alphabetically in ios10 instead of artists

    The new iOS10 organizes songs in-app music by artists, rather than alphabetically. This means that I have to listen to all the songs from this artist before moving on. How can I rearrange the songs in alphabetical order so that I can listen to differ

  • iPhone Photo / video storage?

    Hello I have an iPhone 64 GB 6 s. I use the photos app with thousands of pictures and videos stored in the cloud. I have "value for the storage of the iPhone" enabled on my phone, but still have "photos and camera" with 30 GB of my iphone storage (my

  • First bug in the new HP update (7820)

    There is a bug in the application 2-var statistics. SHIFT + TRACE SETTINGS - see the image: Now look at the calculator after upgrade: Where the top menu of the page?

  • Error code: 0x8007064C for download failures (KB959209) x 86 and (KB951847) x 86

    Downloads (KB959209) x 86 and (KB951847) x 86 still fail... displaying the error Code: 0X8007064C.  My regular resources has been unable to resolve the situation.  Can it be fixed by someone with limited computer skills or it was take another profess

  • Projector Acer 9500

    The lock on the door you open to change the bulb broke and now I have a hard time getting my projector to stay on. I guess that there is some kind of security mechanism that causes this because he thinks the door, I open. I looked all over the Intern