From: plassy <pl...@us...> - 2010-02-10 18:54:18
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/client/sound In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv28730 Modified Files: SoundSystemFacade.java Log Message: used the Algebra.vecf(...) method to create vectors Index: SoundSystemFacade.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/client/sound/SoundSystemFacade.java,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** SoundSystemFacade.java 9 Feb 2010 22:38:15 -0000 1.16 --- SoundSystemFacade.java 10 Feb 2010 18:54:02 -0000 1.17 *************** *** 64,68 **** Sound sound = prepareSound(soundName); ! AudibleArea area = new AudibleCircleArea(new float[] { (float) x, (float) y }, radius / 2.0f, radius); Time myFadingTime = new Time(); --- 64,68 ---- Sound sound = prepareSound(soundName); ! AudibleArea area = new AudibleCircleArea(Algebra.vecf((float) x, (float) y), radius / 2.0f, radius); Time myFadingTime = new Time(); *************** *** 103,112 **** public void play(final String soundName, final double x, final double y, final SoundLayer soundLayer, int volume) { ! AudibleArea area = new AudibleCircleArea(new float[] { (float) x, (float) y }, 3, 18); playNonLoopedSound(soundName, area, soundLayer.ordinal(), volume); } public void play(final String soundName, final double x, final double y, int radius, final SoundLayer soundLayer, int volume) { ! AudibleArea area = new AudibleCircleArea(new float[] { (float) x, (float) y }, radius / 4.0f, radius); playNonLoopedSound(soundName, area, soundLayer.ordinal(), volume); } --- 103,112 ---- public void play(final String soundName, final double x, final double y, final SoundLayer soundLayer, int volume) { ! AudibleArea area = new AudibleCircleArea(Algebra.vecf((float) x, (float) y), 3, 18); playNonLoopedSound(soundName, area, soundLayer.ordinal(), volume); } public void play(final String soundName, final double x, final double y, int radius, final SoundLayer soundLayer, int volume) { ! AudibleArea area = new AudibleCircleArea(Algebra.vecf((float) x, (float) y), radius / 4.0f, radius); playNonLoopedSound(soundName, area, soundLayer.ordinal(), volume); } |