[note] running multiple audio apps along with runescape

Hello everyone
For those battling with their java hogging the audio device *and for those who waste their time with runescape *included* *
Install PulseAudio and follow their instruction, be sure to READ ( and more if you are like me that can't survive without listening to music).
After installing and testing everything go to console type in:
$ padsp opera
Note I use opera, although I'm pretty sure most of you use firefox. Don't bother though, firefox 3.5 will hang on, been looking on how to fix it but not close enough.
if you run
$ pavucontrol
you should be able to see all the applications that uses audio routed onto it and be able to manipulate the volume of each one
Alright going back to the 'dadsp opera' step, go to runescape.org or whatever site that contains java mini games or application that uses audio, run it and you should be able to get it working. In the 'pavucontrol' it'd be marked as "OSS Emulation"
Along with this, be sure to check on libflashsupport-pulse (using 32 bit one personally)
Sorry if this wasn't the section, wanted to post this since it wasn't anywhere. I'd hope it be helpful to others
Cheers

Ok, fixed it!  Sorry if I wasted anyone's time.  I converted the struggling clips from aac to mp3 and now everything's good.

Similar Messages

  • How do I run multiple java apps in one JVM to reduce memory use?

    Hi all,
    I saw an article either on the web or in a magazine not too long ago about how to "detect" if the app is already running, and if so, it hands off the new instance to the already running JVM, which then creates a thread to run the Java app in. As it turns out, my app will be used in an ASP environment, through Citrix. We may have as many as 50 to 100 users running the same app, each with their own unique user ID, but all using the same one server to run it on. Each instance eats up 25MB of memory right now. So the question is if anybody knows of a URL or an app like this that can handle the process of running the same (or even different Java) apps in one JVM as separate threads, instead of requring several instances of the JVM to run? I know this article presented a fully working example, and I believe I know enough to do it but I wanted ot use the article as a reference to make sure it is done right. I know that each app basically would use the same one "launcher" program that would on first launch "listen" to a port, as well as send a message through the port to see if an existing launcher was running. If it does, it hands off the Java app to be run to the existing luancher application and shuts down the 2nd launching app. By using this method, the JVM eats up its normal memory, but each Java app only consumes its necessary memory as well and doesn't use up more JVM instance memory.
    Thanks.

    <pre>
    import java.util.Properties;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.lang.reflect.Method;
    import java.lang.reflect.InvocationTargetException;
    import java.util.Enumeration;
    import java.util.NoSuchElementException;
    public class RunProg implements Runnable, Cloneable
    private String iProg;
    private String iArgs[];
    public static void main(String args[])
    new RunProg().main();
    // first step is to start main program itself
    private void main()
    Properties properties = System.getProperties();
    try
    properties.load(new FileInputStream("RunProg.properties"));
    catch(IOException e)
    System.setProperties(properties);
    int i = 0;
    System.out.println("enter main, activeCount=" + Thread.activeCount());
    while(true)
    String program = properties.getProperty("Prog" + i);
    if(program == null)
    break;
    StringTokenizer st = new StringTokenizer(program);
    String[] args = new String[st.countTokens() - 1];
    try
    RunProg rp = (RunProg)this.clone();
    rp.iProg = st.nextToken();
    for(int j = 0; st.hasMoreTokens(); j++)
         args[j] = st.nextToken();
    rp.iArgs = args;
    Thread th = new Thread(rp);
    th.setName("prog" + i + "=" + program);
    th.start();
    System.out.println("prog" + i + "=" + program + ", started");
    catch(CloneNotSupportedException e)
    System.out.println("prog" + i + "=" + program + ", can't start");
    i++;
         System.out.println("end of main, activeCount=" + Thread.activeCount());
    // next step is to start all others one by one
    public void run()
    try
    Class c = Class.forName(iProg);
    Class p[] = new Class[1];
    p[0] = String[].class;
    Method m = c.getMethod("main", p);
    Object o[] = new Object[1];
    o[0] = iArgs;
    m.invoke(null, o);
    catch(ClassNotFoundException e)
    System.out.println(iProg + "ClassNotFoundException");
    catch(NoSuchMethodException e)
    System.out.println(iProg + "NoSuchMethodException");
    catch(InvocationTargetException e)
    System.out.println(iProg + "NoSuchMethodException");
    catch(IllegalAccessException e)
    System.out.println(iProg + "NoSuchMethodException");
    System.out.println(Thread.currentThread().getName() + ", ended");
    System.out.println("exit run, activeCount=" + Thread.activeCount());
    // setup SecurityManager to disable method System.exit()
    public RunProg()
         SecurityManager sm = new mySecurityManager();
         System.setSecurityManager(sm);
    // inner-class to disable method System.exit()
    protected class mySecurityManager extends SecurityManager
         public void checkExit(int status)
              super.checkExit(status);
              Thread.currentThread().stop();
              throw new SecurityException();
    * inner-class to analyze StringTokenizer. This class is enhanced to check double Quotation marks
    protected class StringTokenizer implements Enumeration
    private int currentPosition;
    private int maxPosition;
    private String str;
    private String delimiters;
    private boolean retTokens;
    * Constructs a string tokenizer for the specified string. All
    * characters in the <code>delim</code> argument are the delimiters
    * for separating tokens.
    * <p>
    * If the <code>returnTokens</code> flag is <code>true</code>, then
    * the delimiter characters are also returned as tokens. Each
    * delimiter is returned as a string of length one. If the flag is
    * <code>false</code>, the delimiter characters are skipped and only
    * serve as separators between tokens.
    * @param str a string to be parsed.
    * @param delim the delimiters.
    * @param returnTokens flag indicating whether to return the delimiters
    * as tokens.
    public StringTokenizer(String str, String delim, boolean returnTokens)
    currentPosition = 0;
    this.str = str;
    maxPosition = str.length();
    delimiters = delim;
    retTokens = returnTokens;
    * Constructs a string tokenizer for the specified string. The
    * characters in the <code>delim</code> argument are the delimiters
    * for separating tokens. Delimiter characters themselves will not
    * be treated as tokens.
    * @param str a string to be parsed.
    * @param delim the delimiters.
    public StringTokenizer(String str, String delim)
    this(str, delim, false);
    * Constructs a string tokenizer for the specified string. The
    * tokenizer uses the default delimiter set, which is
    * <code>"&#92;t&#92;n&#92;r&#92;f"</code>: the space character, the tab
    * character, the newline character, the carriage-return character,
    * and the form-feed character. Delimiter characters themselves will
    * not be treated as tokens.
    * @param str a string to be parsed.
    public StringTokenizer(String str)
    this(str, " \t\n\r\f", false);
    * Skips delimiters.
    protected void skipDelimiters()
    while(!retTokens &&
    (currentPosition < maxPosition) &&
    (delimiters.indexOf(str.charAt(currentPosition)) >= 0))
    currentPosition++;
    * Tests if there are more tokens available from this tokenizer's string.
    * If this method returns <tt>true</tt>, then a subsequent call to
    * <tt>nextToken</tt> with no argument will successfully return a token.
    * @return <code>true</code> if and only if there is at least one token
    * in the string after the current position; <code>false</code>
    * otherwise.
    public boolean hasMoreTokens()
    skipDelimiters();
    return(currentPosition < maxPosition);
    * Returns the next token from this string tokenizer.
    * @return the next token from this string tokenizer.
    * @exception NoSuchElementException if there are no more tokens in this
    * tokenizer's string.
    public String nextToken()
    skipDelimiters();
    if(currentPosition >= maxPosition)
    throw new NoSuchElementException();
    int start = currentPosition;
    boolean inQuotation = false;
    while((currentPosition < maxPosition) &&
    (delimiters.indexOf(str.charAt(currentPosition)) < 0 || inQuotation))
    if(str.charAt(currentPosition) == '"')
    inQuotation = !inQuotation;
    currentPosition++;
    if(retTokens && (start == currentPosition) &&
    (delimiters.indexOf(str.charAt(currentPosition)) >= 0))
    currentPosition++;
    String s = str.substring(start, currentPosition);
    if(s.charAt(0) == '"')
    s = s.substring(1);
    if(s.charAt(s.length() - 1) == '"')
    s = s.substring(0, s.length() - 1);
    return s;
    * Returns the next token in this string tokenizer's string. First,
    * the set of characters considered to be delimiters by this
    * <tt>StringTokenizer</tt> object is changed to be the characters in
    * the string <tt>delim</tt>. Then the next token in the string
    * after the current position is returned. The current position is
    * advanced beyond the recognized token. The new delimiter set
    * remains the default after this call.
    * @param delim the new delimiters.
    * @return the next token, after switching to the new delimiter set.
    * @exception NoSuchElementException if there are no more tokens in this
    * tokenizer's string.
    public String nextToken(String delim)
    delimiters = delim;
    return nextToken();
    * Returns the same value as the <code>hasMoreTokens</code>
    * method. It exists so that this class can implement the
    * <code>Enumeration</code> interface.
    * @return <code>true</code> if there are more tokens;
    * <code>false</code> otherwise.
    * @see java.util.Enumeration
    * @see java.util.StringTokenizer#hasMoreTokens()
    public boolean hasMoreElements()
    return hasMoreTokens();
    * Returns the same value as the <code>nextToken</code> method,
    * except that its declared return value is <code>Object</code> rather than
    * <code>String</code>. It exists so that this class can implement the
    * <code>Enumeration</code> interface.
    * @return the next token in the string.
    * @exception NoSuchElementException if there are no more tokens in this
    * tokenizer's string.
    * @see java.util.Enumeration
    * @see java.util.StringTokenizer#nextToken()
    public Object nextElement()
    return nextToken();
    * Calculates the number of times that this tokenizer's
    * <code>nextToken</code> method can be called before it generates an
    * exception. The current position is not advanced.
    * @return the number of tokens remaining in the string using the current
    * delimiter set.
    * @see java.util.StringTokenizer#nextToken()
    public int countTokens()
    int count = 0;
    int currpos = currentPosition;
    while(currpos < maxPosition)
    * This is just skipDelimiters(); but it does not affect
    * currentPosition.
    while(!retTokens &&
    (currpos < maxPosition) &&
    (delimiters.indexOf(str.charAt(currpos)) >= 0))
    currpos++;
    if(currpos >= maxPosition)
    break;
    int start = currpos;
    boolean inQuotation = false;
    while((currpos < maxPosition) &&
    (delimiters.indexOf(str.charAt(currpos)) < 0 || inQuotation))
    if(str.charAt(currpos) == '"')
    inQuotation = !inQuotation;
    currpos++;
    if(retTokens && (start == currpos) &&
    (delimiters.indexOf(str.charAt(currpos)) >= 0))
    currpos++;
    count++;
    return count;
    </pre>
    RunProg.properties like this:
    Prog1=GetEnv 47838 837489 892374 839274
    Prog0=GetEnv "djkfds dfkljsd" dsklfj

  • 2nd Try: Please Help : UIX : Not able to use messageFileUpload along with m

    UIX : Not able to use messageFileUpload along with messageChoice
    I used messageFileUpload UIX element and associated upload button to fileupload servlet. This servlet just captures the file and put it in desired location. This works just fine.
    My client wanted me to add another choice filed on UI. I used messageChoice. I named the field as fileType. All the options have name and value populated but when I submit the form servlet is reading fileType as NULL.
    I am not sure what's happening. Please let me know how should I send file handle as well fileType ?
    Thanks,
    Linda

    What exactly are you expecting this to do for you?
    Forall is designed to process batches of DML to prevent context switching from PL/SQL to SQL.
    Has no relevance for what you are trying to do.
    If you don't want to call the procedure multiple times, you need to rewrite it to passs the cursor to the function, then have the function process all the records.
    Carl

  • After updating to Firefox5.1, Nvidia kernal mode driver frequently "not responding & crashed then recovered", along with crashing of the Firefox browser.

    After updating to Firefox5.1, Nvidia kernal mode driver frequently "not responding & crashed then recovered", along with crashing of the Firefox browser.

    I have the same problem. I just upgraded to Win 7, no problems. Then I upgraded to FF 4.0, and I kept getting Nvidia Video Card crashes. I always undo my last computer change/install when something like this happens, so I immediately uninstalled 4.0, and went back to my older version of Firefox. No problems ever since.

  • I m working in an organization where web-sense is installed to block all irrelevant sites, i have installed itunes but it does not run a window pops up with message 'itunes is not connected to the network' can anyone help me out?

    i m working in an organization where web-sense is installed to block all irrelevant sites, i have installed itunes but it does not run a window pops up with message 'itunes is not connected to the network' can anyone help me out?

    There's a whole lot to read in your post, and frankly I have not read it all.
    Having said that, this troubleshooting guide should help:
    http://support.apple.com/kb/TS1538
    In particular, pay attention to the mobile device support sections near the bottom, assuming you have already done the items above it.

  • I can not make an in-app purchase with my new debit card

    I can not make an in-app purchase with my new debit card

    go to settings/itunes & app store tap on the ID  and then view account, log in  and have a look at payment information to see available payment options

  • Can not run multiple firefox windows with version 4

    After the upgrade to FF4 the problem started happening. In ver 3 I used the profile manager and was able to run 2 firefox windows at the same time with no problems in Windows 7.
    Now when I try to do this with version 4, one firefox window errors out with 'firefox stopped working'
    I thought it was due to an incompatible add on or something, so I did a complete program removal, rebooted, cleaned the registry and removed all folders that firefox put on my system. The problem continues.

    You can only run multiple version at the same time if the next version is started with the -no-remote switch added to the command line in the desktop shortcut.
    "C:\Program Files\Mozilla Firefox XX\firefox.exe" -no-remote -P
    * http://kb.mozillazine.org/Opening_a_new_instance_of_Firefox_with_another_profile
    * http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox

  • How to package resource files for iPad app along with ipa file

    Hello,
    I am developing an app for iPad in Flash Builder 4 and Packager for Iphone.
    I want to keep my xml-asset files local to the app. When I run my app in flash builder, I load the resources locally.
    When I upload the same onto iPad, I need to package the resource files along with the ipa file.
    I tried compiling the air-project with "-include-file" compiler option, but in vain.
    Any help?
    Tanu

    You can read through the resources documentation for iOS here:
    http://help.adobe.com/en_US/air/extensions/WSf268776665d7970d-2e74ffb4130044f3619-7ff8.htm l
    Of particular interest is the line:
    "3. It moves the resource files to the top-level directory of the application."
    So not sure if you are using an ant build script or whatever to build your ANE, but as long as you place these json files into the folder with your library when you build the ANE, these will end up getting copied to the top-level directory of the application when an application is built using this ANE.
    This is exactly how I include an iOS .bundle of resources along with a .a in an ANE and it works fine. Nice clean packaging when distributing the ANE too.

  • Is there a way to open powerpc installer in Mavericks to just install library files (not run power pc app)?

    Hello, I was looking to install some files from a power pc program.  However, I have osx x mavericks.  I know the deal, since snow leopard apple swicthed to intel processors.  I was wondering since I only need to install files and not install and run a powerpc  app ,is there any way I can get the installer open to grab these files that I need?  I just need the files, not to run the program, there has to be a way around this without having to run a program like paralells or to run a dual boot with leopard on another drive?
    I'm trying to run a music plug in instrument program in Logic and I have everything installed except for the actual sound libraries wich need to be installed off this power pc installer.  I went to the companies website and downloaded and installed all of the latest updates. I then ran a report which is telling me that I just need to install the missing library files (on the powere pc installation).  Which I find confusing since I thought the whole point of the update i nstall was a way around that?  Any help would be appreciated, thanks for your time.
    Mike

    MikeThomasmusic wrote:
    ...there has to be a way around this without having to run a program like paralells or to run a dual boot with leopard on another drive?
    In my experience advising Logic users, depending upon the version of Logic and the model Mac you are using, if your Mac will boot from Snow Leopard, you can install Logic and all of its plug-ins in Snow Leopard and then upgrade to Mavericks.

  • Running multiple java apps simultaneously, each using a different jre.

    I have a situation where I have 3 or 4 applications (and one applet) that were built over time, each with a different version of the jdk (ranging from 1.2.2.005 to 1.3.2). I need to know of a way (and it must exist) to run each of these applications on the same machine, and at runtime, have each application (or applet) run with its respective version of the jre. Certainly, one could change some source code and make all programs compatible with a particular jre, but that doesn't solve my problem if a new app is built with a new version of the jdk down the road. Currently, each runs fine by themselves, but if I try to run them together as different processes, some won't do anything because the default jre may not be what it needs. Would the Java Plug-in software have a role to play in this? Is there a way to specify (link) which application should use which jre?
    P.S. These applications (right now) don't have to interact or interface in any way. I just need to have them all running as separate processes on the same machine and be able to jump from one to the other.

    However ... if you have the programs running in Java1.x, I
    wouldn't recommend to let it run under Java 1.y; atleast
    not without thorough testing.I do it all the time and have not had a problem. I'm
    currently using JDK 1.4 beta 3 and I regularly run a
    Java application written with JDK 1.1.
    It sounds like the programs you are running are
    relying on behavior that is not guaranteed. If that
    behavior changes in a later version, it can break your
    program. Program to the contracts provided by other
    classes and packages, and you should have few or no
    problems.I guess you are right. Maybe you can help me with the following problem (this is off this topic, I know): I have Swing JDK 1.2 and Swing from JDK 1.3. I have to register keys on components.
    In JDK 1.2 I can use registerKeyBoardAction, in JDK 1.3 I have to use input maps and action maps. Both solutions only work with certain JDK. What I did was writing code which detects the java version and takes the appropriate action to register the keys. To make the thing compile in 1.2, I have to use reflection for the input/action map methods, because they are only available in 1.3.
    Any idea how to solve this more elegantly ?

  • Cron job not running - script uses rsync, ssh (with id_rsa)

    Does anyone know how to get cron to run a rsync/ssh script which uses id_rsa for passwordless logins?
    I have a backup script I have slaved for months over that works wonderfully when running it from the command line.
    It uses rsync and connects with SSH (passwordless using ssh keys). I have setup id_rsa and id_rsa.pub for passwordless logins (this is my user account, and connects using root@ to the server)
    As stated all works find when run from the command line. But when I setup a cron job to run this file (exact same line I run from the command line) it does not execute. Actually, it does run, as I have an email notifiction which sends to me. It is just the rsync/ssh part that does not run.
    I have spent days and days trying to figure it out. No error messages occur, nothing.  Took me a while to find out cron is emailing the user account on Lion the messages (not to a proper email address).
    The error shows a permission denied, which I believe to be the cron user cannot use the id_rsa/ssh connection.
    Cron is running the script as my user, the same I use on the command line. I even tried copying the id_rsa to the root user .ssh folder in case cron is running as root but that does not work either.
    So does anyone know how to get cron to run this rsync/ssh script which used id_rsa for passwordless logins?
    Thanks a lot

    YES! Got it working, finally!
    So the issue is indeed cron/launchd not being able to access the ssh-agent which holds the key.
    So this is the solution...
    Download keychain for Mac:
    http://www.funtoo.org/wiki/Keychain
    Then once its installed and configured, the script to run needs this added to the top:
    eval `keychain --noask --eval id_rsa` || exit 1
    Note I am using id_rsa whereas keychains instructions refer to id_dsa so I just changed it and it works OK.
    When the script runs the first time it asks for the key password. Then it works from then on.
    What I do not know yet is will I need to re-enter the password when I logoff/logon again. That will cause an issue as I auto restart the Mac every day which means if I am off for a few days backup will stop (can you see the madness in this issue!).

  • Youtube not running in firefox, but works with internet explorer

    when i open you tube in Firefox, it does not run the videos. however the same runs good with internet explorer. a few weeks back the videos were running quite good with Firefox also.

    Hi,
    You can try to '''Clear Now''' the '''Cache''', '''Cookies''', and '''Site Preferences''' in '''Tools''' ('''Alt''' + '''T''') > [https://support.mozilla.org/en-US/kb/Clear%20Recent%20History Clear Recent History] as well as '''Delete all''' in the Windows '''Control Panel''' > '''Flash Player''' > '''Storage''' tab.
    If you have security software (antivirus, firewall etc.) installed, you can try deleting all existing instances of Firefox and its related files in all the different configuration areas/modules of the security software. Instead create new allow/trusted rules for Firefox + its related processes. Even otherwise the security software may also ask again when Firefox is started and you can try to allow/trust at that time. Please see [https://support.mozilla.org/en-US/kb/Firewalls this].
    [http://kb.mozillazine.org/Firewalls AV/Firewalls Configuration]

  • Not showing up on App Store with more than 200k downloads in last three days?

    My app Flying Bieber HD has gotten more than 200k downloads since our launch on Saturday, but we are not showing up on App Store ranks at all.  We got so many downloads through social media promotions and we got Bieber's entourage to promote it.  Are we too new to show up in there?  When will we be up there?

    Check support for developers at developer.apple.com

  • "Rewire Connection Still Active" - But I'm Not Running Any Rewire Apps?

    GarageBand '08 is working great, but when I try to quit, I get a dialog box saying "Rewire Connection Still Active. Close the Rewire application before closing Garage Band." But, I'm not running any Rewire applications.
    How can I fix this?
    Thanks in advance to all for any info.

    Welcome to the forums.
    1. You're in the iTunes for Mac forum - there is also iTunes for Windows forums.
    2. Any incomplete downloads are marked as such and should still be available for completion.
    3. Explorer is not relevant - all downloads come direct from the iTunes Music Store.
    4. You can contact Apple from their website if you are getting download problems and being charged
    5. Have a look here : http://forums.cnet.com/5208-6142_102-0.html?threadID=254032
    (avoid wifi and simultaneous downloads if possible).

  • Why will my I pad 2 not connect to the App Store with a valid password, or play you tube, or I player?

    My I pad 2 will not connect to the App Store suddenly even though the log in details have not changed.
    It will also now not play anything in I player, or you tube?
    Help! Please!

    could it be because it does not have a connection to the Internet ?

Maybe you are looking for

  • JavaScript:  Help with IF Statement

    I am not familar with Java and I have been fighting with this IF statement and I cannot get it to work.  I am sure it is something fairly basic.  Can anyone help?  I have seeminly tried everything.  In this example below I am trying to check if the d

  • Terrible Battery Life - New MacBook Pro

    OK, 4 weeks into my New MacBook Pro. MacBook Pro 15", 8GB Ram, 512GB SSD (Lion O/S as shipped). I know there are other threads but here's the full summary from my perspective. Prior machine was MacBook Pro 17", 4GB Ram and 256 GB Hard Drive (Upgraded

  • I am using illustrator CS5. How can I create a svg file with rollover to show one more layer?

    Actually i used illustrator to draw a map, I want to rollover a selected area to show one more layer within the same SVG which include information about that area.

  • Photo correction: too light and too dark

    I have imported ~ 2,000 photos into Lightroom 5.6.  The files are PNG format from MS Picture It.  Some photos are too light and some are too dark. I tried synchronizing the metadata thinking this would make the photos more alike.  Some are improved,

  • Magic Extraction in Task Bar

    My problem is, that I don`t have the Magic Extraction in the Task Bar. How do I get the Magic Extraction.