Cant play sound.. Stupid errors!!!

Im trying to play a .wav file and I get this error:
NativeAudioStream: invalid file type.
NativeAudioStream: invalid file type.
NativeAudioStream: invalid file type.
NativeAudioStream: invalid file type.
I then try to play a .au file and I get this error:
NativeAudioStream: invalid sample rate of 44100.
NativeAudioStream: invalid file type.
NativeAudioStream: invalid sample rate of 22050.
NativeAudioStream: invalid file type.
Does anyone know how I can solve the problem?

By the way, here's my source code:
// The "Sound" class.
import java.applet.*;
import java.awt.*;
public class Sound extends Applet implements Runnable
    int x = 0;
    Thread t;
    int x_speed = 3;
    int count = 0;
    int click = 0;
    Image buffer;
    Graphics bufferg;
    AudioClip bounce;
    AudioClip intro;
    public void init ()
        intro = getAudioClip (getCodeBase (), "intro.wav");
        intro.play ();
        bounce = getAudioClip (getCodeBase (), "bounce.wav");
        Thread t = new Thread (this);
        t.start ();
        Dimension d = getSize ();
        buffer = createImage (d.width, d.height);
    } // init method
    public boolean keyDown (Event E, int key)
        if (key == 's')
            intro.stop ();
        return true;
    public void run ()
        try
            while (true)
                repaint ();
                Thread.sleep (20);
        catch (Exception e)
    public void update (Graphics g)
        paint (g);
        g.drawString ("Press the 's' key to stop the music", 10, 10);
    public void paint (Graphics g)
        if (bufferg == null)
            bufferg = buffer.getGraphics ();
        Dimension d = getSize ();
        if (x + 50 > d.width)
            x_speed = -x_speed;
            count++;
            bounce.play ();
        else if (x + x_speed < 0)
            x_speed = -x_speed;
            count++;
            bounce.play ();
        x += x_speed;
        bufferg.setColor (Color.yellow);
        bufferg.fillRect (0, 0, d.width, d.height);
        bufferg.setColor (Color.blue);
        bufferg.fillOval (x, d.height / 4, 50, 50);
        bufferg.setColor (Color.black);
        bufferg.drawString ("Number of bounces is " + count, 50, 150);
        g.drawImage (buffer, 0, 0, this);
    } // paint method
} // Sound class

Similar Messages

  • Cant Play Sound Clips in MS Office 2004 Powerpoint

    As the topic states, sound clips were working fine in PowerPoint a few weeks ago. Now when I go to preview a clip or insert a clip, I get the following error message:
    Microsoft Error Reporting log version: 1.0
    Error Signature:
    Exception: EXCBADACCESS
    Date/Time: 2006-09-28 11:05:54 -0400
    Application Name: Microsoft Clip Gallery
    Application Version: 11.2.0.050718
    Module Name: Microsoft Clip Gallery
    Module Version: unknown
    Module Offset: 0x000cb490
    Extra app info: Reg=English Loc=0x0409
    Thread 0 crashed:
    # 1 0x004d5760 in (Microsoft Clip Gallery + 0x000cb490)
    # 2 0x004d5638 in (Microsoft Clip Gallery + 0x000cb368)
    # 3 0x0045691c in (Microsoft Clip Gallery + 0x0004c64c)
    # 4 0x00455e94 in (Microsoft Clip Gallery + 0x0004bbc4)
    # 5 0x0041dac4 in (Microsoft Clip Gallery + 0x000137f4)
    # 6 0x004208d0 in (Microsoft Clip Gallery + 0x00016600)
    # 7 0x0041f6e4 in (Microsoft Clip Gallery + 0x00015414)
    # 8 0x0041c6b8 in (Microsoft Clip Gallery + 0x000123e8)
    # 9 0x0042a5e8 in (Microsoft Clip Gallery + 0x00020318)
    # 10 0x004258b0 in (Microsoft Clip Gallery + 0x0001b5e0)
    # 11 0x004a133c in (Microsoft Clip Gallery + 0x0009706c)
    # 12 0x0042fbb8 in (Microsoft Clip Gallery + 0x000258e8)
    # 13 0x004cf93c in (Microsoft Clip Gallery + 0x000c566c)
    # 14 0x00431118 in (Microsoft Clip Gallery + 0x00026e48)
    # 15 0x004a9e94 in (Microsoft Clip Gallery + 0x0009fbc4)
    # 16 0x004ae6e8 in (Microsoft Clip Gallery + 0x000a4418)
    # 17 0x004ae6d4 in (Microsoft Clip Gallery + 0x000a4404)
    # 18 0x004ae6d4 in (Microsoft Clip Gallery + 0x000a4404)
    # 19 0x004af6c0 in (Microsoft Clip Gallery + 0x000a53f0)
    # 20 0x004af4f0 in (Microsoft Clip Gallery + 0x000a5220)
    # 21 0x004a2a74 in (Microsoft Clip Gallery + 0x000987a4)
    # 22 0x004a26f0 in (Microsoft Clip Gallery + 0x00098420)
    # 23 0x0049f2ac in (Microsoft Clip Gallery + 0x00094fdc)
    # 24 0x0049f068 in (Microsoft Clip Gallery + 0x00094d98)
    # 25 0x00421880 in (Microsoft Clip Gallery + 0x000175b0)
    # 26 0x004d25ec in (Microsoft Clip Gallery + 0x000c831c)
    PPC Thread State:
    srr0: 0x004d5760 srr1: 0x0200f030 vrsave: 0x00000000
    xer: 0x00000006 lr: 0x004d5638 ctr: 0x00000000 mq:0x00000000
    r0: 0x00000000 r1: 0xbfffe240 r2: 0x000be000 r3:0x00000001
    r4: 0xfffffffc r5: 0x00000028 r6: 0xffffffff r7:0x00000000
    r8: 0x00000000 r9: 0x00000090 r10: 0x00000000 r11:0x00000000
    r12: 0x000b8874 r13: 0x00000000 r14: 0x00000000 r15:0x00000000
    r16: 0x00000000 r17: 0x00000000 r18: 0x00000000 r19:0x000000cc
    r20: 0x00000000 r21: 0xffffffff r22: 0xbffffc20 r23:0x000d516d
    r24: 0x04c19b30 r25: 0xbfffe370 r26: 0x0000000c r27:0x04a410d0
    r28: 0x00000000 r29: 0x00000000 r30: 0x00000000 r31:0x00000000
    Thread 1:
    # 1 0x90012808 in clock_sleeptrap + 0x00000008 (libSystem.B.dylib + 0x00012808)
    # 2 0x9000d9f8 in _nanosleep + 0x00000078 (libSystem.B.dylib + 0x0000d9f8)
    # 3 0x9002da28 in _sleep + 0x00000048 (libSystem.B.dylib + 0x0002da28)
    # 4 0x0075615c in _MerpUnregisterCFMFragment + 0x00000BAC (ShMem + 0x0006715c)
    # 5 0x00755628 in _MerpUnregisterCFMFragment + 0x00000078 (ShMem + 0x00066628)
    # 6 0x00755754 in _MerpUnregisterCFMFragment + 0x000001A4 (ShMem + 0x00066754)
    # 7 0x00756234 in _MerpUnregisterCFMFragment + 0x00000C84 (ShMem + 0x00067234)
    # 8 0x9002498c in _pthreadbody + 0x00000024 (libSystem.B.dylib + 0x0002498c)
    PPC Thread State:
    srr0: 0x90012808 srr1: 0x0000d030 vrsave: 0x00000000
    xer: 0x00000004 lr: 0x9000d9f8 ctr: 0x90012800 mq:0x00000000
    r0: 0xffffffc2 r1: 0xf0080af0 r2: 0xf0080ac4 r3:0x00000507
    r4: 0x00000001 r5: 0x00000001 r6: 0x00000000 r7:0xf0080b30
    r8: 0x00000000 r9: 0x000000e1 r10: 0x1438db08 r11:0xa000470c
    r12: 0x90012800 r13: 0x00000000 r14: 0x00000000 r15:0x00000000
    r16: 0x00000000 r17: 0x00000000 r18: 0x00000000 r19:0x00000000
    r20: 0x00000000 r21: 0x00000000 r22: 0x00000000 r23:0x00000000
    r24: 0x00000000 r25: 0x0000001a r26: 0x00000068 r27:0x0076602c
    r28: 0xf0080bb0 r29: 0xa00016e8 r30: 0xf0080ba0 r31:0x9000d990
    Thread 2:
    # 1 0x8fe267e8 in mach_msgtrap + 0x00000008 (dyld + 0x000267e8)
    # 2 0x8fe31ff4 in machmsg + 0x00000038 (dyld + 0x00031ff4)
    # 3 0x8fe162c8 in serverloop + 0x00000088 (dyld + 0x000162c8)
    # 4 0x8fe160f8 in start_debugthread + 0x00000144 (dyld + 0x000160f8)
    PPC Thread State:
    srr0: 0x8fe267e8 srr1: 0x0000d030 vrsave: 0x00000000
    xer: 0x00000000 lr: 0x8fe31ff4 ctr: 0x8fe1a72c mq:0x00000000
    r0: 0xffffffe1 r1: 0x04c63cf0 r2: 0x00000000 r3:0x04c63d90
    r4: 0x00000002 r5: 0x00000000 r6: 0x00000040 r7:0x00004303
    r8: 0x00000000 r9: 0x00000000 r10: 0x00000000 r11:0x845c0334
    r12: 0x8fe1a72c r13: 0x00000000 r14: 0x8fe53254 r15:0x8fe507a0
    r16: 0x8fe507d0 r17: 0x8fe5079c r18: 0x8fe507a0 r19:0x04c63dd0
    r20: 0x8fe507cc r21: 0x8fe5079c r22: 0x8fe507cc r23:0x8fe53254
    r24: 0x04c63d90 r25: 0x00000040 r26: 0x00004303 r27:0x00000000
    r28: 0x00000000 r29: 0x00000000 r30: 0x00000002 r31:0x8fe16254
    Loaded modules:
    0: Microsoft Clip Gallery (11.2.0.050718 Reg=English Loc=0x0409): /Applications/Microsoft Office 2004/Office/Microsoft Clip Gallery
    1: Microsoft Clip Gallery: /Applications/Microsoft Office 2004/Office
    2: Microsoft OLE X (11.2.4.060510 Reg=English Loc=0x0000): /Applications/Microsoft Office 2004/Office/Microsoft OLE
    3: ShMem (11.2.4.060425 Reg=English Loc=0x0000): /Applications/Microsoft Office 2004/Office/ShMem.bundle/Contents/MacOS/ShMem
    4: MicrosoftOffice2001Z (11.2.6.060718 Reg=English Loc=0x0409): /Applications/Microsoft Office 2004/Office/Microsoft Office
    5: MCPZ.stb (11.2.6.060717 Reg=English Loc=0x0000): /Applications/Microsoft Office 2004/Office/Microsoft Component Plugin
    6: MCPCoreZ (11.2.6.060717 Reg=English Loc=0x0000): /Applications/Microsoft Office 2004/Office/Microsoft Component Plugin
    7: libstdc++.6.dylib: /usr/lib/libstdc++.6.dylib
    8: libgcc_s.1.dylib: /usr/lib/libgcc_s.1.dylib
    9: libmx.A.dylib: /usr/lib/libmx.A.dylib
    10: libbsm.dylib: /usr/lib/libbsm.dylib
    11: DVComponentGlue: /System/Library/Frameworks/DVComponentGlue.framework/Versions/A/DVComponentGlue
    12: libz.1.1.3.dylib: /usr/lib/libz.1.1.3.dylib
    13: vImage: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.fr amework/Versions/A/vImage
    14: vecLib: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/vecLib
    15: Accelerate: /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    16: dyld: /usr/lib/dyld
    17: libSystem.B.dylib: /usr/lib/libSystem.B.dylib
    18: CoreFoundation: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    19: CarbonCore: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonC ore.framework/Versions/A/CarbonCore
    20: IOKit: /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    21: OSServices: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
    22: CoreServices: /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    23: NavigationServices: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationSer vices.framework/Versions/A/NavigationServices
    24: libPDFRIP.A.dylib: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libPDFRIP.A.dylib
    25: DiskArbitration: /System/Library/PrivateFrameworks/DiskArbitration.framework/Versions/A/DiskArbi tration
    26: ApplicationServices: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Application Services
    27: Print: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framewo rk/Versions/A/Print
    28: DesktopServicesPriv: /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/Desk topServicesPriv
    29: libCGATS.A.dylib: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
    30: SpeechSynthesis: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ SpeechSynthesis.framework/Versions/A/SpeechSynthesis
    31: SystemConfiguration: /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
    32: SpeechRecognition: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecogni tion.framework/Versions/A/SpeechRecognition
    33: AudioUnit: /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
    34: Help: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framewor k/Versions/A/Help
    35: CommonPanels: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels. framework/Versions/A/CommonPanels
    36: ColorSync: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ColorSync.framework/Versions/A/ColorSync
    37: PrintCore: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ PrintCore.framework/Versions/A/PrintCore
    38: ImageCapture: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture. framework/Versions/A/ImageCapture
    39: AudioToolbox: /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
    40: libCSync.A.dylib: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
    41: libPSRIP.A.dylib: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libPSRIP.A.dylib
    42: vecLib: /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
    43: LangAnalysis: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LangAnalysis.framework/Versions/A/LangAnalysis
    44: FindByContent: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ FindByContent.framework/Versions/A/FindByContent
    45: Security: /System/Library/Frameworks/Security.framework/Versions/A/Security
    46: QD: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ QD.framework/Versions/A/QD
    47: HIServices: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ HIServices.framework/Versions/A/HIServices
    48: libcups.2.dylib: /usr/lib/libcups.2.dylib
    49: libmathCommon.A.dylib: /usr/lib/system/libmathCommon.A.dylib
    50: AE: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ AE.framework/Versions/A/AE
    51: Bom: /System/Library/PrivateFrameworks/Bom.framework/Versions/A/Bom
    52: CoreAudio: /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
    53: libRIP.A.dylib: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
    54: WebServicesCore: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServ icesCore.framework/Versions/A/WebServicesCore
    55: Carbon: /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
    56: CFNetwork: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwo rk.framework/Versions/A/CFNetwork
    57: libresolv.9.dylib: /usr/lib/libresolv.9.dylib
    58: libz.1.dylib: /usr/lib/libz.1.dylib
    59: SearchKit: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchK it.framework/Versions/A/SearchKit
    60: OpenScripting: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting .framework/Versions/A/OpenScripting
    61: Ink: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework /Versions/A/Ink
    62: SecurityHI: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.fr amework/Versions/A/SecurityHI
    63: QuickTime: /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
    64: libBLAS.dylib: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libBLAS.dylib
    65: libLAPACK.dylib: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libLAPACK.dylib
    66: libvMisc.dylib: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvMisc.dylib
    67: CarbonSound: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.f ramework/Versions/A/CarbonSound
    68: libicucore.A.dylib: /usr/lib/libicucore.A.dylib
    69: libvDSP.dylib: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvDSP.dylib
    70: LaunchServices: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LaunchServices.framework/Versions/A/LaunchServices
    71: libcrypto.0.9.7.dylib: /usr/lib/libcrypto.0.9.7.dylib
    72: libssl.0.9.7.dylib: /usr/lib/libssl.0.9.7.dylib
    73: ATS: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/ATS
    74: CoreGraphics: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/CoreGraphics
    75: HTMLRendering: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering .framework/Versions/A/HTMLRendering
    76: HIToolbox: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.fra mework/Versions/A/HIToolbox
    Operating System Information
    Operating System: Mac OS X 10.3.9 (Build 7W98)
    CPU: G4 (7450), Number: 1, Speed: 999 MHz
    gestaltPhysicalRAMSize err = 0, result = 256 MB
    gestaltSystemVersion err = 0, result = 0x1039
    Screen: 1024 x 768, depth = 32, ltbr = 0, 0, 768, 1024
    Microsoft Application Information:
    Error Reporting UUID: B7AE48D7-4F00-11DB-B2FE-000A95BF76D2
    Time from launch: 0 hours, 0 minutes, 48 seconds
    Total errors on this client: 8
    eMac's..iMac's..iBook's..MacBook's..   Mac OS X (10.3)  

    Hello hertzog 10.3.9
    First of all, welcome to the Apple discussions.
    Did you try the MS discussion forum?
    Do a google search, as I did for you> an type 'powerpoint discussion forum' there are a lot of forums to search.
    I use Powerpoint myself a lot, but had never any issues to deal with.
    Let me know if so ...
    Discussions is a ongoing process. Hope to see you around anytime you need us, or can offer help to others.
    Dimaxum <]:~))

  • Midp 2.0 cant play sounds properly

    still having trouble with the midp sound player thing - see my recent post on sound.
    I guess the summary is: do you create and keep a different Player for each type of sound, or do you have only one Player which has to go through the realize()->prefetch() stages to play a sound every time a sound needs to be played?
    My code implements the first way and it has problems with sounds not being played and running out of memory...
    any help appreciated
    thanks
    Steve

    I think B'coz Tempo >30 will result into morethen 120beats per min. but this can only be within the range of [0,127] thus u can can only set tempo upto 127/4=31.75 only.!!! not to 35 or 32 so it should be less then 31.75
    ifor more details check out the documentation given with mobile media api and go to tonecontrol interface
    regards
    bhaskar

  • Internal speakers not appearing in playback devices (cant play sound)

    my volume icon says "no speakers or headphones are plugged in"..I have not been able to get any type of sound from my laptop. I have a Toshiba model Satellite L505...64 bit windows 7 . In my playback device tab the internal speakers arent there only realtek hdmi output (ATI HDMI Audio not plugged in ) is what it says below. & I dont want to use that at all. If you could help I'd be very appreciative!

    Try reinstalling the sound driver:
    Realtek Audio Driver for Windows 7 (32/64) Version: 6.0.1.5904 Posted Date: 2009-08-03 Release Date:...
    You might also want to try these suggestions:
    Windows 8 - Troubleshoot no sound with Windows Audio Troubleshooter
    No sound from speakers or headphones
    - Peter

  • Can't play sound on Mac book air when switched to windows mode any one with solution to that..?

    Cant play sounds on my Mac book air when switched to windows mode

    Do you have any unknown devices in Windows Device Manager? Are the BC drivers installed?

  • Error while playing sound file in Applet

    Hi!!
    I am trying to play sound file in the applet which produces sound continuously, when it goes above certain set value. When i run the sound file individually it runs perfectly fine but when i try to call that class in diff. program its giving me some security error..i am trying to solve this problem from last so many days..i dont know whether i have to make some change in Security file policy or java policy..the error is like..
    java.security.AccessControlException: access denied (java.util.PropertyPermissio
    n user.dir read)
    at java.security.AccessControlContext.checkPermission(AccessControlConte
    xt.java:269)
    at java.security.AccessController.checkPermission(AccessController.java:
    401)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
    at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:12
    76)
    at java.lang.System.getProperty(System.java:573)
    at SoundApplication.startLoadingSounds(SoundApplication.java:52)
    at SoundApplication.<init>(SoundApplication.java:42)
    at TempSet.actionPerformed(TempSet.java:103)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:17
    86)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
    ctButton.java:1839)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
    .java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
    istener.java:245)
    at java.awt.Component.processMouseEvent(Component.java:5100)
    at java.awt.Component.processEvent(Component.java:4897)
    at java.awt.Container.processEvent(Container.java:1569)
    at java.awt.Component.dispatchEventImpl(Component.java:3615)
    at java.awt.Container.dispatchEventImpl(Container.java:1627)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
    at java.awt.Container.dispatchEventImpl(Container.java:1613)
    at java.awt.Window.dispatchEventImpl(Window.java:1606)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
    read.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    Please suggest some solution for this..its kinda urgent..
    Thanks in advance.
    Regards,
    Amish

    Are you loading your Applet from a webserver? You could make the sound file available through the same webserver.
    Alternatively, you could package the sound with the code in a JAR. It does mean a bigger download for your Applet users though, but the Applet would be able to access the file quickly.
    If you put your file in the JAR, say in /sound/myfile.ext , then you can get access to it from your code like this:
    URL soundURL = getClass().getResource( " /sound/myfile.ext" );

  • IOS: (not) playing sound from local file system - Error #2032

    Dear all,
    I am working on an app where I want to (among others) play sound files from the local file system.
    I have added a few mp3 files into my .ipa file.
    With a small file browser in my app I can select any one of them which returns me a File object.
    I then use this File object to do a URLRequest to load the sound:
    var req:URLRequest = new URLRequest(file.nativePath);
    sound = new Sound();
    sound.addEventListener(IOErrorEvent.IO_ERROR, soundLoadError);
    sound.addEventListener(Event.COMPLETE, soundLoaded);
    sound.load(req);
    It works in flash, but fails on the iPAD. Everytime I try to load, I get a IOErrorEvent with error code Error #2032
    When I replace new URLRequest(file.nativePath) with URLRequest("http://.../testfile.mp3"), everything works fine!
    Any help appreciated.
    Is this a matter of Security settings? Can I change those?
    Something to do with Sandboxing (whatever that is)?
    or something to do with cross-domain access?
    I have been looking around for days now and any help would be appreciated!
    I am using Flash CS5.5 & AIR 2.7
    Thanks, Marcus.

    Hi Sanika,
    this was something closer to that paragraph for "nativePath":
    Some Flex APIs, such as the source property of the SWFLoader class, use a URL (the url property of a File object), not a native path (the nativePath property).
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filesystem/File.h tml#nativePath
    but that is not exactly what I've read (maybe that was A-blog or post on someone from A-team on his personal blog or post on stackoverflow).
    (myself I'm using and providing solutions for paths using FILE protocol - file URI schemes - mostly whenever I can and where it is supported)
    regards,
    Peter

  • Why on firefox browser on videos i cant hear sound it just playing and just gone.

    Why on firefox browser on videos i cant hear sound it just playing and just gone. The sound dissapearing on all videos. Please help me i tried some solutions but it not fixed. Thank you.

    Did you check the volume setting in that Flash Player?
    Try to clear the Flash local storage and settings.
    *Windows Control Panel > Flash Player > Storage: Local Storage Settings
    **Remove a specific domain: Local Storage Settings by site
    **Remove all domains: Delete All and Delete Data
    Flash Website Storage Settings panel:
    *http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager07.html
    Global Storage Settings Panel:
    *http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager03.html
    You can click the Volume icon on the Windows Taskbar near the clock and click the Mixer link at the bottom to open the mixer.<br />
    You can adjust the volume level for each application in that window, so make sure that Firefox is not muted or set at a low level.<br />
    Current Firefox versions use the plugin-container process to run plugins, so you need to check the volume setting for the plugin-container process.<br />
    You will only see the Firefox program or the Plugin Container in the Mixer if you are on a website that plays sound.

  • HT2729 I updated to the new version of itunes and now i cant play video.  Itunes has an error and closes.

    after updating itunes i cant play any video itunes has an error and windows shut itunes down.what is going on?

    Hi there bowlerinager75,
    Welcome to Apple Support Communities.
    The article linked below provides troubleshooting suggestions that’ll resolve most issues like the one you described, where your iOS devices are no longer recognized by iTunes on your PC.
    iPhone, iPad, or iPod touch not recognized in iTunes for Windows - Apple Support
    Cheers,
    -Jason 

  • No sound cant play videos on other computers, movie maker doesnt work VADO HD

    well not much good as a camcorder:
    wont play HD video on other computers even if codecs are downloaded
    wont play sound ANYWHERE (sound is there if i put in Windows moviemaker, but no picture)
    Movie maker software errors out when tryin to load videos
    Uploaded new firmware, no resolution to issues
    Also, if i change the name of a file in windows it no longer shows up on the vado or vado software
    Ideas anyone?

    Q On my new Vista machine, I decided just to install K-lite codec pack (Standard edition). This installs ffdshow and a nice media player.
    When my codecs get messed up by some other video product installation, i just reinstall it. Works well so far.
    http://www.codecguide.com/download_kl.htm

  • I have lost my ipod 4 and stupidly turned the location off therefore I can't locate it, lost mode is on, I have played sounds but I really want to know if someone has taken it and turned it on to see the message.Please if you have any info to find my ipod

    If you have any information you can email me at********or answer here
    location is off
    can't track it
    played sounds
    lost mode is on
    not sure if someone took it
    not sure if it has been turned on and the message has been seen
    could they have erased it and gave it another name 
    can it be tracked another way
    is there a way so that i can get it back
    Please help me!!
    <Edited by Host>

    What To Do If Your iDevice Is Lost Or Stolen
    iPhone, iPod Touch, and iPad
    If you activated Find My Phone before it was lost or stolen, you can track it only if it is connected to the Internet by Wi-Fi or cellular. What you cannot do is track your device using a serial number or other identifying number. You cannot expect Apple or anyone else to find your device for you. You cannot recover your loss unless you insure your device for such loss. It is not covered by your warranty.
    If your iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should have done in advance - before you lost it or it was stolen - and some things to do after the fact. Here are some suggestions:
    This link, Re: Help! I misplaced / lost my iPhone 5 today morning in delta Chelsea hotel downtown an I am not able to track it. Please help!, has some good advice regarding your options when your iDevice is lost or stolen.
      1. Reporting a lost or stolen Apple product
      2. Find my lost iPod Touch
      3. AT&T. Sprint, and Verizon can block stolen phones/tablets
      4. What-To-Do-When-Iphone-Is-Stolen
      5. iCloud- Use Lost Mode
      6. What to do if your iOS device is lost or stolen
      7. 6 Ways to Track and Recover Your Lost/Stolen iPhone
      8. Find My iPhone
      9. Report Stolen iPad | Stolen Lost Found Online
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
      1. Find My iPhone
      2. Setup your iDevice on iCloud
      3. OS X Lion/Mountain Lion- About Find My Mac
      4. How To Set Up Free Find Your iPhone (Even on Unsupported Devices)

  • 5610 RM242 ..cant play video only able to play sou...

    i tried video file (3gp).but only able to play sound,even when do videorecording from the phone itself same error cant play back vedio...
    kindly suggest what to do
    Regards!

    Latest available software for Nokia 5610 XpressMusic, product code 0558243
    Version: 06.60
    this versioon is allready their in this mobile
    this means i have to wait for latest version to realease..
    is their any solution.
    regards!

  • 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

  • Only one application is able to play sound at a time.

    I installed arch on my desktop a couple weeks ago (finally 100% windows free ), but I've been having the hardest time getting audio working flawlessly.
    At first I was having problems using the correct sound card as default, but It seems I have that working now. I can get sound to play, but only 1 application can access the sound card at the same time. If I have spotify playing and I try to play a youtube video in browser, the video will play for a few seconds with no sound and then completely crash. If I pause spotify and refresh the youtube page, the video will play. And also, while a youtube video or anything else is playing, any other application will refuse to play sound.
    I guess this is an issue with ALSA. My sound card seems to be blocking other sources.
    If I run speaker-test while something is playing I get this output:
    speaker-test 1.0.27.2
    Playback device is default
    Stream parameters are 48000Hz, S16_LE, 1 channels
    Using 16 octaves of pink noise
    Playback open error: -16,Device or resource busy
    And for possible helpful information, here is the output of aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
    Subdevices: 0/1
    Subdevice #0: subdevice #0
    card 0: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Also, this is what I have put in /etc/asound.conf in order to get my sound card to load as default (just in case I've done something wrong here):
    pcm.!default {
    type hw
    card PCH
    ctl.!default {
    type hw
    card PCH
    So what am I missing here?
    Last edited by tylerpnn (2014-03-29 04:54:00)

    As always happens when I have issues, I try to solve it myself for hours on end, finally swallow my pride and post on the forums, and then find the solution on my own an hour later.
    Found the solution here: https://bbs.archlinux.org/viewtopic.php … 003#p70003
    I took the asound.conf that iphitus posted and changed the ctl.dmixer to use my sound card, which is PCH as determined by asound -l.
    here is my asound.conf:
    #/etc/asound.conf start:
    pcm.!default {
    type plug
    slave.pcm "dmixer"
    pcm.dsp0 {
    type plug
    slave.pcm "dmixer"
    pcm.dmixer {
    type dmix
    ipc_key 1024
    slave {
    pcm "hw:0,0"
    period_time 0
    period_size 1024
    buffer_size 8192
    rate 44100
    bindings {
    0 0
    1 1
    ctl.dmixer {
    type hw
    card PCH
    Last edited by tylerpnn (2014-03-29 06:01:42)

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

Maybe you are looking for