Looking for some way to reset sound on JavaW?

Hi,
I'm having a strange problem with a java applet. When I browse away from a page with an applet on in a browser, Javaw.exe keeps looping a second long clip of whatever sound was playing before I browsed away. Interestingly, this problem does not occur on Mac.
I was wondering if there are applets that could be run to reset the sound core?
There is an alternative solution, which is disabling the sound with javascript when someone goes to navigate away from the page, however I can't figure out how to send a command to the applet (it isn't written by me).
    public final void actionPerformed(ActionEvent actionevent)
        Object obj;
        if((obj = actionevent.getSource()) == menu)
            String s1 = actionevent.getActionCommand();is in the source code, and within this function there is a section to disable the sound:
          if(s1.equalsIgnoreCase("Toggle Sound"))
                boolean flag;
                flag = !(flag = Boolean.parseBoolean((String)hashParams.get("sound")));
                hashParams.put("sound", String.valueOf(flag));
                system.a_g_driver_g_fld.a(flag);
            }so I tried the following Javascript:
<a href='#' onClick='document.applet.actionPerformed("Toggle Sound")'>Toggle Sound</a>However it didn't like that because the string was not an actionevent.
Source code and applet are available here: http://sonicresearch.org/test/
Any help with this is appreciated!
Edited by: Qjimbo_ on Feb 5, 2009 2:16 AM

An idea I also had, was some other applet that could be run briefly to reset the sound in the JVM.I think it is worth a try. If you place both applets in the same page, both Applet.stop() methods will be called when you leave the page.
Since you don't want to change their code, stop the sound in your new applet's stop() method.
But you have to figure out how this is done, probably by understanding their code.

Similar Messages

  • Looking for a way to play a sound on alert

    I'm looking for a way to have the 11g version of BAM play a sound when an alert is triggered. Has anyone done this? Suggestions?
    Thanks
    Eric
    Edited by: thebige on Feb 1, 2010 9:39 AM

    at what moment does the credit in the overpayment is used to pay the SA's?. for example if it is at bill completion then my guess is that there is a bill completion algorithm which creates the refund adjustment when all the SA's are paid, so probably you need to plug it out, I don't think there is any base process that creates the refund automatically(please correct me if I am wrong)

  • Looking for some advice.

    Hi. Hope this is right forum. First post. A brief background. Years ago (2007-2008) I created a web portfolio for school. First it was in HTML (Dreamweaver) and then Flash. I hadn't really touched it in years and decided this past couple of months, after playing in the medium again, to get back into wed design, 3d, and digital content creation. That said, I went in and updated both the HTML and Flash versions with the knowledge I currently have, limited though it is. I now would like to go forward and build a completely new site and teach myself HTML, JavaScript, and WebGL along the way (possibly before hand). Hopefully I'll get working on the new site before the end of the year. In the mean time, I'm using my old site as a stop-gap measure. I've also taken books out from the library to begin journey into the above mentioned languages.
    This all said, I'm looking for some advice on what direction I should go next...look into... Does my current objective seem reasonable? Also, could anyone give feedback on what I did wrong and what I've done right on my old site. I think, as far as what went wrong, the Flash page is just too large. No one wants to wait so long for it to load. I think I got carried away with it. Also, too many sound effects. That said, I think the HTML site was constructed in an "old-fashion" way. No one makes sites like that anymore. I basically set it up in Photoshop, sliced it, and assembled it in Dreamweaver. The end result is a bunch of tables in HTML? A friend suggested I look into a CMS (?) like WordPress?
    Here's my current site: http://www.personal.kent.edu/~mstingle/
    Constructive feedback on what I did right and wrong would be great. And, where I should be looking next for rebuild of my portfolio.
    Cheers.

    WebGL is still  experimental.  Most browsers don't fully support it yet.
    http://caniuse.com/webgl
    The current trend is Responsive Web Design -- layouts that work in all devices (mobile, tablet and desktop).  This technology relies on CSS layouts (no tables) with media queries for different viewport widths.  Below is a crude example built with the FluidGrid Layouts feature in DW CS6 or CC:
    http://alt-web.com/FluidGrid/Fluid2.html  -- resize your browser's viewport to see it in action.
    Flash is dead on the web now because the world's most popular mobile & tablet devices don't support it.  Animations are mostly being built with HTML5, CSS3 and JavaScript.  See Adobe Edge Animate.
    If you're not a skilled coder and just want a basic static web site, Adobe Muse might be all you need.  http://www.adobe.com/products/muse.html   That said, Muse cannot support server-side programming so you can't use it for advanced features like CMSs, blogs, etc...
    If you're a Creative Cloud member, you can use Behance & ProSite to build & share your portfolio online.
    http://www.adobe.com/products/creativecloud/behance-community.html
    http://prosite.com/
    In terms of your own site, ask yourself how much content & which features it will need to support in the coming months/years.  If it's going to be a relatively small site (under 20 pages), a static HTML site is probably all you need.  IMO, WordPress -- a dynamic CMS built with PHP & MySql databases -- would be overkill.  However, if you plan to make your site into a  blog for example, then a dynamic CMS is an option to consider.  WordPress isn't the only kid on the block either.  There's also Drupal, Joomla!, and many more...
    Nancy O.

  • Looking for some advice on CEP HA and Coherence cache

    We are looking for some advice or recommendation on CEP architecture.
    We need to build a CEP application that conforms to the following:
    • HA with no loss of events or duplicate events when failing over to the backup server.
    • We have some aggregative rules that needs to see all events.
    • Events are XMLs with size of 3KB-50KB. Not all elements are needed for the rules but they are there for other systems that come after the CEP (the customer services).
    • The XML elements that the CEP needs are in varying depth in the XML.
    Running the EPN on a single thread is not fast enough for the required throughput mainly because network latency to the JMS and the heavy task of parsing of the XML. Because of that we are looking for a solution that will read the messages from the JMS in parallel (multi thread) but will keep the same order of events between the Primary and Secondary CEPs.
    One idea that came to our minds is to use Coherence cache in the following way:
    • On the CEP inbound use a distributed queue and not topic (at the CEP outbound it is still topic).
    • On the CEPs side use a Coherence cache that runs on the CEPs JVMs (since we already have a Coherence cluster for HA).
    • Both CEPs read from the queue using multi threading (10 reading threads – total of 20 threads) and putting it to the Coherence cache.
    • The Coherence cache is publishing the events to both CEPs on a single thread.
    The EPN looks something like this:
    JMS adapter (multi threaded) -> replicated cache on both CEPs -> event bean -> HA adapter -> channel -> processor -> ….
    Does this sounds sound to you?
    Are we over shooting here? Is there a simpler solution for our needs?
    Is there a best practice for such requirements?
    Thanks

    Hi,
    Just to make it clear:
    We do not parse the XML on the event bean after the Coherence. We do it on the JMS adapter on multiple threads in order to utilize all the server resources (CPUs) and then we put it in the replicated cache.
    The requirements from our application are:
    - There is an aggregative query that needs to "see" all events (this means that we need to pass all events thru a single processor and we cannot partition them to several processors).
    - Because this is a HA solution the events on both CEPs (primary and secondary) needs to be at the same order when reaching the HA inbound adapter and the processor.
    - A single thread JMS adapter is not reading the messages from the JMS fast enough mainly because it takes time to parse the XML to an event.
    - Using a multi-threaded adapter or many single threaded adapters with message selector will create a situation that the order of events on both CEPs will not be the same at the processor inbound.
    This is why we needed a mediator so we can read in multiple threads that will parse the XMLs in parallel without concerning on order of messages and on the other hand publish all the messages on a single thread to the processors on both CEPs from this shared mediator (we use a replicated cache that runs on both JVMs).
    We use queue instead of topic because if we read the messages from a topic on both CEPs it will be stored twice on the Coherence replicated cache. But if we use a queue, when server 1 read the message and put it in the Coherence replicated cache then server 2 will not read it because it was removed from the queue.
    If I understand correctly you are suggesting replacing the JMS adapter with an event bean that will read the messages from the JMS directly?
    Are you also suggesting that we will not use a replicated cache but instead a stand alone cache on each server? In this case how do we keep the same order of events on both CEPs (on both caches)?

  • I'm looking for some help connecting linksys IP Cameras to my home network to monitor my property when I'm travelling. I used to do this with linksys WAPS, but since I've discarded all my old linksys networking and standardized on airport, I can't get the

    I'm looking for some help connecting linksys IP Cameras to my home network to monitor my property when I'm travelling.  I used to do this with linksys WAPS, but since I've discarded all my old linksys networking and standardized on airport, I can't get these things working.  I know that I have to identify my camera through the DHCP table and set up port forwarding and there is the problem. 
    My network consists of 4  base stations set up in a roaming network - same network name and passwords.  I need to do it this way so I don't have to switch network when I move from one side of the house to the other, go to the cabana, or my shop in the barn.  The network works pretty well since I went to a roaming set up.  Good performance, yata, yata, yata.
    However, the roaming network requires the AEBS's to be set up in bridge mode, rather than sharing an ip address.  When the AEBS is set to  bridge mode, you don't see a DCHP table or have the ability to identify your IP Cam through the AEBS - and hence, no port forwarding. 
    I am able to identify and set up my Linksys IP Cam by locating the ip address on my FIOS router, even though, it's plugged into an AEBS.  I set it up, see the video, remove the ethernet cable from the IP Cam, restart - and I can't get to it from an AEBS.  In researching this, it appears, I should be setting up the AEBS to "share an IP Address", going to the DHCP table and identifying the camera's IP address and setting up port forwarding.  However, you don't see any of the DHCP or port forwarding options in Airport Network Utility when configuring in bridge mode. 
    I'm hoping I'm missing something here and that the solution isn't to set it up at the FIOS router level, but I'm beginning to think that's my only hope.  What concerns me there is that I should be able to see the IP cam on the network without port forwarding since I'm not coming from outside, and I can't even do this unless it's connected hard wire.
    I'd appreciate any insight into this that anyone might have.  I've hit the wall with what I know.
    Thanks.

    In a roaming network, your "main" router is the device that would require port mapping/forwarding to be configured in order to access the IP camera from the Internet. This router is also the one that would be provide the private IP address for the camera which you will want to be a static one.
    So as you described your network, the IP cameras should be getting an IP address or you assigned it a static one and this is the address that you would enter in the Private IP address (or equivalent depending on the router used) field when setting up port mapping.
    If you are not able to access this camera from the local network, then this should be troubleshot first.

  • I'm looking for some inspiration here on how best to set up my TC

    Copied from a post else where, any help greatly appreciated!!
    I'm looking for some inspiration here on how best to set up my TC for my needs & wondering how others do for similar needs....
    I have a 2TB TC that I have set up so that all of mine & my girlfriends photo's, music, movies & documents are on the one location so that we can access it wirelessly from both our MacBooks & also from a MacMini which I'm going to buy in a month or 2. Changing the location for where iTunes & iPhoto look wasn't a problem but browsing through iPhoto in particular is really slow due to the number of previews I presume, and also we are now unable to have any of the media with us when traveling about, synching phones on the move is a disaster as well!
    Anyway,
    is there an easy way of setting up iTunes / iPhoto so that we can have all the data on the TC managed on the MacMini but import small iTunes Playlists & iPhoto Albums to our MacBooks without having to change in preferences where the applications look for data each time we get home?
    Any help anybody can offer would be grand!
    Thanks in advance.........

    You topic might be better suited for the iPhoto or iTunes forums, since your question seems to be with the application(s) functionality, not really the Time Capsules. However, if you start iPhoto or iTunes while holding down on the "option/alt" key, you can manually select a library to access. When you want one of your computers to access the library on the Time Capsule, make sure it's mounted as a shared volume on your Desktop and then open iTunes and point it towards the library on the Time Capsule. If you want to use a smaller library on your computer, open iTunes and point it to the library on your Mac. I've never switched back and forth multiple times between multiple libraries, so you might check in the iPhoto or iTunes forums to see if any issues may arise from doing this repeatedly.
    -Doug

  • Looking for some info before deciding to install

    Normally, I would try to some searching before posting, but I've been pressed for time lately. Anyways, I'm looking for some info about Solaris before deciding to dive into installing it.
    1) Can it be installed on what's a currently triple-booting system without problems? In this case, Solaris would be installed onto half of the slave HD.
    2) How difficult and lengthy is the installation process?
    3) Does Solaris come with it's own unique bootloader? Can it recognize other operating systems? Is it possible to not install that bootloader and simply edit the configs for a preexisting GRUB to allow it to boot Solaris?

    The only way to get content into the Music app is via iTunes store downloads or syncing with itunes on a computer. You will need to find a third party media player such as VLC (whick integrates with DropBox and GoogleDrive, if that appeals to you).

  • Looking for some good Arc and Circle drawing pdf code.

    Hi I am looking for some suggestions on how to draw circles and arcs using PDF. My arcs have recently started to be drawn as chords in Adobe Reader 9.1.1. I am looking for example code o this nature (I know this is not circle or arc code this is just an example):
    b
    0 0 0 RG 0 0 0 rg
    1 w 98 -156 m 104 -154 l 104 -158 l 0 0 0 RG 0 0 0 rg
    b
    0 0 0 RG 0 0 0 rg
    1 w 398 -156 m 392 -154 l 392 -158 l 0 0 0 RG 0 0 0 rg
    b
    0 0 0 RG 0 0 0 rg
    1 w 98 -156 m 396 -156 l S
    BT /F1 10 Tf 243 -151 Td (1.5") Tj ET
    1 w 398 -196 m 392 -194 l 392 -198 l 0 0 0 RG 0 0 0 rg
    b
    i.e. actual PDF tokens.
    If you know of a website that feature such examples I would appreciate the URL too.
    Thanks

    Jem,
    Pardon me if I sound rude by suggesting that before you launch into an expensive printing job (which could result in disastrous consequences if you don't do it right) that you actually learn how to use the program first. You may also want to learn something about the offset printing process and how to prepare print jobs.
    Even many Illustrator novices know that there is no such thing as a background in Illustrator, in the sense that there is in Photoshop. You will need to PLACE your Photoshop background as a high resolution CMYK tiff in the provided template. That's the answer to your second question. I don't really understand your first question. Maybe someone else will. Are you simply asking, "where do I begin?" If so, then you REALLY REALLY need to read a book on how to use Illustrator. The Adobe Illustrator Classroom in a Book might be the place to start.
    "I'm pretty good with CPR. I'm helping a friend do his vasectomy and I already have all the equipment (scalpels, thread, etc.) I'm just having trouble figuring out where to cut."

  • Looking for some best practice regarding Content Administrator access

    Hi. I am looking for some best practice or rule of thumb from SAP or from different companies how they address Portal Content Administrator access in Production environment. Basically, our company is implementing portal to work with SAP BW.  We are on SP 9. Basically, I am trying to determine if we should have 1-2 Portal Content Administrator in Production with 24/7 access or we should limit them from NOT having this.  Can you share with me some ideas of what is right? and what is not?
    Should we have access in Production? Or Should we have this access but limited? By the way, our users are allow to Publish BI reports/queries into Production.

    Hello Michael,
    Refer to this guide about managing initial content in portal.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00bfbf7c-7aa1-2910-6b9e-94f4b1d320e1
    Regards
    Deb
    [Reward Points for helpful answers]

  • Looking for some RAW + JPEG Workflow suggestions

    I'm looking for some suggestions on how best to organize my workflow now that I've started shooting with RAW +JPEG. I previously shot only in RAW, but the time spent in post-production was killing me. I've realized that for 95% of my shots that already have the correct exposure, white balance, etc, a JPEG photo is really all I need and saves me a ton of time. I've become convinced that editing every single photo from a shoot in RAW is overkill. I want to have the RAW versions, however, to rescue that occasional great shot where I unfortunately miffed the settings.
    Through reading other posts here and experimenting, I've found that Aperture basically defulats to showing me only the imported RAW photos and that I need to click "New Version from Master JPEG" to see the JPEG version. This seems counterintuitive to the workflow I'd like to establish though. (i.e. I'm thinking it would be nice to see only the JPEG versions, and then only bring up the RAW version when the photo needs some serious correction).
    I suppose I could highlight the entire batch of imported photos and select "New Version from Master JPEG" and then sort through each RAW/JPEG stack, but I'm still hoping there's a less cumbersome way. Anyone out there have any good workflow suggestions for this issue? I'm curious how other people out there deal with this issue in their workflow.
    Thanks in advance!
    Message was edited by: Nate Cannon

    Try this - I do this as a matter of course:
    -select all of the photos after importing them into a project
    -create a new album from selection/call it JPG
    -with all of the images still selected create new version from master JPEG. all of these should now be the album pick
    -close all stacks, the JPEG will be the one showing up on top for that album.
    RB
    More here: [Aperture RAW+JPG|http://photo.rwboyer.com/2009/01/14/aperture-2-quick-tip-shooting-rawjp g>

  • Looking for some info, Creative is not much help.

    Looking for some info, Creative is not much help. Ok, right now I have an Audigy 2 ZS Platinum. It can use the digital inputs to decode either Dolby Digital, DD EX, DTS, and DTS ES to the analog speaker outputs. (Also a 5. setup.)
    I recently built a new PC, and would like to replace the sound card, but I use that feature (as well as some others). Seeing how Creative doesn't want to easily display the capabilities of there cards, I would like someone to let me know what card will allow the fallowing in Windows XP, Vista, and theoretically Windows 7.
    Hardware decoding of Dolby Digital, DD EX, DTS, and DTS ES and allow a proper 5. playback through analog speakers.
    Recording of whatever is playing out of the the speakers. The recording selection is labeled "What U Hear")
    The reasons behind me wanting to buy a new card are simply that I would prefer to run it through PCI-Express, and have full compatibility at the release of Windows 7 without any loss of features I need. From what I can tell, if things work in Windows Vista they will work in [email protected]

    All I can say to you (someone correct me if I'm wrong) is that Xtremegamer's doesn't decode DD/DTS via hardware with official drivers (altough they're capable of - all X-Fi are capable of decoding). XtremeMusic does the job with official drivers. I don't know the rest of the models. Someone adds [email protected]

  • Looking for some one who can help me in SUN IDM

    Hi Friends,
    I am looking for some one who can help me to learn sun IDM. Off couse I will pay for your time.
    I can be reached at [email protected]
    Please let me know if you have some time
    Thx

    Hi Zebra,
    I really appreciate your reply. I would like to discuss out of this forum so that no one here annoyed with our newbie questions. Please send me email as I listed earlier to discuss best ways. I send email to Andy to join us.

  • Looking for a way to switch views using Javascript

    Hi ! I'm currently studying Acrobat 3D. <br /><br />I've got a PDF document with a 3D Annotation, which was imported from a U3D file. I defined 3 views : "initial", "front" and "top".<br /><br />My problem is that I'm looking for a way to switch views using Javascript. <br /><br />In fact, when I list cameras using the following code, I only get one camera called "DefaultView". So my question is : where has my "initial", "front" and "top" views been ? Is there a way I can switch between them using Javascript ?<br /><br />for(i=1;i<scene.cameras.count;++i)<br />     {<br />          Cam = scene.cameras.getByIndex(i);<br />          <br />          console.println("camera " + i + " : " + Cam.name);<br />     }<br /><br />Thank you very much in advance.<br /><br />françois

    Are the dates on these entries correct??!! Doesn't seem like it. Anyway, just in case, here's some code to help:
    //=========================================================
    backgrounder = new RenderEventHandler();
    backgrounder.onEvent = function(event)
    runtime.removeEventHandler(this);
    canvas = event.canvas;
    background = canvas.background;
    keyer = new KeyEventHandler();
    keyer.onEvent = function(event)
    switch (event.characterCode)
    case 49:
    cam = scene.cameras.getByIndex( 0 );
    canvas.setCamera( cam );
    break;
    case 50:
    cam = scene.cameras.getByIndex( 2 );
    canvas.setCamera( cam );
    break;
    case 51:
    cam = scene.cameras.getByIndex( 3 );
    canvas.setCamera( cam );
    break;
    runtime.addEventHandler( keyer );
    runtime.addEventHandler(backgrounder);
    //inform user
    console.println("Use the 1,2,3 Keys to toggle between cameras");
    //===============================================

  • Looking for a way to programmatically set the visible portion of the front panel when a subVI opens

    I am looking for a way to programmatically set the visible portion of the front panel when a subVI opens.  Haven't found any posts that relate, but I'm not sure how to ask the right question.  To be clear, I want to write a helper VI to go through a list of subVIs to make sure the background images are all in the same place when their respective subVIs open.  I hate manually playing with scroll bars before I save each of the VIs...  I'm figuring I need to find the top/left location of the background image (know how to do this already) and then set a VI FP property to  these values or some offset, but I can't find the relevant property. FP:run-timeposition:custom looked promissing, but only affects the location of the window, not the area of the front panel the window is displaying.
    Solved!
    Go to Solution.

    Cool.  Getting closer.  The way I implemented your suggestion affects the subVI only if it is open.  I can use this to do what I'm after, perhaps putting the code into each subVI.  Maybe open all subs, run the helper, and save.    Seems like I'm missing the elegant version...
    My proof of concept code:

  • Looking for best way to filter status or meter data from differently formatted text.

    With the product we design we are able to communicate via RS-232 ports. What I'm trying to do is filter out the data that is given by multiple differnt types of products that will give similar data back, but in a differnt format. Such that in a status command I'm looking for everything to be in a non failed state. But some items will show warning, failure, #.##w(for warning), or #.##f (for fail). But the format of each product is different. Also for a meter command I'm looking for a way to filter out just the numeric value for each phase amplitude, but once again the format will be different for each product. I have been able to pull this data out easy enough for an individual product but not on a wide product range with the same VI.

    "Service is not available at this time
    Try back later"
    Bye...
    CC
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

Maybe you are looking for