G6 no sound code 52

hi hope you can help. my hp pavillion g6 has no sound at all, in the taskbar there is a x on the sound, having gone through some basic tests the message i am getting is windows cant verify the digital signiture for the drivers stating code 52
and also the IDT high definition audio codec is missing, its saying its unplugged for some reason
thanks for any help
This question was solved.
View Solution.

Hi,
G6 is a series of many models, what is yours and what is its OS ?
Regards.
BH
**Click the KUDOS thumb up on the left to say 'Thanks'**
Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

Similar Messages

  • Will the sounding code be corrected?

    The sound code <embed SRC="birds.wav" loop="true" HIDDEN=true> does not work in Firefox 4.0, but did work in earlier versions (this is not an individual computer issues). Reading other posts, I can see that Firefox now wants an extra piece of code specifying which plug-in to use.
    The old Firefox didn't require that though and neither does Internet Explorer. My question is, will Firefox remove the requirement for that extra step in the future?
    The reason that I ask is that I created probably 30 CDs a few months ago with a family website (not online). Sound was a big part of it. If this is going to continue, I'm either going to have to make updated CDs or I'm going to have to direct everyone to Internet Explorer instead. Thank you.
    Note: I attached the url of a different site I run with the same issue just so you could see an example of the code not working on firefox 4.0.

    You have some missing quotes in the NAME attribute on http://oldcosi<i></i>.com/planetarium<i></i>.htm:
    <pre><nowiki><embed SRC="10 Galactic Wonders.m4a" loop="true" HIDDEN=true NAME=Fanfare of the Common Man></nowiki></pre>
    You may need to specify a MIME type to specify which plugin Firefox should use.
    I'm not sure if Firefox 4 will start plugins with a hidden attribute, so you can try to use a different method to hide the plugin with width="0" and height="0".

  • Sound code not working

    As you can see, this is a very simple code to play a sound.
    however it is not working, i don't see any reason why is not
    working but it says that play is not a property of snd.

    "ChicoNERD" <[email protected]> wrote in
    message
    news:gi18it$1v3$[email protected]..
    > As you can see, this is a very simple code to play a
    sound.
    > however it is not working, i don't see any reason why is
    not working but
    > it
    > says that play is not a property of snd.
    >
    > <?xml version="1.0" encoding="utf-8"?>
    > <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    > layout="absolute">
    >
    > <mx:Panel width="300" height="150" title="MP3
    Player">
    > <mx:Script>
    > <![CDATA[
    > var snd:Sound = new Sound(new
    URLRequest("smallSound.mp3"));
    > snd.play();
    >
    > ]]>
    > </mx:Script>
    > </mx:Panel>
    > </mx:Application>
    Youi can't issue function calls unless you're within a
    function.
    HTH;
    Amy

  • "Wait for sound" code not working in Mac OS X with 11.5

    Here is the code:
    on exitFrame me
         if sound(1) status <>0 then go to the frame
    end
    This worked fine in Director MX 2004, but in Director 11.5 it is causing unpredictable results in Mac OS X (works fine in Windows). Sometimes it stalls on the frame, sometimes it ignores the code, etc. Can someone suggest a solution here? The code should pause the playhead until the sound completes in channel one, then move onto the next frame (like the old "if sound busy" code). Thanks in advance for any help with this. I did search this forums and could not find this issue addressed.

    I may have answered my own question. Does anyone see a problem with this code?
    onexitFrame.me
         if (sound(1).isBusy())then
         _movie.go(_movie.frame)
    end if
    end

  • EMBED SRC="sound.wav" HEIGHT=1 WIDTH=1 HIDDEN=TRUE No Longer Works with Firefox 22.0

    I am a web developer and ever since the Firefox 22 update, sounds no longer play for any users on the website. I have even recreated the problem myself on a clean install of windows 7/clean firefox/clean quicktime install. The sound code worked flawlessly prior to the 22.0 update and has caused a big rift between my users and myself, mostly blaming me and not putting any blame on Mozilla. It has been frustrating as all of us have tried to work through our own ways/solutions with absolutely no fixes. The sound in question is located at http://www.trophyfishingonline.com (sorry but you'd have to register/login) but after, you click simply "Test Sound" and it will attempt to play. Prior to installing Quicktime, it did instruct me to download the plugin which I did and it did not work or play. Again, this worked flawlessly years for everyone(including myself) on Firefox and suddenly it does not work across the board for hundreds of users on different platforms, installations, etc. Please help - this is a bit of an emergency as a web developer who relies on the Firefox platform for his business.

    I found the related bug (looks like it will be fixed in Firefox 23)
    *[https://bugzilla.mozilla.org/show_bug.cgi?id=890516 Bug 890516] - Embedded audio stopped working after installing FF 22

  • Pause Sound not working correctly

    Hi guys,
    I'm using a version of the pause sound code found on the adobe/help page, but it's not resuming the sound from the pausePoint.  I have the pause/play function tied to the stage so that my external swfs pause as well.  Here's a clip of my code,
    This is the load audio with swf part:
    var fl_Loader_5:Loader;
    var fl_ToLoad_5:Boolean = true;
    var channel:SoundChannel = new SoundChannel();
    var snd:Sound = new Sound();
    var req_1:URLRequest = new URLRequest("audio/Introduction.mp3");
    introductionButton.addEventListener(MouseEvent.CLICK, fl_ClickToLoadUnloadSWF_5);
    function fl_ClickToLoadUnloadSWF_5(event:MouseEvent):void
      SoundMixer.stopAll();
      fl_Loader_5 = new Loader();
      fl_Loader_5.load(new URLRequest("captivate/Introduction.swf"));
      parent.addChild(fl_Loader_5);
      fl_Loader_5.x = 100;
      fl_Loader_5.y = -288;
    snd.load(req_1);
      channel = snd.play();
      fl_Loader_6.unloadAndStop();
      fl_Loader_7.unloadAndStop();
      fl_Loader_8.unloadAndStop();
      fl_Loader_9.unloadAndStop();
      fl_Loader_10.unloadAndStop();
      introductionButton.removeEventListener(MouseEvent.CLICK, fl_ClickToLoadUnloadSWF_5);
    This is the stage pause and audio pause part:
    flash.system.Security.allowDomain("*");
    ExternalInterface.marshallExceptions = true;
    var originalFrameRate:uint = stage.frameRate;
    var standbyFrameRate:uint = 0;
    function toggleAllClips(doAnim, mainMC) {
    if ( parent is MovieClip){
      if (doAnim) {
    parent.stage.frameRate = originalFrameRate;
    channel = snd.play(pausePosition);
      } else {
    var pausePosition:int = channel.position;
    channel.stop();
    parent.stage.frameRate = standbyFrameRate;
      for (var i = 0; i<mainMC.numChildren; i++) {
       toggleAllClips(doAnim, mainMC.getChildAt(i));
    How do I better target the pausePoint? Do I need an equation or should I reposition the code?
    Also, the first time the stage resumes and the audio restarts from the beggining, it doesn't stop on the next pause and then a second audio track comes in on the following resume, on and on.  What gives?

    FOUND IT!!! A co-worker and I set down with your new code and brainstormed and it came down to adding another instane of the "currentSound = null;"  Here's that section of the code adjusted :
    var originalFrameRate:uint = stage.frameRate;
    var standbyFrameRate:uint = 0;
    var pausePosition:int;
    function toggleSound(b:Boolean):void{
    if(b){
      channel = currentSound.play(pausePosition);
      pausePosition = 0;
    } else {
      pausePosition = channel.position;
      channel.stop();
    function toggleAllClips(doAnim, mainMC) {
    if (parent is MovieClip){
      if (doAnim) {
    parent.stage.frameRate = originalFrameRate;
    channel = currentSound.play(pausePosition);
    pausePosition = 0;
    currentSound = null;
      } else {
    pausePosition = channel.position;
    channel.stop();
    parent.stage.frameRate = standbyFrameRate;
      for (var i = 0; i<MovieClip.(parent.parent.parent.mainMC).numChildren; i++) {
       toggleAllClips(doAnim, parent.getChildAt(i));
    I had assumed that nulling out any of the references to the original snd_1 would kill all the audio, but it didn't, it just stopped the duplicate.  Here's all of my code in case anyone has the same issue:
    Header 1
    import flash.display.Loader;
    import flash.display.MovieClip;
    import flash.utils.setTimeout;
    import com.adobe.captivate.flash.rdSound;
    import com.adobe.captivate.events.*;
    import flash.display.Sprite;
    import flash.media.Sound;
    import flash.media.SoundChannel;
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    stop();
    var fl_Loader:Loader = new Loader();
    var fl_ToLoad:Boolean = true;
    parent.addChild(fl_Loader);
    fl_Loader.x = 100;
    fl_Loader.y = -288;
    var channel:SoundChannel = new SoundChannel();
    var snd_1:Sound = new Sound();
    var snd_2:Sound = new Sound();
    var snd_3:Sound = new Sound();
    var snd_4:Sound = new Sound();
    var snd_5:Sound = new Sound();
    var snd_6:Sound = new Sound();
    var currentSound:Sound;
    //SoundMixer.stopAll();
    /*var req_1:URLRequest = new URLRequest("audio/Introduction.mp3");
    var req_2:URLRequest = new URLRequest("audio/Safety.mp3");
    var req_3:URLRequest = new URLRequest("audio/Compartments.mp3");
    var req_4:URLRequest = new URLRequest("audio/Dual.mp3");
    var req_5:URLRequest = new URLRequest("audio/Switch.mp3");
    var req_6:URLRequest = new URLRequest("audio/Installation.mp3");*/
    //channel.addEventListener(Event.SOUND_COMPLETE,soundCompleteF);
    function soundCompleteF(e:Event):void{
    currentSound = null;
    SoundMixer.stopAll();
    introductionButton.addEventListener(MouseEvent.CLICK, fl_ClickToLoadUnloadSWF_5);
    function fl_ClickToLoadUnloadSWF_5(event:MouseEvent):void
      SoundMixer.stopAll();
      fl_Loader.load(new URLRequest("captivate/Introduction.swf"));
      snd_1.load(new URLRequest("audio/Introduction.mp3"));
      //channel = snd_1.play();
    //currentSound = snd_1;
      //snd_2.close();
      //snd_3.close();
      //snd_4.close();
      //snd_5.close();
      //snd_6.close();
      if(channel.hasEventListener(Event.SOUND_COMPLETE)){
      channel.removeEventListener(Event.SOUND_COMPLETE,soundCompleteF);
      channel=null;
      channel = snd_1.play();
      //snd_1.play();
      channel.addEventListener(Event.SOUND_COMPLETE,soundCompleteF);
        currentSound = snd_1;
        snd_2.close();
        snd_3.close();
        snd_4.close();
        snd_5.close();
        snd_6.close();
        introductionButton.removeEventListener(MouseEvent.CLICK, fl_ClickToLoadUnloadSWF_5);
    safetyButton.addEventListener(MouseEvent.CLICK, fl_ClickToLoadUnloadSWF_6);
    function fl_ClickToLoadUnloadSWF_6(event:MouseEvent):void
      SoundMixer.stopAll();
      fl_Loader.load(new URLRequest("captivate/Safety Considerations.swf"));
      snd_2.load(new URLRequest("audio/Safety.mp3"));
        channel = snd_2.play();
        currentSound = snd_2;
       if(channel.hasEventListener(Event.SOUND_COMPLETE)){
      channel.removeEventListener(Event.SOUND_COMPLETE,soundCompleteF);
      channel=null;
      channel = snd_2.play();
      channel.addEventListener(Event.SOUND_COMPLETE,soundCompleteF);
        currentSound = snd_2;
        snd_1.close();
        snd_3.close();
        snd_4.close();
        snd_5.close();
        snd_6.close();
    compartmentsButton.addEventListener(MouseEvent.CLICK, fl_ClickToLoadUnloadSWF_7);
    function fl_ClickToLoadUnloadSWF_7(event:MouseEvent):void
      SoundMixer.stopAll();
      fl_Loader.load(new URLRequest("captivate/Compartments.swf"));
      snd_3.load(new URLRequest("audio/Compartments.mp3"));
        channel = snd_3.play();
        currentSound = snd_3;
       if(channel.hasEventListener(Event.SOUND_COMPLETE)){
      channel.removeEventListener(Event.SOUND_COMPLETE,soundCompleteF);
      channel=null;
      channel = snd_3.play();
      channel.addEventListener(Event.SOUND_COMPLETE,soundCompleteF);
        currentSound = snd_3;
        snd_1.close();
        snd_2.close();
        snd_4.close();
        snd_5.close();
        snd_6.close();
    dualButton.addEventListener(MouseEvent.CLICK, fl_ClickToLoadUnloadSWF_8);
    function fl_ClickToLoadUnloadSWF_8(event:MouseEvent):void
      SoundMixer.stopAll();
      fl_Loader.load(new URLRequest("captivate/Dual Control Mechanism.swf"));
      snd_4.load(new URLRequest("audio/Dual.mp3"));
        channel = snd_4.play();
        currentSound = snd_4;
       if(channel.hasEventListener(Event.SOUND_COMPLETE)){
      channel.removeEventListener(Event.SOUND_COMPLETE,soundCompleteF);
      channel=null;
      channel = snd_4.play();
      channel.addEventListener(Event.SOUND_COMPLETE,soundCompleteF);
        currentSound = snd_4;
        snd_1.close();
        snd_2.close();
        snd_3.close();
        snd_5.close();
        snd_6.close();
    switchButton.addEventListener(MouseEvent.CLICK, fl_ClickToLoadUnloadSWF_9);
    function fl_ClickToLoadUnloadSWF_9(event:MouseEvent):void
      SoundMixer.stopAll();
      fl_Loader.load(new URLRequest("captivate/Switch Machine Operation.swf"));
      snd_5.load(new URLRequest("audio/Switch.mp3"));
        channel = snd_5.play();
        currentSound = snd_5;
       if(channel.hasEventListener(Event.SOUND_COMPLETE)){
      channel.removeEventListener(Event.SOUND_COMPLETE,soundCompleteF);
      channel=null;
      channel = snd_5.play();
      channel.addEventListener(Event.SOUND_COMPLETE,soundCompleteF);
        currentSound = snd_5;
        snd_1.close();
        snd_2.close();
        snd_3.close();
        snd_4.close();
        snd_6.close();
    installButton.addEventListener(MouseEvent.CLICK, fl_ClickToLoadUnloadSWF_10);
    function fl_ClickToLoadUnloadSWF_10(event:MouseEvent):void
      SoundMixer.stopAll();
      fl_Loader.load(new URLRequest("captivate/Installation and Adjustments.swf"));
      snd_6.load(new URLRequest("audio/Installation.mp3"));
        channel = snd_6.play();
        currentSound = snd_6;
       if(channel.hasEventListener(Event.SOUND_COMPLETE)){
      channel.removeEventListener(Event.SOUND_COMPLETE,soundCompleteF);
      channel=null;
      channel = snd_6.play();
      channel.addEventListener(Event.SOUND_COMPLETE,soundCompleteF);
        currentSound = snd_6;
        snd_1.close();
        snd_2.close();
        snd_3.close();
        snd_4.close();
        snd_5.close();
    // This is a more "safe than sorry" setting, since multiple domains
    // have entry into my site. Can be removed or hardcoded if you feel
    // secure or insecure, as you see fit.
    flash.system.Security.allowDomain("*");
    // Throw any errors around to make sure somebody actually gets them.
    ExternalInterface.marshallExceptions = true;
    // This is not the most ideal way to toggle animations on and off, but
    // it's thorough, generic, and simple. Iterate all movieclips within
    // clip, shutting them down each in turn. A better, but much more tedious
    // method would be to target specific clips using dotpath notation, telling
    // each in turn to turn off or on depending on what we need.
    // BUT this is just a demo, and what we're really interested in is the
    // event-handling mechanism that actually calls this routine, and not the
    // routine itself.
    var originalFrameRate:uint = stage.frameRate;
    var standbyFrameRate:uint = 0;
    var pausePosition:int;
    function toggleSound(b:Boolean):void{
    if(b){
      channel = currentSound.play(pausePosition);
      pausePosition = 0;
    } else {
      pausePosition = channel.position;
      channel.stop();
    function toggleAllClips(doAnim, mainMC) {
    if (parent is MovieClip){
      if (doAnim) {
    parent.stage.frameRate = originalFrameRate;
    channel = currentSound.play(pausePosition);
    pausePosition = 0;
    currentSound = null;
      } else {
    pausePosition = channel.position;
    channel.stop();
    //SoundMixer.stopAll();
    //currentSound = null;
    parent.stage.frameRate = standbyFrameRate;
      for (var i = 0; i<MovieClip.(parent.parent.parent.mainMC).numChildren; i++) {
       toggleAllClips(doAnim, parent.getChildAt(i));
       //toggleSound(true);
    /*function toggleSoundPause(currentSound, mainMC) {
    if(currentSound){
    if(pausePosition == 0){
      currentSound.play(pausePosition);
      pausePosition = 0;
    } else {
      pausePosition = channel.position;
      channel.stop();
    function animOn(e:*=null) {
    toggleAllClips(true, parent.getChildByName("mainMC"));
    toggleSound(true);
    function animOff(e:*=null) {
    toggleAllClips(false, parent.getChildByName("mainMC"));
    toggleSound(false);
    function injectPrep(e:*=null) {
    try {
      ExternalInterface.addCallback("jsanimOn", animOn);
      ExternalInterface.addCallback("jsanimOff", animOff);
    } catch (e) {
      trace(e);
    function injectListeners(e:*=null) {
    try {
      // Object/Embed ID of this movie needs to be inserted into the
      // JavaScript before we actually wrap and send it to the browser:
      var jsfix=js.toString().replace(/xxx/g, ExternalInterface.objectID);
      ExternalInterface.call(jsfix);
    } catch (e) {
      trace(e);
    // Using timeouts ensures the movie is actually done loading before
    // these fire, helping compatibility for a few browser versions.
    setTimeout(injectPrep,0);
    setTimeout(injectListeners,100);
    JAVASCRIPTS
    JavaScript needs to be wrapped in a tag, a cdata, and a closure
    function in order to be wrapped up and sent to the browser.
    Note that an ActionScript function will replace all instances
    of "xxx" with the actual ID used for this SWF.
    We're battling some major bugs and crossbrowser idiosyncrasies
    here:
    1) In Internet Explorer the 'onblur' event is implemented
        incorrectly (as opposed to Firefox/Mozilla browsers). It is
        wrongly fired when focus is switched between HTML elements
        *inside* a window. As a result, we have to use onfocusout
        instead of onblur, and keep track of which element is active.
        If we focusout and the active element is not the previous
        active element, then we haven't actually "blurred" and dont
        want to trigger Flash.
    2) Firefox has problems interpreting both getElementById and
        document["swf"] when dealing with "twicebaked" object/embeds.
        Adobe's method of finding the swf fails to address the fact
        that document["swf"] sometimes returns an array in this
        situation rather than an object ref, and getElementById
        sometimes confuses name and id.
    3) When a window is created in Firefox, it doesn't actually have
        "focus" (event though it appears to) and therefore won't "blur"
        unless you actually click in it first, i.e if you open up a
        window, then immediately send it to the background, it never
        gets the command to halt the flash. So we have to explicitly
        focus the blasted thing to get it to work properly.
    4) Because of irregularities caused by Ajax, the way browsers shut
        down, and other factors, there's a good chance our swf won't
        be there when a blur (or focusout) event occurs. Therefore we
        need an explicit check within the event handler itself.
    5) Finally, we want to wrap everything inside a wrapper-closure
        function, to keep everything safe from being stepped on. Lucky
        us, we have to do this anyways to get everything to fit inside
        a single ExternalInterface.call event.
    var js:XML = <script><![CDATA[
    ( function() {
      var active_element; // tracker for ie fix;
      var bIsMSIE = false;
      // Modified version of Adobe's code resolves a bug in FF:
      function getSWF(movieName) {
        if (navigator.appName.indexOf("Microsoft") != -1) {
          return window[movieName];
        } else {
          // Resolves a bug in FF where an array is sometimes returned instead of a
          // single object when using a nested Object/Embed.
          if(document[movieName].length != undefined){
            return document[movieName][1];
          return document[movieName];
      // Need to check for swf each time we try this because the swf may actually be gone
      // because of ajax or a window closure event. Prevents error dialog from popping up.
      // Future release should check for this condition and then remove the calling event
      // so it doesn't keep triggering.
      function animOff(){
        if (bIsMSIE && (active_element != document.activeElement)) {
          active_element = document.activeElement;
        } else {
          var logoThang = getSWF("xxx");
          if(logoThang){logoThang.jsanimOff();}
      function animOn(){
        if (bIsMSIE && (active_element != document.activeElement)) {
          active_element = document.activeElement;
        } else {
          var logoThang = getSWF("xxx");
          if(logoThang){logoThang.jsanimOn();}
      // Add the listeners. Hear ye, here ye.
      if (typeof window.addEventListener !== "undefined") {
        // Firefox, Mozilla, et al.
        window.addEventListener("blur", animOff, false);
        window.addEventListener("focus", animOn, false);
      } else if (typeof window.attachEvent !== "undefined") {
        // Internet Explorer
        bIsMSIE = true;
        window.attachEvent("onfocus", animOn);
    // Another bug: window.onblur ALWAYS fires in IE, so
    // we have to keep track of what we're clicking using
    // another method:
    active_element = document.activeElement;
    document.attachEvent("onfocusout", animOff);
      // Necessary to trigger toggling in FF if the page hasn't actually been clicked in and the page
      // is sent to the background. Can be commented out if necessary, e.g. if you don't want the page
      // popping to the top or want focus to remain somewhere else like a form field.
    // window.focus();
    ]]></script>;
    Thanks you SOOO MUCH for your help.  There is no way I could have done this alone and now I have a better understanding about referencing vars.
    Thanks,
    Elena

  • Game pauses upon playing a sound

    I have a class in my flash project called "Resource" which I have designated to contain all the external files outside the flash documnent. When I play a sonud from this class, it seems that my program pauses until the sound is fully loaded, and then every time it plays after that it doesn't lag at all. Would there be a way to load the sound at a different time, i.e. at the beginning of the program, rather than on the fly? Here is the code for Resource.as and how I play the sound.
    Class "Resource" (I cut out unimportant stuff)
    [code]
    package  {
        public final class Resource
            [Embed (source="/Resources/Sound.mp3" )]
            public static const Sound:Class;
            public function Resource()
    [/code]
    And this is how I call the sound and play it:
    [code]
    private var soundCoin:Sound = new Sound();
    public function User() {
    soundCoin = new Resource.Sound;
    [/code]
    And, obviously, I play the sound using soundCoin.play();
    I might just not have the right setup, because I sort of improvised what I was doing. If this method is inefficient, I would love for people to give suggestions.
    Thanks

    How are you using this or even getting this to happen? My experience is that any Symbol that references a Sound where you don't check "Embed on Frame N" (where n is the default embedding frame in your Publish settings) will give the error "Not a valid sound."  Sorry, I don't have the specific error number, as I have that box checked whenever I need an embedded sound .
    The only way I can think that this could possibly happen is if your Symbol that references the Class is before the frame specified in your publish settings (or is the Main document Class). But my experience is that Classes that load before the N frame will embed everything they need on that frame regardless of settings.
    Can you provide more details on what you did? Honestly, I'd love to be able to do on purpose what you did by accident. Having sounds that don't play immediately would be a small price to pay to have more flexibility about where the definition is embedded for the project I'm working on.
    In case it wasn't clear from the above, I thought I'd restate: what you are seeing shouldn't be happening. The file should be compiled on whatever frame is the default compile frame in your swf, and should play immediately when you call play. That it doesn't says that somehow you've stumbled into an edge case.
    FWIW, I find that using the Embed metadata as you have with Flash Pro is extremely unreliable--often part of the sound will not get compiled into the swf, so the sound will cut off early. You will probably find yourself switching to making a swc from embedded library sounds in the end because of this problem (which is what I'm doing).
    Update:
    I just recreated the error you should be seeing with that box unchecked:
    ArgumentError: Error #2068: Invalid sound.
    at flash.media::Sound/play()
    You can do a web search for more information on this issue.

  • Icon corruption and loss of sound?

    I wrote a messenging application in java, think of it like a glorified version of WinPopUp or something similar. Anyway, when it is loaded on a Win2k/XP system (haven't tried it on other operating systems), it appears to be working perfectly until you leave your computer for an extended period of time. You lock the workstation, and come back a few hours later. What I have noticed is when I come back to my station and unlock it, the icons on the application are often corrupted. To try and fix this, I added repaint() calls to JFrame.windowActivated(). Doesn't help. I also noticed that after locking the workstation and coming back a few hours later, that occationally the sound effects stop working for no reason that I can explain. My sound code is rather straight forward:
    public void playSound(String s) {
    InputStream iStream = null;
    AudioStream aStream = null;
    try {
    iStream = new FileInputStream(s);
    aStream = new AudioStream(iStream);
    catch (Exception e) { System.err.println(e.toString()); }
    AudioPlayer.player.start(aStream);
    If I close the application and reload it, the problem goes away. To make matters more confusing, is after the program displays corruption, if you lock the workstation and leave for a few hours and come back, the corruption you witnessed earlier may have gone away. I'm very confused. Has anyone else had this sort of problem or have any suggestions as to fix it?
    I'm running and developing with the Java SDK 1.4.1 on a Windows XP Pro box...

    Sifted through the bug database -- didn't find anything applicable. Still have to finish looking through it however. As for unloading the graphics and audio data...
    Perhaps I have a misunderstanding of how java handles function calls, but the only Audio streams or mention of the AudioPlayer class that exist in my program are handled by the playSound function (above). Since they are local to that method, they shouldn't exist outside that function, and thus Java's garbage collection should be unloading the data when the function call is finished. I suppose I can try and force that by setting all the variables in the method to null when I'm done, but that seems like a waste of typing (although admittedly, at this point I'll try anything). That function takes a string which points to the location of the .wav I want to play... and since the strings are constants I know they aren't changing somehow during execution... shrug.
    As for the graphics idea... I suppose I can set my ImageIcon variables to alternate copies of the same graphics every now and again to "reload" it, but what I'm really shooting for is either A) I'm doing something wrong, with ideas on how to fix it, or B) this is a known bug that will miraculously fix itself once Sun gets around to fixing the JVM.

  • Stop sound when another sound plays

    Hey guys,
    Using Flash Pro CC 2014, Actionscript 3
    I am working on a soundboard and use buttons that play sounds, and I want to make it that when a new sound plays, it automatically stops the current sound from playing, that way 2 sounds dont play at same time.
    But I also have a button that stops all sounds, I am using the "Click to Stop All Sounds" code under Audio and Video in the Code Snippets.
    So I am basically wanting to make sure I can do both, keep the stop all sounds button, but also have it when you press any sound button, it stops all sounds and starts playing the current button/sound. Any suggestions?
    BTW I am setting up symbols as buttons, not movie clips incase you need to know for coding, but I can switch to movie clips if its easier. I was just used to buttons on older versions of Flash for simple stuff like this.
    Thanks.

    Thanks for the reply, I am new to actionscript 3 but am a fast learner. Maybe I am doing this wrong, but when I add the code it simply stops the sounds, but it wont play the sound from the button that I just clicked on. I want it to play the sound button clicked on, and also stop any other sounds that are currently playing.
    For Flash 8, as2, I would add this to the button:
    on (press)
        stopAllSounds ();
    On as3, does it need to say this?
    button_2.addEventListener(MouseEvent.CLICK, fl_ClickToStopAllSounds);
    function fl_ClickToStopAllSounds(event:MouseEvent):void
        SoundMixer.stopAll();
    thanks for your help

  • Create cartoon using AS2 code only. WOW but...

    Hi guys.
    Some lovely code I picked up to create cartoons. My character is sunny. We create multiple empty mcs as holders for a) Sounds and b) Attached or loaded mcs.
    BUT the damn sound object doesn't work.
    sound_1.start(); diesn't work - however it works it I move it right up under the attachsound code.
    Then the next sound_2.start definately work.
    I DID get to work in other code I had even though it was even inside a function. I will paste it under this code.
    numOfSounds = 5;
    numOfObjects = 5;
    objectPath = "images";
    _root.createEmptyMovieClip("soundLib", 1);
    for (var i:Number = 1; i<=numOfSounds; i++) {
    soundLib.createEmptyMovieClip("holder_"+i, i);
    _root["sound_"+i] = new Sound(soundLib["holder_"+i]);
    sound_1.attachSound("1");
    sound_2.attachSound("2");
    sound_3.attachSound("3");
    sound_4.attachSound("4");
    sound_5.attachSound("5");
    //sound_1.start(0, 999);// only for bg music
    _root.createEmptyMovieClip("objectLib", 1);
    for (var i:Number = 1; i<=numOfObjects; i++) {
    objectLib.createEmptyMovieClip("holder_"+i, i);
    _root["object_"+i] = (objectLib["holder_"+i]);
    object_1.attachMovie("sunny", "sunny", 1);// object1 is the empty mc and sunny is the linkage name and sunny is the instance name - usually called something different.
    loadMovie(objectPath+"/cat_a.swf", object_2);
    loadMovie(objectPath+"/cow_a.swf", object_3);
    loadMovie(objectPath+"/bird_a.swf", object_4);
    loadMovie(objectPath+"/pig_a.swf", object_5);
    object_1._x=500// Sunny
    object_1._width=50
    object_1._height=50
    object_2._x=200
    object_3._x=300
    object_4._x=400
    object_5._x=500
    object_1._y=100// loop and use spacing
    object_2._y=200
    object_3._y=300
    object_4._y=400
    object_5._y=500
    sound_1.start();
    object_1.sunny.gotoAndPlay("speak
    sound_1.onSoundComplete = function() {
    _root.object_1.sunny.gotoAndPlay("static");
    sound_2.start();
    sound_2.onSoundComplete = function() {
    sound_3.start();
    _root.sunny.gotoAndPlay("speak");
    The sound code on its own DID work - I paste it here
    numOfSounds = 5;
    _root.createEmptyMovieClip("soundLib", 1);
    for (var i:Number = 1; i<=numOfSounds; i++) {
    soundLib.createEmptyMovieClip("holder_"+i, i);
    _root["sound_"+i] = new Sound(soundLib["holder_"+i]);
    // use sound_1.loadSound to load externally.
    //For my dialogues only need one movie clip and load into as you need - remember to unload sound as welll
    sound_1.attachSound("1");
    sound_2.attachSound("2");
    sound_3.attachSound("3");
    sound_4.attachSound("4");
    sound_5.attachSound("5");
    //sound_1.start(0, 999);
    sound_1.start();
    _root.sunny.gotoAndPlay("speak");
    sound_1.onSoundComplete = function() {
    _root.sunny.gotoAndPlay("static");
    sound_2.start();
    _root.r.nextFrame();
    sound_2.onSoundComplete = function() {
    _root.r.gotoAndStop(2);
    sound_3.start();
    _root.sunny.gotoAndPlay("speak");

    sound_2.onSoundComplete = function() {
    //sound_3.start();
    _root.object_1.sunny.gotoAndPlay("happy");
    var my_timedProcess:Number = setTimeout(my_delayedFunction, 2000);
    function my_delayedFunction() {
      _root.object_1.sunny.gotoAndPlay("laugh");
    Good - after 2 seconds it calls the next behavour ie: she's happy the she laughs.
    BUT - This means that everytime I change from one behaviour to another I MYSELF have to tell flash when to change. This is no event triggered at the end of a nested animation I take it (like the onSoundCompleted for sounds)
    So I will have to calculate via frames per second example a 48 frames behaviour with frame rate of 24ps would be 2 seconds ie: 2000. BUT I have been told there can be a lag in flash movies on the internet therefore I didn't want to rely on his method. If there is a lag I could possibly call the next function too early cutting off for example the walk cycle.
    By the way if I do use this method I would not need to use the clearTimeout would I?
    XHEERS for all your wonderful help - I really do appreciate it.

  • Sound keeps stopping

    Good Morning!
    I am trying to get music to play continuosly, it works, but everytime you click on a button, the song restarts on the new frame.  The sound code is on frame 1, and is loaded from and external file.
    What should I do?
    If I put the code in an as file would that work?
    If not, how do I get it to play when changing frames.
    heres te code i am using
    PlayPause();
    var _sound:Sound;
    var _channel:SoundChannel;
    var _playPauseButton:Sprite;
    var _playing:Boolean = false;
    var _position:int;
    //sound
        function PlayPause() {
        _sound = new Sound(new URLRequest("gypsy.mp3"));
    _channel = _sound.play();
    _playing = true;
    _playPauseButton = new Sprite();
    addChild(_playPauseButton);
    _playPauseButton.x = 100;
    _playPauseButton.y = 700;
    _playPauseButton.graphics.beginFill(0x999999);
    _playPauseButton.graphics.drawRect (0,0,20,20);
    _playPauseButton.addEventListener(MouseEvent.MOUSE_UP, onPlayPause);
    function onPlayPause(event:MouseEvent):void  {
        if(_playing)  {
            _position = _channel.position;
            _channel.stop();
        else  {
            _channel = _sound.play(_position);
        _playing = !_playing;
    Thanks in advance.
    Barbara

    This is what I have now, don't know if I did the toggle right.  The only frame it continuosly plays is the one with the video player on it.  All other frames automatically turn it off.  The pause button does play and pause when clicked. What am I doing wrong?  Do I need a PlayPause(); on each actions frame?  I don't get it, it looks so easy...
    var _sound:Sound;
    var _channel:SoundChannel;
    var _playPauseButton:Sprite;
    var _playing:Boolean = true;
    var _position:int;
    PlayPause();
    //sound
        function PlayPause() {
        _sound = new Sound(new URLRequest("gypsy.mp3"));
    _channel = _sound.play();
    _playing = true;
    _playPauseButton = new Sprite();
    addChild(_playPauseButton);
    _playPauseButton.x = 50;
    _playPauseButton.y = 700;
    _playPauseButton.graphics.beginFill(0x999999);
    _playPauseButton.graphics.drawRect (0,0,20,20);
    _playPauseButton.addEventListener(MouseEvent.MOUSE_UP, onPlayPause);
    function onPlayPause(event:MouseEvent):void  {
        if(_playing)  {
            _channel = _sound.play(_position);
        else   {
            _position = _channel.position;
            _channel.stop();
        _playing = !_playing;

  • Best practices for using javax.sound.sampled.Clip?

    I've got a very simple Swing-based puzzle game. When the user performs certain actions, I want to play a trivial little sound. So far, I'm using the Java Sound API (javax.sound.sampled). When the actionPerformed method is called, my model is updated, which triggers an event in the same thread, and one of the listeners, plays a sound like this:
    this.clip.setFramePosition(0);
    this.clip.start()The clip had been previously initialized like this:
              InputStream in = null;
              AudioInputStream ain = null;
              Clip tempClip = null;
              try {
                   in = BubblePopSound.class.getResourceAsStream("pop2.wav");
                   ain = AudioSystem.getAudioInputStream(in);
                   try {
                        DataLine.Info info = new DataLine.Info(Clip.class, ain
                                  .getFormat());
                        tempClip = (Clip) AudioSystem.getLine(info);
                        tempClip.open(ain);
                   finally {
                        ain.close();
              catch(UnsupportedAudioFileException uafe) {
                   // TODO Log that sound own't be played
              catch(LineUnavailableException lue) {
                   // TODO Log that sound own't be played
              catch(IOException ioe) {
                   throw new RuntimeException("IOException reading sound clip", ioe);
              finally {
                   if(ain != null) try {
                        ain.close();
                   catch(IOException ioe) {}
                   if(in != null) try {
                        in.close();
                   catch(IOException ioe) {}
              this.clip = tempClip;So my goal was to load the clip once, and be able to trigger the playing of it repeatedly. Hoever, it only works intermittently. Reading through the http://www.jsresources.org site, the Java Sound homepage, forums, etc. I feel like I don't truly understand the best way to play simple audio clips like this. These questions are still lingering:
    - When I call clip.start(), does it play in the current thread, or am I triggering something to start the playing independent of the thread?
    - Do I need to call stop explicitly?
    - What if the user triggers the sound again before it has finished playing?
    - Do I need to close the clip with the playing has stopped, or is it ok to keep it "open" so its ready to play again and again?
    - If I can keep it open, do I need to worry about cleaning it up later?

    If your sound file is < 1 second long and you are using the JDK/JRE 1.5.0 (pre _02 update I think) then the sound code is bugged and is likely the cause of the sound problem. Try updating your JRE/JDK to 1.5.0_03 and try the sound again. If that's not it I can't help.
    - When I call clip.start(), does it play in the current thread, or am I triggering something to start the playing independent of the thread?Not quite sure, but it doesn't seem to be interrupted when I start playing a sound and sleep the thread. It might buffer the sound data in the sound card or it might use a different thread. (Interesting to know if someone has that knowledge...)
    - Do I need to call stop explicitly?No.
    - What if the user triggers the sound again before it has finished playing?It should play the new sound as well (but when many are going some might be cut off. It functions adequately for my game (check out Javoids on sourceforge -- need latest JRE or JDK).
    - Do I need to close the clip with the playing has stopped, or is it ok to keep it "open" so its ready to play again and again?Don't bother. Use this instead "clip.setFramePosition(0);"
    - If I can keep it open, do I need to worry about cleaning it up later?Java is garbage collected so you rarely have to be worried about that. No.

  • K7N420 make loud sounds...

    I just got a new K7N420 Pro motherboard. When I set everything up and turn it on, it gives me some kind of sound code. Basicly beeep beep. It doesn't display anything on the monitor. I am using a 400 watt power supply. I have tried reseating everything except the cpu, which I think I am going to go try right now...
    What do you think is wrong? Is there a place where I can find out what the sounds mean? Thanks!

    Quote
    Originally posted by wonkanoby
    jerrac
    were is the clip you use a driver on to fit your heat sink
    at the top of the board or towards the middle
    Not quite sure I know what you mean there... Could you rephrase please? Thanks.
    And I don't have the d bracket thingy with the diagnostic leds. I bought this at a discount price...

  • JavaFX Sound Problems

    Hi,
    I have a problem with the Media Player. I try to play MP3 and WAV sounds usingt the MediaPlayer. I've got several different audio files. Some of them can be played, some of them not. Does anyone have an idea why some files just cannot be played? All the files are mp3 or wav. Some work, some don't. Could it be a codec problem?

    I have experienced some of the same problems you are describing. I found I could not play very short sounds files and many file formats were not supported. Here is how I solved the problem for my application.
    import java.applet.Applet;
    import java.applet.AudioClip;
    import java.net.MalformedURLException;
    import java.net.URL;
    * <p>
    * A <code>Sound</code> is a recognized sound file that can be played, looped or
    * stopped.  The sound file is loaded from the specified file name.  If the file
    * cannot be found or is not a recognized sound file, no sound will be played.
    * </p>
    * @author aarmistead
    public class Sound {
      // Public Variables.
       * The file name of the sound to play.  i.e. "audio/test.wav".  The codebase
       * path should not be specified.  When changed, a new audio clip is created.
      public var fileName : String on replace {
        try {
          var url : URL = new URL("{__DIR__}{fileName}");
          sound = Applet.newAudioClip(url);
        } catch (e : MalformedURLException) {
          // Do nothing, sound will be just be null and not play.
      // Private Variables.
       * The audio clip loaded from the codebase path and the specified fileName.
      var sound : AudioClip;
      // Public Methods.
       * Loop the sound.
      public function loop() : Void {
        if(sound != null) {
          sound.loop();
       * Play the sound.
      public function play() : Void {
        if(sound != null) {
          sound.play();
       * Stop the sound.
      public function stop() : Void {
        if(sound != null) {
          sound.stop();
    }I hope this helps.

  • Windows Media Player for audio on one website does not load?

    I have Firefox v8.01, Windows 7 OS. On one of my websites, the Windows Media Player does not load. The audio works on IE9 but not on Firefox. I have used the same code on other sites that work just fine in Firefox, IE and Chrome. I can't fix the problem because I don't know where the problem lies? I have disabled all my Firefox add-ons which provided no solution. The site is http://www.music.articleposts.com This is a blog site and the sound code is in a widget.

    Hi Anni,
    Welcome to  discussions
    Thanks for all the info but I have tried everything and still nothing. I just don't get it.
    You're welcome If I may say, you have tried everything is too broad a statement when trying to get help we need to know what you have tried.
    Have you tried a freshly created test account? See this doc, on how, if you haven't see this on 10.4 & Adding a new user account to your computer, this helps to show if this is a problem isolated to your username account or system wide.
    Do you have the plugin components mentioned?
    Are you running 3rd party Safari extending applications?
    Has Flip4mac ever worked for you?
    Post a Url of the video you are trying to watch, or an example of similar would help, so we may try it.
    Can you view Youtube & google vids?
    • If those are your correct specs you show your os is extremely behind, missing all the fixes
    the subsequent os updates & security updates offer. If they are incorrect please take a sec, to correct, adding the size of drive & ram would help as well
    If you update make sure to back up your personal files & data see this document on,How to back up and restore your important Mac OS X 10.3 & 10.4 files
    Look at A. Brodys post on how to update properlya. Brody now that 10.4.6 is out lets review..albeit it os 10.4.6 it still applies up to 10.4.10, his is the first post, ( this was the start of the double boot after os update.)
    Apologies if you already know all this I can't not know, prefer err on the side of caution.....
    • Note that your problem sounds different then the original posters problem, he doesn't speak of freezing, you are running a ppc ibook he a Macbook on 10.4.10.
    Please post your own topic & articulate what the "everything" you have tried happens to be, you are more likely to get the help you need, no doubt it must be most
    annoying not to be able to view what you know you can.
    Good luck,
    Eme'~[) / Maria

Maybe you are looking for

  • How do get a dynamic image to open in new browser window

    I'm using DW CS3, mysql (MAMP)   OS 10.6.2   I'm designing my online store.  I need the customer to be able to click dynamic image/thumbnails to view a larger image in a new browser pop up window 400 x 400.  An example of this functionality can be se

  • Need to print report imediately

    i need to print the report output immediately i am pasting some code which i am having problem , in job_open function module exporting parameters are gettting problem. CALL FUNCTION 'GET_PRINT_PARAMETERS'         EXPORTING           mode           =

  • How to adjust volume on Audio Timelines

    A couple questions about volume adjustment on the various Audio Timelines on Premiere Pro CS 5. 1) How to adjust volume level of an mp3 on the Audio 2 timeline? 2) How to adjust or mute volume of an 'individual' video clip on the Video 1 and Audio 1

  • EBS - URGENT

    < MODERATOR:  Per the forum [rules|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement], please use an appropriate subject in your message.  Message locked. > Hello SAP GURU, I am facing one problem while executing FF_5 I posted

  • How much of a discount will you get when you trade in an iPod touch?

    How much of a discount will you get when you trade in an iPod touch?