How I can play sound in Applet?

I have one Button on my Applet and I want that when I click on Button audio file MySound.wav will play. I am using AWT for creating applet.

Hi,
You can try java api - Java Media Framework(JMF)

Similar Messages

  • How many ALSA applications can play sound at once?

    I ran into a strange issue where I had Counter-Strike:GO running (sound working fine in the game itself) but when I alt-tabbed, no other application could play sound.  VLC would complain my device was busy and Chromium didn't show an error but sound didn't work either (tested with a YouTube video.)  I was able to solve this by changing the audio setting in CS:GO from 5.1 surround to 2 speaker (I use headphones so no need for surround) so now I can alt-tab and still have sound in other applications.
    What I want to know now is why that is?  Is there a limit to the number of simultaneous channels or what?  I just tested and with CS:GO set to 2 channel I can play sound from CS:GO, Chromium, VLC, and Banshee all at the same time but with 5.1 CS:GO hogs the sound card all to itself.
    I'm also curious about where PulseAudio fits into this.  Right now I'm just using pure ALSA.  If I were to get a surround setup one day would PulseAudio overcome this limitation and allow me to play music while I game?

    See list of gotchas.
    The main issue you probably have is that Dmix doesn't work with more than stereo - *unless* you use something like my sample config.
    ALSA is flexible, which means it will allow naughty apps to block the soundcard for other apps. So, configure your apps also.
    ALSA works fine, no need for pulseaudio.

  • How do i play sound in java??

    hello,
    How do i play sound in java??
    im new to java
    thanks,

    There are crude abilities to play sound in the core of java. If you really want to make good sound apps though you should look at the JMF.
    http://java.sun.com/products/java-media/jmf/

  • How i can play smoother HD video files in realtime, when i change the duration in cs6

    How i can play smoother HD video files in realtime, when i change the duration in cs6.

    More information needed for someone to help... please click below and provide the requested information
    -Information FAQ http://forums.adobe.com/message/4200840

  • How i can fix sound on i pad air ?

    How i can fix problem with sound on ipad air its have no sound at all ???!!!!

    Try reset iPad
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
    Note: Data will not be affected.

  • I have an ipod touch and an hp computer. i was wondering how i can play apps using itunes on my computer

    I need help as fast as possible! i downloaded an app from itunes off of my computer and i can only use it on my computer.
    Does anyone know how i can use it on my computer? please help!:)

    Hi ~
    You cannot do that. The apps are specially made for the apple products. If you want to have apps on your computer, find them online somewhere else, pay for them if needed, and use those. You cannot do what you are requesting to do.
    Hope I helped!

  • How I can play java script game

    Hello,how I can use java script games, such a chess

    Go here: http://htmlchess.sourceforge.net/demo/example.html or http://valil.com/chess/chess_include.html on your iPad.
    Those JavaScript chess games work fine on the iPad. There are others if you Google for "Javascript chess game", but as PogoPossum said, you'll find better ones in the AppStore.

  • How i can play swf files in ipad2

    Hi There,
    I designed one interactive presentaion in flash...and i want to use it on my ipad2...how can i???....i want it to be as it is....i mean in the vector format too....and the file has actionscript too...how i can manage this....is it possible????
    pls reply asap....
    jimmy

    by googling i understood that but....am not sure if we do so..we will get the exact quality of vector file.....if not what i the next best option....
    pls reply

  • Does anyone know how you can play video with the screen locked and not just recorded video. Like downloaded video?

    So I want to be able to play video mp4 for my kids and lock the screen so that they don't disable or stop the video. Is there anyway you can lock the screen and play video? I've seen an app that tries to do this, but it only plays video recorded from the device. Also, it's not very good. I've also looked at IOS 5, but it only seems to support audio, not video, unless I am not doing something correctly? What happened to the simple old manual 'hold' switches that most devices have, like the PSP etc? It seems like all of the touch devices have neglected a simple touch disable button? Anyway, please provide any enlightenment here. 

    actually nevermind, it's working now. I closed iTunes, then waited a little, then double clicked one of my iTunes video files from my documents, which opened up iTunes again and the video started playing. I tried restarting iTunes before and that didn't work, so maybe for those who have similar problems, just try clicking on the video file in your documents/desktop of your computer, rather than directly from iTunes.

  • When i start ifind i get message about load error. i click reload option and icloud main screen opens ifind shows a map that is misaligned. phone shows several blocks away. can play sound thru ifind and acess info on phone. all os upto date. any idea

    start ifind from web on my dell pc with win 7. get error on load to retry later or reload. click reload and icloud main screen comes up. I hit ifind and phone shows up on a misaligned map and is shown several blocks from actual location. tried daughters phone and map shows up inaccurate for hers also. I have 4s she has 5c all ios on phones are updated . I can get phone to sound and access data such as contacts, calendars.  the problem with bad map and message that there is a problem on starting. previously the map had no problems and location was accurate to within a short distance.

    Thank you for the sympathy and the information about the Adobe.com forum Michael.
    I posted here because, to be honest, for a company that's acknowledged their installers and updaters and support needs some work, they seem very determined to obfuscate the means by which users can provide direct feedback to the company. Much like you, I've also noticed a trend in CS5 installations that mirrors the issues that were present in CS4. it's a sad state of affairs.
    As for my installation, you are also quite right to say that a clean install would have been a lot faster than what I went through with TS and it was actually my first idea. Before calling TS I'd actually read through the forums and noticed that a large number of users who were faced with my situation had no other choice but to reformat. I was just giving Adobe the benefit of the doubt and wasted 2 and a half weeks through that course of action...
    What makes this situation even more frustrating is that the installer failed on a fresh system. It was a custom-built design machine, assembled and configured by myself. The only software that had been installed on it prior to Design Premium was Firefox, an FTP client and the start of my problems, trial versions of various CS4 programs. I used trials just long enough to retire the previous design computer so that I wouldn't contravene the EULA's stipulation of not running more than one instance of software at the same time on different machines.  Turns out being honest once again penalised a legal customer.
    If there is just thing users should learn from my far from unique tale of failed tech support it's that if you ever run into a problem with the installation, don't bother calling TS, just reformat and start from scratch.  It might seem like it'll take longer to get going again, but in actuality, it's the opposite. Reformatting means you'll be up and running in about 1 or 2 days rather than 2 weeks.
    Marc

  • Is there any Way how i can play Starcraft on IPad??

    I Love the Game "Starcraft" and I can't Play it. on iPad because I can't download "Winulator" for IOS. I ask, is there any other Way to play Starcraft on iPad??

    You'll need to contact Winulator to see if they'll make an iPad app.

  • If I erased all data and the games data how I can play with games and i lost my data

    Help me please

    Connect the iPad to your computer's iTunes and copy any purchases off the iPad (which will include apps) to your computer via File > Transfer Purchases - you may also want to copy photos and any important documents off the iPad as well e.g. via the file sharing section at the bottom of the device's apps tab when connected to iTunes, via wifi, email, dropbox etc - they should be included in the backup, but it's best to have a copy of them outside of the backup just in case. You can then force a backup of the iPad by right-clicking the iPad 'Device' on the left-hand side of your computer's iTunes and selecting 'Backup' (a backup will include your apps content and settings).
    You can then start the update by selecting the iPad on the left-hand side of iTunes, and on the Summary tab on the right-hand side clicking the Check For Updates button.
    Updating to iOS 5+ : http://support.apple.com/kb/HT4972

  • Play Sound Through Display AND Connected Computer.

    I bought and connected my new 27" LED Display to my 27" iMac today and would like to know if its possible to play sound through both the display AND the computer at the same time. I know to go into the sound settings in system preferences, however only the option is given to chose the sound output to come from either one or the other.
    Is it possible to play the audio through both?
    Thanks in advance!

    I downloaded this program with the provided link - after changing the settings as advised I began to get that loud static white noise like sound out of the iMac speakers (which apparently is a problem many people have experienced with their 27" i7 iMacs). As soon as I deleted the Audio Hijack program the speakers went back to normal. (Thank God!)
    If anyone else has any suggestions as to how I can play sound through both the iMac and the display at the same time this would be great appreciated.
    Thanks for trying to help though Malcom

  • Play sounds/music as if speaking through microphone (X-Fi Elite Pr

    Does anyone know how I can play sounds or music in programs like Teamspeak, Ventrilo, or PC games with voice capabilities using my sound card (X-Fi Elite Pro) as if I was talking through an external microphone?
    Thank you.
    -Cam
    Message Edited by delta5888 on 06-04-2008 0:48 PMMessage Edited by delta5888 on 06-04-2008 0:49 PM

    <SPAN>Hey man, thanks for pointing me in the right direction! I started messing around with the Phono 2 dials on the unit and was having no luck what so ever. I then wanted to try my microphone to make sure that it was still working from all the changes I had made. Well, when I hit the record button and talked into my mic it showed something being recorded, so I knew my mic was still working... But.... when I played the recording, It was the recording from the T.V.!!! At this point I knew I was close to getting this issue solved.
    <SPAN>
    <SPAN><SPAN>I ended up having to open my "Sounds & Audio" controller within the Windows XP Control Panel and then going to the volume section of the XF-I card and then going to file, properties, and then check the "Phono 2" port off so that I could see it listed with all of my other volume and sounds controls. I then un-muted it as you said and Bam!!!!!!! Guitar Hero on my PS2 was pumping out at my full 500W!!!! I nearly went death from the experience, but it was very gratifying!!!
    <SPAN>
    <SPAN><SPAN>Thanks for your post. It really helped to point me in the right direction. I'm now thinking of digitizing all my vinal records now into MP3's too! Thanks again man, you?re the bomb!
    <SPAN>
    <SPAN>Jeep

  • How do I play a sound?

    How do I play sound?

    It depends on the duration of the sound and how often it will be used. For sound effects less that 5 seconds, the System Sound methods in the AudioToolbox framework are a good choice. I'm just now trying to remember the sample project that has the best sample code for this purpose. It will be easier to just paste in my own class:
    // SoundEffect.h
    #import <UIKit/UIKit.h>
    #import <AudioToolbox/AudioToolbox.h>
    @interface SoundEffect : NSObject {
    SystemSoundID ssId;
    -(id)initWithFileName:(NSString*)name andExt:(NSString*)ext;
    -(void)playSound;
    @end
    // SoundEffect.m
    #import "SoundEffect.h"
    @implementation SoundEffect
    -(void)playSound {
    AudioServicesPlaySystemSound(ssId);
    -(id)initWithFileName:(NSString*)name andExt:(NSString*)ext {
    if (![super init])
    return nil;
    // NSLog(@"initWithFileName: %@.%@", name, ext);
    // Get path inside appl package
    NSString *resPath = [[NSBundle mainBundle] pathForResource:name ofType:ext];
    if (resPath == nil) {
    NSLog(@"resPath = nil");
    return nil;
    // NSLog(@"resPath = %@", resPath);
    NSURL *myURLRef = [NSURL fileURLWithPath:resPath isDirectory:NO];
    // NSLog(@"myURLRef = %@", myURLRef);
    OSStatus ossCode = AudioServicesCreateSystemSoundID ((CFURLRef)myURLRef, &ssId);
    if (ossCode) {
    NSLog(@"ossCode = %X", ossCode);
    return nil;
    return self;
    -(void)dealloc {
    OSStatus ossCode = AudioServicesDisposeSystemSoundID (ssId);
    if (ossCode)
    NSLog(@"dealloc: ssId ossCode = %X", ossCode);
    [super dealloc];
    @end
    Both the simulator and the device will decide they don't like certain sounds. That can be confusing because it's not uncommon to be able to play a sound on the simulator that won't play on the device, and vice-versa. When that happens you'll see an error code in the console (uncomment more of the logging to see the whole story). I forgot the code for an unacceptable format, but you'll learn it soon enough. Often the solution is to just convert the file to a different format. When I was trying out the sounds that came with OS X, I found that the device didn't like any of the .caf files. It couldn't play those sounds until I opened the files in Audacity® and resaved them as a different size .caf.
    Hope that helps!
    - Ray

Maybe you are looking for

  • Problem with set_item_instance_property and set_lov_property

    Hello guys, I am using oracle forms 6i and new to it. I am having a multi data block. I am facing a problem when I try to set the item instance property with respect to the list type. 1) Basically, I am having a list item having three types MANUAL, I

  • 5800 Connection Manager is not working correctly

    I have my preferred connections setup with my home WLAN as priority, then my cell phone provider (ATT) as the last priority. The connection manager switches from my WLAN to ATT everytime I go out of range of my WLAN fully automatically. So that part

  • How do I save the data in multiple screen tabs concurrently?

    Hi. I have a screen (9000) that includes 3 tabstrip subscreens (9001, 9002 & 9003). I used the tabstrip wizard to create the tabstrip. Right now, when I click on the 'Save' button, only the data in the active tab is saved. How could I make changes so

  • Question related to APD

    Hi All, I am facing an issue with APD. We are using APD to drop the data from Report to csv file. It is working fine on local machine,But when we are placing in Application server giving an error message like File:............Could not be opened ,Ope

  • Audio out of sync after export!

    I've exported this video I've been working on several times under different conditions, no effects, no transitions, no additional media, different formats between AVI, MPEG, H.264, I've uninstalled and re-installed premier, running as administrator.