Commit Graph

658 Commits

Author SHA1 Message Date
Dave Hoover b473318b12 More import cleanups to go with r662, along with a little bit of foreaching, widening, etc.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@664 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-09-26 17:29:23 +00:00
Charlie Groves b481c48791 Only log native library loading errors if we attempt to use it
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@663 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-09-26 00:34:23 +00:00
Michael Bayne 8e69ff612e Some import cleanups from Dave.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@662 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-09-25 22:16:10 +00:00
Michael Bayne 8590d5650b Added createTipLabel().
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@661 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-09-25 00:54:54 +00:00
Charlie Groves 4b038fb8e1 Keep updating the tick time even if the sound manager is null
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@659 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-09-23 20:09:36 +00:00
Charlie Groves 62740fe546 Rather than trying to restrict the drift adjustment into a sane range, just stop applying it if it's huge or tiny.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@656 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-09-14 23:27:29 +00:00
Dave Hoover 1c864bf169 Javadoc warnings cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@655 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-09-12 18:04:58 +00:00
Michael Bayne e284b6cfc1 Unused import patrol.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@654 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-09-11 17:54:45 +00:00
Andrzej Kapolka 89f1f1938e Some changes to bring OpenAL code in line with OpenGL code: use a
Java object to represent each OpenAL object (listener, sources, 
and buffers) and delete the OpenAL object if the Java object is 
garbage-collected.  Added the full range of listener and source 
settings.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@653 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-09-10 23:55:25 +00:00
Andrzej Kapolka 5df6f85014 I don't think anything is using this. I'm moving it so that I
can extend it with Clyde-specific bits.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@652 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-09-10 00:50:46 +00:00
Andrzej Kapolka 5d3f025b7a Uncommented line after updating samskivert with the required
method.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@651 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-28 22:57:32 +00:00
Andrzej Kapolka adeab3efa2 Added methods to observe resource files for changes to their
last-modified timestamps (by manual polling).


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@650 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-26 23:12:13 +00:00
Charlie Groves 60d2febeda Allow streams and sounds to have their gain controlled individually as well as from the overall control
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@649 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-26 22:17:11 +00:00
Charlie Groves e4cdad7741 Start up streams on the sound queue thread and handle OpenAL barfing on startup
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@648 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-26 20:23:02 +00:00
Charlie Groves fff73d94cc Expose the SoundLoader
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@647 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-23 21:07:47 +00:00
Charlie Groves aa171bdd0e Expose sound types being enabled or disabled
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@646 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-23 19:42:54 +00:00
Charlie Groves 135b25516e Hey, let's not just completely break locking and unlocking sounds
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@645 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-22 02:38:57 +00:00
Charlie Groves 329bedd523 Choose a random sound from multi-option sounds in the SoundLoader when told to
play a particular key.
Set the gain on streams before returning them in addition to during each update.



git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@644 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-22 02:02:54 +00:00
Michael Bayne a2f5bd532e In this case I think the helper function reduces clarity rather than adds.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@643 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-21 18:30:01 +00:00
Charlie Groves c06de7d51f Add ogg streaming to OpenALSoundPlayer
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@642 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-21 05:33:19 +00:00
Charlie Groves 81a2d3d104 Clean up some possible nulls to quiet Eclipse
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@641 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-21 01:50:06 +00:00
Charlie Groves 99fc1ddbf7 Uhh, probably makes sense to actually hook the volume setting up to the sound manager
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@640 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-21 01:43:08 +00:00
Charlie Groves 0abacd42d3 Give OpenALSoundPlayer its own thread and queue to keep it from sharing with the EDT and possibly blocking
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@639 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-20 23:31:21 +00:00
Bruno Garcia 1bd35bd926 Flex 3.1 changes
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@638 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-20 22:31:30 +00:00
Ray Greenwell ac836c1cea New chat prompt from Bill.
Yeah, not very i18n.
We're just trying this out.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@637 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-20 22:24:42 +00:00
Michael Bayne 3faa619689 That should be tests not test.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@636 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-20 16:41:56 +00:00
Andrzej Kapolka e399b4dd15 Avoid pesky stack overflows.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@635 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-19 21:11:32 +00:00
Ray Greenwell b7e3f617f0 Fixed NPE found by Sigalig Whirligig.
I find this super annoying about flash:
    for (propName in objRef) { // this works fine if objRef is null
    if (propName in objRef) { // this NPEs if objRef is null


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@634 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-19 02:41:30 +00:00
Ray Greenwell cbe1f76632 It's the return of the chat prompter!
What's this white box on the control bar?
Now it says "type to chat" right in there when empty and unfocused.
My life is empty and unfocused, checking this in at 11:15 on friday night.
Things like this were tried in the past, and were always screwing up
and getting in the way of chatting or using the room. This is a skin,
not actual text, so it's more fuckup-proof.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@633 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-16 06:14:41 +00:00
Dave Hoover 754566d011 Pedanticism police.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@632 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-15 23:19:44 +00:00
Charlie Groves 8a3c6c8614 There's no way to genericize the Comparable while using the static
ClipBuffer.makeKey to create them, and non-genericized Comparables make the
Baby Jesus(Nate) cry, so just drop the pretense and use String.



git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@631 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-15 22:38:46 +00:00
Charlie Groves fb830e1693 Let Eclipse see AL
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@630 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-15 22:18:11 +00:00
Charlie Groves 4aefa977b4 Expose shouldPlay
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@629 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-14 19:02:17 +00:00
Charlie Groves 8febded3b3 Nip a compiler warning
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@628 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-14 18:29:09 +00:00
Michael Bayne 0e6c3ddbde Discontinue use of deprecated name.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@627 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-14 02:04:29 +00:00
Charlie Groves fbf539580e Readd a deprecated SoundManager that just extends JavaSoundPlayer to keep it around with its original name
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@626 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-14 00:51:34 +00:00
Charlie Groves fc32634412 Rename all the media.SoundManager stuff to variants on SoundPlayer to conflict
less with openal.SoundManager.



git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@625 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-14 00:50:17 +00:00
Michael Bayne 5c234af875 This needs to live in the openal package because all the OpenAL must not be
visible to things that don't want or care about OpenAL. Also, the openal
package is conditionally compiled, so this would have broken a Narya build that
didn't use the OpenAL libraries.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@624 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-13 22:49:34 +00:00
Charlie Groves e678d36262 Look at the big smart programmer using the library code instead of rolling his own, hacked-up shit
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@623 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-13 22:12:25 +00:00
Charlie Groves e4801b954f Pull the generic sound playing api from SoundManager up into
AbstractSoundManager and implement the actual sound playing with Java sound in
SoundManager and with OpenAL in OpenALSoundManager.  I left the SoundManager
name alone so nothing using it will need to change, but if nothing besides
yohoho is using it, I can refactor it to a more sane naming scheme.

Rip out all the music and alternative format stuff since it didn't work anyway.



git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@622 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-13 21:47:42 +00:00
Ray Greenwell 1ac283e675 Provide access to the send button.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@621 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-12 05:15:45 +00:00
Charlie Groves 7266e22085 Widening, modernization
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@620 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-11 04:34:50 +00:00
Ray Greenwell d657cf9f3b Convenience.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@619 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-08 23:30:43 +00:00
Ray Greenwell ce7a1c9cb8 Added getCellCount() and getCellAt(), inspired by SimpleGrid.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@618 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-08 23:11:40 +00:00
Ray Greenwell 5de8a3acf7 Added this, since we do it lots of places and it often looks like an error.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@617 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-08 23:11:16 +00:00
Ray Greenwell 51cf6b65be Make this optional, and not the default.
Turns out a bunch of shit makes the wrapper size a little bigger,
and some things seem to freak out when the wrapper has a size,
even when includeInLayout=false.
Flex you very much.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@616 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-08 03:46:11 +00:00
Ray Greenwell b08f508349 Oh, fuck that. Let's just set the explicit width/height, because if
something's never measured then it never gets these set.
This might break something.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@615 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-08 03:32:57 +00:00
Ray Greenwell 2e9282a3e5 Make our measured size the size of the thing we're wrapping.
Half the places we use FlexWrapper we do something like this anyway.
Note that you can still override this by setting the width and height
(which sets the explicitWidth, explicitHeight).


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@614 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-08 02:17:33 +00:00
Mike Thomas 05da95bbb4 Stop eclipse copying .svn dirs to output dir.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@613 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-07 23:09:00 +00:00
Michael Bayne 2cd65a9e76 Oops, tests output should go in tests/dist/classes.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@612 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-07 23:07:27 +00:00