mirror of
https://github.com/processing/processing4.git
synced 2026-02-02 21:29:17 +01:00
fix to psound2 to ignore gaincontrol errors, add linux stuff to faq,
run-expert fix
This commit is contained in:
1
build/windows/dist/run-expert.bat
vendored
1
build/windows/dist/run-expert.bat
vendored
@@ -10,6 +10,7 @@ set CLASSPATH=java\lib\rt.jar;lib;lib\build;lib\pde.jar;lib\core.jar;lib\antlr.j
|
||||
set PATH=java\bin;%PATH%
|
||||
|
||||
REM start javaw -ms128m -mx128m processing.app.Base
|
||||
start java -ms128m -mx128m processing.app.Base
|
||||
|
||||
set CLASSPATH=%SAVEDCP%
|
||||
set PATH=%SAVEDPATH%
|
||||
|
||||
@@ -77,8 +77,13 @@ public class PSound2 extends PSound {
|
||||
clip = (Clip) AudioSystem.getLine(info);
|
||||
|
||||
// seems that you can't make more than one of these
|
||||
gainControl =
|
||||
(FloatControl)clip.getControl(FloatControl.Type.MASTER_GAIN);
|
||||
try {
|
||||
gainControl =
|
||||
(FloatControl)clip.getControl(FloatControl.Type.MASTER_GAIN);
|
||||
} catch (Exception e) {
|
||||
System.err.println("Couldn't get gain control for this .wav file");
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
// This method does not return until completely loaded
|
||||
clip.open(ais);
|
||||
@@ -204,8 +209,12 @@ public class PSound2 extends PSound {
|
||||
* Set the volume with a value from 0 (off) to 1 (loudest).
|
||||
*/
|
||||
public void volume(float v) { // ranges 0..1
|
||||
float dB = (float)(Math.log(v)/Math.log(10.0)*20.0);
|
||||
gainControl.setValue(dB);
|
||||
if (gainControl != null) {
|
||||
float dB = (float)(Math.log(v)/Math.log(10.0)*20.0);
|
||||
gainControl.setValue(dB);
|
||||
} else {
|
||||
System.err.println("Cannot set the volume for this sound.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -8,7 +8,9 @@ X causing too much trouble to be stuck down in PFont
|
||||
X createFont crashes on verdana (win2k)
|
||||
X http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1115258282;start=0
|
||||
X made ceil(), floor(), and round() return ints instead of floats
|
||||
|
||||
X fix for PSound: Unsupported control type: Master Gain
|
||||
X just shuts off the volume control
|
||||
X http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1115467831;start=0
|
||||
|
||||
cleared out / completed in previous releases
|
||||
o fishwick bug with text() and shapes
|
||||
@@ -18,6 +20,26 @@ X go through and figure out what stuff to make public
|
||||
o depth testing of lines vs text is problematic
|
||||
o probably need to patch in an older version of the line code
|
||||
o use depth()/noDepth() to handle depth test
|
||||
X on exceptions, use die to just kill the applet
|
||||
X make the file i/o stuff work more cleanly
|
||||
X if people want to use their own file i/o they can do that too
|
||||
o this could also be contributing to the hanging bug
|
||||
X static applets need to be able to resize themselves on 'play'
|
||||
X figure out what to do with static apps exported as application
|
||||
X needs to just hang there
|
||||
o scripts (w/ no graphics) will need to call exit() explicitly
|
||||
o actually.. just override the default draw() to say exit()
|
||||
X may need a fileOutput() and fileInput() function
|
||||
X to take care of exception handling
|
||||
o or maybe scripts are just handled with a different method? (yech)
|
||||
o or maybe setup() can actually throw and Exception?
|
||||
o but that's inserted by the parser, and hidden from the user?
|
||||
o implement size(0, 0) -> just doesn't bother doing a frame.show();
|
||||
o too abstract, just have draw() call exit by default
|
||||
o so if nothing inside draw, just quits
|
||||
o make properly exit after things are finished
|
||||
o still some weirdness with thread flickering on the mac
|
||||
o and frenetic display updates on the pc
|
||||
|
||||
|
||||
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
|
||||
@@ -55,9 +77,6 @@ _ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Suggestions;action=
|
||||
_ would be cool if could sort w/o the sort class..
|
||||
_ meaning use reflection to sort objects, just by implementing a few methods
|
||||
|
||||
_ make a PException that extends RuntimeException but packages an ex?
|
||||
_ http://java.sun.com/docs/books/tutorial/essential/exceptions/runtime.html
|
||||
|
||||
_ don't do a loadPixels unless an updatePixels has completed
|
||||
_ tho this won't affect anything, since either it's an image buffer
|
||||
_ or it's the PGraphics object, which does an updatePixels() immediately
|
||||
@@ -80,6 +99,9 @@ The graphics library was formerly called Bagel.
|
||||
|
||||
CORE / PApplet
|
||||
|
||||
|
||||
1 _ make a PException that extends RuntimeException but packages an ex?
|
||||
1 _ http://java.sun.com/docs/books/tutorial/essential/exceptions/runtime.html
|
||||
1 _ is mousePressed broken with noLoop() or redraw()?
|
||||
1 _ check for what else inside PApplet should be static
|
||||
1 _ maybe catch RuntimeExceptions in the called sub-functions
|
||||
@@ -130,31 +152,12 @@ CORE / PApplet
|
||||
1 _ how to load external encoders/decoders
|
||||
1 _ placement of 100x100 items is odd
|
||||
1 _ happens with P3D and maybe also P2D?
|
||||
|
||||
|
||||
CORE - PApplet scripting
|
||||
|
||||
_ on exceptions, use die to just kill the applet
|
||||
_ make the file i/o stuff work more cleanly
|
||||
_ if people want to use their own file i/o they can do that too
|
||||
_ how to make a long setup() sleep so that things don't lock way up
|
||||
_ this could also be contributing to the hanging bug
|
||||
_ static applets need to be able to resize themselves on 'play'
|
||||
_ figure out what to do with static apps exported as application
|
||||
_ needs to just hang there
|
||||
_ scripts (w/ no graphics) will need to call exit() explicitly
|
||||
_ actually.. just override the default draw() to say exit()
|
||||
_ may need a fileOutput() and fileInput() function
|
||||
_ to take care of exception handling
|
||||
_ or maybe scripts are just handled with a different method? (yech)
|
||||
_ or maybe setup() can actually throw and Exception?
|
||||
_ but that's inserted by the parser, and hidden from the user?
|
||||
o implement size(0, 0) -> just doesn't bother doing a frame.show();
|
||||
o too abstract, just have draw() call exit by default
|
||||
o so if nothing inside draw, just quits
|
||||
o make properly exit after things are finished
|
||||
_ add exit() function to actually explicitly quit
|
||||
_ scripts will just require that people include exit at the end
|
||||
1 _ scripting issues
|
||||
1 _ how to make a long setup() sleep so that things don't lock way up
|
||||
1 _ add exit() function to actually explicitly quit
|
||||
1 _ scripts will just require that people include exit at the end
|
||||
1 _ fileInput() and fileOutput() may not agree with draw()
|
||||
1 _ can only be used inside of setup()?
|
||||
|
||||
|
||||
CORE / PApplet - main()
|
||||
@@ -447,6 +450,9 @@ CORE / PImage
|
||||
|
||||
CORE / PSound
|
||||
|
||||
1 _ Unsupported control type: Master Gain
|
||||
1_ what's actually causing this error?
|
||||
1 _ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1115467831;start=0
|
||||
1 _ duration as an internal param, not a function
|
||||
1 _ When a sound is finished playing,
|
||||
1 _ it should return to 0 so it can play again
|
||||
@@ -471,11 +477,9 @@ CORE / Documentation
|
||||
|
||||
CORE / Mac OS X
|
||||
|
||||
_ textMode(SCREEN) having issues
|
||||
_ textMode(SCREEN) having issues on Mac OS X
|
||||
_ seem to be problems with updatePixels() on the mac
|
||||
_ appears to run asynchronously
|
||||
_ still some weirdness with thread flickering on the mac
|
||||
_ and frenetic display updates on the pc
|
||||
_ little window showing up on macosx when running
|
||||
_ http://processing.org/discourse/yabb/YaBB.cgi?board=Proce55ing_software_bugs;action=display;num=1081284410
|
||||
_ flicker happening on osx java 1.4, but not 1.3:
|
||||
|
||||
7
todo.txt
7
todo.txt
@@ -5,8 +5,7 @@ X if codeCount > 1 externalRuntime = true, Sketch.java line 272
|
||||
X nah, just sticking with that, runs better
|
||||
X rev 87 on linux included a version of jikes built on redhat 7.3
|
||||
X check to make sure this still works on the fc3 box
|
||||
_ stick with the rh73/fc3 build, include instructions on the site
|
||||
_ maybe have the script test for jikes first?
|
||||
X stick with the rh73/fc3 build, include instructions on the site
|
||||
_ try test run, if it closes w/ an error, then show error
|
||||
X exceptions in other tabs not comunig through
|
||||
X http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1115415184;start=0
|
||||
@@ -30,6 +29,8 @@ X ignores colons for case statements
|
||||
X need to tie this to the parser instead
|
||||
X info about getting started with building processing
|
||||
X also re: what about eclipse? what about antlr?
|
||||
X run-expert.bat wasn't working properly
|
||||
X http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1115469263;start=0
|
||||
|
||||
_ runtime exceptions have stopped coming through (on pc only?)
|
||||
_ test with florian example for the exception stuff
|
||||
@@ -666,5 +667,7 @@ PLATFORMS / Mac OS X
|
||||
|
||||
PLATFORMS / Linux
|
||||
|
||||
1 _ have the shell script test for jikes first
|
||||
1 _ have it run jikes quickly, if it exits with an error, warn user
|
||||
1 _ some reports of it not quitting properly, but not confirmed
|
||||
1 _ splash screen
|
||||
|
||||
Reference in New Issue
Block a user