diff src/com/aurellem/capture/FixSettings.java @ 62:f5e52169f056

updated to work with new jme changes
author Robert McIntyre <rlm@mit.edu>
date Wed, 14 Dec 2011 17:43:52 -0700
parents
children
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/com/aurellem/capture/FixSettings.java	Wed Dec 14 17:43:52 2011 -0700
     1.3 @@ -0,0 +1,31 @@
     1.4 +package com.aurellem.capture;
     1.5 +
     1.6 +import jme3test.helloworld.HelloLoop;
     1.7 +
     1.8 +import com.jme3.app.Application;
     1.9 +import com.jme3.system.AppSettings;
    1.10 +
    1.11 +
    1.12 +/**
    1.13 + * jMonkeyEngine will save the settings used in previous runs.
    1.14 + * This can be especially frustrating when it saves the "Send" 
    1.15 + * AudioRenderer setting from running the a program that is 
    1.16 + * capturing audio.  This resets your settings to fix the problem.
    1.17 + * 
    1.18 + * if you get 
    1.19 + *  "Unrecognizable audio renderer specified: Send"
    1.20 + * run this program.
    1.21 + * 
    1.22 + * @author Robert McIntyre
    1.23 + *
    1.24 + */
    1.25 +
    1.26 +public class FixSettings {
    1.27 +
    1.28 +	public static void main(String[] ignore){
    1.29 +		Application app = new HelloLoop();
    1.30 +		AppSettings basic = new AppSettings(true);
    1.31 +		app.setSettings(basic);
    1.32 +		app.start();
    1.33 +	}
    1.34 +}