Commit Graph

34 Commits

Author SHA1 Message Date
Ray J. Greenwell 48fc959b3c Actually, 44100 matches our audio samples, let's keep the old defaults.
Easy enough to upgrade if you need it.
2026-05-10 18:35:30 -07:00
Ray J. Greenwell 4b3ab93baa Use modern API to read all the bytes rather than buggily hand-rolling it. 2026-05-10 18:33:59 -07:00
Ray J. Greenwell 908c16569b Let's try moving to modern 48kHz / 60Hz / unsyncd configuration? Add args.
We should bump to at least 21 here so I can use "record" classes.
2026-05-10 15:59:05 -07:00
Ray J. Greenwell 3e28d60d9a Restore original 44100 / 15 initialization parameters to sound...
Could also modernize them but trying this first...
2026-05-09 20:18:52 -07:00
Ray J. Greenwell c77177368c Bug fix: actually use the available value computed a line above. 2026-05-09 20:18:39 -07:00
fourbites fc0beb238c Use fixed zoom levels for more stable rendering 2025-09-20 01:45:28 +02:00
fourbites 6da7fa249b Fix zoom scaling artifacts 2025-08-27 17:31:39 +02:00
fourbites 45afe38ccc Fix copyArea to work with zoom 2025-08-27 17:19:10 +02:00
fourbites 5bc8ff224c Add zoom support to VirtualMediaPanel 2025-08-27 16:30:09 +02:00
Michael Bayne 623ee0d20e Javadoc doesn't like emails these days. 2025-08-08 10:38:45 -07:00
Michael Bayne 8fdc7431de Upgrade OpenAL bits to LWJGL 3.
I didn't find a good way to determine whether OpenAL had already been
initialized. So if we need this whole "sharing AL with something else in the
same JVM" business, we'll need to find another way to do it.
2025-08-08 10:36:12 -07:00
Michael Bayne f1441a8be6 Remove ancient unsafe native code.
All Javas have reasonably fine grained Thread.sleep these days, and we no
longer need to set our pid or gid or temporarily disable GC.
2025-02-10 10:15:32 -08:00
Michael Bayne 8711ee09d2 Turns out YPP does need getLocalePrefix(). :) 2025-02-05 10:59:21 -08:00
David Hoover 9e87bc3519 Clear out the background when building a trimmed tileset.
Otherwise it's filled with some random color (palette entry
0?) and there are splotches of that filling the gaps between
trimmed tiles.
2025-02-05 10:59:21 -08:00
David Hoover ddf07dc905 Support fancier packing of trimmed tilesets.
By default, it still does the same thing, but now you
can pass in a fancier packer.

Provided a SLIGHTLY fancier one that's still pretty dumb and
wasteful, but allows row wrapping instead of gluing everything
together into one super wide image; I've got some that otherwise
wind up SO insanely wide that it causes problems decoding them.
2025-02-05 10:59:21 -08:00
Jamie Doornbos bce83d858e Revamped the way TileSetBundler mogrifies and writes out bundles
Introduced a Writer class to hold all the options to the createBundle method and help clarify
things. This also ended up being a convenient place to put the previous member variables since
they affect the process in pretty much the same way.

Got rid of DirectoryTileSetBundler. This had a mutated copy of a method from TileSetBundler,
that appeared to be missing some bug fixes. Anyway, it shouldn't be needed anymore, callers
can use a BundleWriter that is a directory.

Added an option for outputting tileset bundle metadata as json. This includes some
utility classes and the net.sf.json-lib dependency. This follows the same pattern
as some other tools only jars so should end up being ignored by production
applications.
2025-02-05 10:59:21 -08:00
Michael Bayne c80d59b316 Remove PerfTimer.
It uses the no longer available sun.misc.Perf API.
2025-02-05 10:59:21 -08:00
Ray J. Greenwell ed8ca989f0 Drive-by: Nix unused variable that's been hanging out since 2006.
The use of this variable has been commented out since this code became a
git repo in 2006. Crazy.
2025-01-20 11:45:00 -08:00
Ray J. Greenwell 829818ded4 Improve Colorization slightly.
Colorizations are not cached, and the root color values are recomputed
every time. We can share those.
Also added an accessor to read the already computed HSV values out
of a Colorization. I suppose I could just make it a public field
or return the array directly. The rootColor variable is already public.
DFU. But now the array will be shared by every instance from the same
classRecord, so it seems more important to make sure nothing goes wrong.
2018-10-15 10:18:44 -07:00
Ray J. Greenwell 145660bf0c Color.HSBtoRGB() will wrap hue for us.
It is documented that hue = hue - (float)Math.floor(hue);
It's pointless for us to check if it's over 1f.
2018-07-18 12:05:17 -07:00
Michael Bayne 084da3c549 Tick sprite in char sprite viz. 2017-08-19 07:54:55 -07:00
Michael Bayne 2197292581 Share the OpenAL context if one is already created. 2017-07-18 19:48:26 -07:00
Michael Bayne f2eaa55c35 Javadoc fixes. 2015-03-14 09:43:11 -07:00
Michael Bayne ebc91c015f Added a little test of the JSON writer.
I'm also using this test to do the conversions I need, since I just need our
two test scenes in JSON format.
2013-01-23 15:40:09 -08:00
David Hoover c0cb0ffcfd Header update.
Point to where things live on github these days.
2012-11-01 11:30:44 -07:00
Ray J. Greenwell ee9a81512f Fix deprecation warning with move to new samskivert library. 2012-10-02 17:48:01 -07:00
Nathan Curtis d2dedd8e65 Another spot where a safer comparison is called for. 2012-08-16 11:47:38 -07:00
Nathan Curtis 5a1cc88744 Use a safe comparison instead of simple subtraction.
Vilya's ScoreAnimation sets its render order to Integer.MAX_VALUE; using this comparison method gets
the AbstractMediaManager's _media out of order when such values are used.
2012-08-07 17:43:41 -07:00
Ray J. Greenwell a1d60a685b Use File.separatorChar where it makes sense. 2012-03-30 11:12:50 -07:00
Ray J. Greenwell c7e80de26d Revert "Revert "Code formatting and method rearrangement.""
This reverts commit cc0c9c4e3e.
I'm reverting the reverting. I wanted these changes, just not
all that other -whateverthefuck- that piggybacked in.
2012-03-30 11:08:36 -07:00
Ray J. Greenwell cc0c9c4e3e Revert "Code formatting and method rearrangement."
This reverts commit 6f9daf6c97.
2012-03-30 11:06:13 -07:00
Ray J. Greenwell 7c182066ea Merge branch 'master' of github.com:threerings/nenya 2012-03-30 11:01:29 -07:00
Michael Bayne 09b907c3f4 Reheadered, minus (svn-only) $Id$. 2012-02-27 12:16:26 -08:00
Michael Bayne 5e2380eb24 Split Nenya into proper Maven submodules (same treatment Narya got). 2012-02-27 12:15:12 -08:00