Commit Graph

  • ee72820b54 Ouch, I changed that to 25 a while back while testing, but we want 250. Ray Greenwell 2008-11-17 05:59:03 +00:00
  • 5161e49bd4 Wow, when you tell a sound to loop, the position just continues to increase, up past the duration. Seeking in those mode also causes it to get wiggy and freak out. So don't have flash loop it, but just loop it ourselves by autorewinding and playing again. Also, just autorewind and pause if not looping, which I had wanted to do anyway. Ray Greenwell 2008-11-17 05:51:20 +00:00
  • 8cd31c9564 Ah-ha. After testing id3 tags with 3 different mp3 files that all should have had id3 tags, and trying everything, I tried one more mp3 file: bingo. Added MediaPlayer.getMetadata() and a METADATA event. Contents of metadata vary by media being played and are open for interpretation by users of the player. FLV video returns their metadata object. MP3 audio returns id3 tags. Ray Greenwell 2008-11-16 17:11:35 +00:00
  • 9da0886afc Dammit! Id3 tags are not working at all. I'm checking the crossdomain.xml. Grr! Removed debugging. Ray Greenwell 2008-11-15 02:51:04 +00:00
  • 2b81e25445 - AudioPlayer interface extends MediaPlayer. - Mp3AudioPlayer implements AudioPlayer. Ray Greenwell 2008-11-15 02:21:51 +00:00
  • 3ce7fc7f6a More prepatory renaming and refactoring. Nothing of interest. Ray Greenwell 2008-11-14 21:43:33 +00:00
  • decb92fc08 Repackaging in preparation for refactor. Ray Greenwell 2008-11-14 21:29:34 +00:00
  • 0fdf0da9d5 Nixed debug logging. Ray Greenwell 2008-11-13 02:10:16 +00:00
  • 853b318a2c Cleanup. Since MediaContainer imports this, I've got half a mind to just reduce this simple player back down to play/pause and have MsoyVideoDisplay subclass this. Ray Greenwell 2008-11-13 00:40:38 +00:00
  • 6f82c8b7a9 As usual, flash sucks and the NetStream object notifies us when it has seeked, but reading the position value off the object returns the old position. If we wait 1 frame we get the updated value. Fuckers. Ray Greenwell 2008-11-13 00:39:46 +00:00
  • e92d57e315 Some warning cleanups, widening, and varargs logification. Dave Hoover 2008-11-12 18:45:13 +00:00
  • 9931cae098 Comments. Ray Greenwell 2008-11-12 18:34:03 +00:00
  • 59536d47ad Bugfix: stop the positionTimer when we unload. Ray Greenwell 2008-11-12 05:32:43 +00:00
  • f5e900eedd - Broke out creating the video UI into a method. - Bank on the video UI having sane width/height. Ray Greenwell 2008-11-12 05:26:58 +00:00
  • e4dd02746c Broke unloading the media out into its own method. Ray Greenwell 2008-11-12 02:48:19 +00:00
  • d7e607972d Out with the old. Ray Greenwell 2008-11-12 00:30:15 +00:00
  • b18ac89db9 Cleanup. Ray Greenwell 2008-11-12 00:29:59 +00:00
  • c4af53338c Rejigger component rendering order a bit so that individual components can have their own priority overrides, since unfortunately, not all male/familiars are created equal. Dave Hoover 2008-11-10 23:02:00 +00:00
  • 6294232dce Roll this back. You don't even want to see the unchecked-in code I also trashed. Too bad the bitchy comment about adobe goes too. Ray Greenwell 2008-11-10 20:54:56 +00:00
  • e14212f5b4 Add a way to set the HTML text. Oh yeah, links don't work unless the field is selectable. WHY? Carbomb adobe. Ray Greenwell 2008-11-10 20:16:44 +00:00
  • dcfc762d1f Added isRunning(). Michael Bayne 2008-11-08 00:11:00 +00:00
  • ab024a3054 Added isRunning(). Michael Bayne 2008-11-08 00:10:17 +00:00
  • b6f41f765e Autoplay FLVs, for now, like the old player did. Ray Greenwell 2008-11-06 20:09:32 +00:00
  • 361d5aeb61 Comment out the advanced controls, they're not ready for prime-time. Ray Greenwell 2008-11-06 20:09:17 +00:00
  • 6e7dbada64 Dragging the knob to seek. Works not-so-well with youtube. I'll revisit later... Ray Greenwell 2008-11-04 23:16:07 +00:00
  • 3ff4c5de51 Just redispatch Event.COMPLETE from our Loader. This fixes the AVRG loading button... Ray Greenwell 2008-11-04 23:15:10 +00:00
  • 1e33a90f14 Checkpoint: seeking, tweaking... no peeking! Ray Greenwell 2008-11-04 03:52:34 +00:00
  • cda3d6f94e Headless building for happy Mac development. Ray Greenwell 2008-11-04 01:40:56 +00:00
  • 343b24728c Tidied logging, including commenting out super-annoying unload messages. Ray Greenwell 2008-11-01 03:15:04 +00:00
  • 666999284e Use the new video player. Ray Greenwell 2008-11-01 03:10:45 +00:00
  • 8ee553c3e3 New video stuffs. - VideoPlayer is the interface to the video backend. - Adapted my old VideoDisplayer into a FlvVideoPlayer and the SimpleVideoDisplay frontend. Ray Greenwell 2008-11-01 03:10:21 +00:00
  • 7ac5d036de Dispatch a COMPLETE event when we finish loading media. Ray Greenwell 2008-10-31 00:10:46 +00:00
  • df7fdc5e81 Add tileToFull Charlie Groves 2008-10-29 01:11:57 +00:00
  • df41e4e849 Added createText() for conveniently creating a multiline text widget. Ray Greenwell 2008-10-27 23:42:03 +00:00
  • c420e540d6 New method to allow a command button to be activated, emulating a user click Jamie Doornbos 2008-10-27 22:13:45 +00:00
  • 8d4c46f3c3 Some widening/varargs logging/javadoc fixes. Dave Hoover 2008-10-27 21:54:28 +00:00
  • fbe0b18bb3 Bye bye log spam, hello once again readable client logs. Michael Bayne 2008-10-24 19:01:36 +00:00
  • 4c9ac3ad6f Use RandomUtil.getChance() Dave Hoover 2008-10-22 17:26:51 +00:00
  • e2e3243a29 Reinstate the mask cache. We were spending about half our scene time making masks Charlie Groves 2008-10-22 01:02:31 +00:00
  • b13728ac5f Wait for the call to wasResolved to call back about being abandoned as the scene panel is expecting that to be on the AWT thread Charlie Groves 2008-10-22 00:13:58 +00:00
  • 7fdedc30a3 ooo-style formatting and importing. Ray Greenwell 2008-10-17 22:07:50 +00:00
  • 1df26e8813 Added LoaderUtil, which has unload. Hmm, I'm not able to use unloadAndStop() yet. Perhaps I need to grab an even newer version of the flex SDK, so it's commented out for now. Ray Greenwell 2008-10-16 00:49:34 +00:00
  • a19690f205 Added countLayoutChildren(), which counts the children of a container that have includeInLayout = true. Ray Greenwell 2008-10-15 20:45:27 +00:00
  • fcf091b5c1 Allow the up and down arrow keys to traverse the command history, like we do in Java. Ray Greenwell 2008-10-14 21:25:37 +00:00
  • c0a22fdabb Line wrappery. Ray Greenwell 2008-10-14 21:24:50 +00:00
  • 1daf5c206b And of course, if I were thinking this morning, I would've rerun the organize imports thing before committing instead of just going "oh yeah, I've been having this stuff sitting around uncommitted for a while waiting on it to be blessed" and missing out on things that'd changed in the meantime. Dave Hoover 2008-09-26 17:35:27 +00:00
  • b473318b12 More import cleanups to go with r662, along with a little bit of foreaching, widening, etc. Dave Hoover 2008-09-26 17:29:23 +00:00
  • b481c48791 Only log native library loading errors if we attempt to use it Charlie Groves 2008-09-26 00:34:23 +00:00
  • 8e69ff612e Some import cleanups from Dave. Michael Bayne 2008-09-25 22:16:10 +00:00
  • 8590d5650b Added createTipLabel(). Michael Bayne 2008-09-25 00:54:54 +00:00
  • 4b038fb8e1 Keep updating the tick time even if the sound manager is null Charlie Groves 2008-09-23 20:09:36 +00:00
  • 62740fe546 Rather than trying to restrict the drift adjustment into a sane range, just stop applying it if it's huge or tiny. Charlie Groves 2008-09-14 23:27:29 +00:00
  • 1c864bf169 Javadoc warnings cleanup. Dave Hoover 2008-09-12 18:04:58 +00:00
  • e284b6cfc1 Unused import patrol. Michael Bayne 2008-09-11 17:54:45 +00:00
  • 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. Andrzej Kapolka 2008-09-10 23:55:25 +00:00
  • 5df6f85014 I don't think anything is using this. I'm moving it so that I can extend it with Clyde-specific bits. Andrzej Kapolka 2008-09-10 00:50:46 +00:00
  • 5d3f025b7a Uncommented line after updating samskivert with the required method. Andrzej Kapolka 2008-08-28 22:57:32 +00:00
  • adeab3efa2 Added methods to observe resource files for changes to their last-modified timestamps (by manual polling). Andrzej Kapolka 2008-08-26 23:12:13 +00:00
  • 60d2febeda Allow streams and sounds to have their gain controlled individually as well as from the overall control Charlie Groves 2008-08-26 22:17:11 +00:00
  • e4cdad7741 Start up streams on the sound queue thread and handle OpenAL barfing on startup Charlie Groves 2008-08-26 20:23:02 +00:00
  • fff73d94cc Expose the SoundLoader Charlie Groves 2008-08-23 21:07:47 +00:00
  • aa171bdd0e Expose sound types being enabled or disabled Charlie Groves 2008-08-23 19:42:54 +00:00
  • 135b25516e Hey, let's not just completely break locking and unlocking sounds Charlie Groves 2008-08-22 02:38:57 +00:00
  • 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. Charlie Groves 2008-08-22 02:02:54 +00:00
  • a2f5bd532e In this case I think the helper function reduces clarity rather than adds. Michael Bayne 2008-08-21 18:30:01 +00:00
  • c06de7d51f Add ogg streaming to OpenALSoundPlayer Charlie Groves 2008-08-21 05:33:19 +00:00
  • 81a2d3d104 Clean up some possible nulls to quiet Eclipse Charlie Groves 2008-08-21 01:50:06 +00:00
  • 99fc1ddbf7 Uhh, probably makes sense to actually hook the volume setting up to the sound manager Charlie Groves 2008-08-21 01:43:08 +00:00
  • 0abacd42d3 Give OpenALSoundPlayer its own thread and queue to keep it from sharing with the EDT and possibly blocking Charlie Groves 2008-08-20 23:31:21 +00:00
  • 1bd35bd926 Flex 3.1 changes Bruno Garcia 2008-08-20 22:31:30 +00:00
  • ac836c1cea New chat prompt from Bill. Yeah, not very i18n. We're just trying this out. Ray Greenwell 2008-08-20 22:24:42 +00:00
  • 3faa619689 That should be tests not test. Michael Bayne 2008-08-20 16:41:56 +00:00
  • e399b4dd15 Avoid pesky stack overflows. Andrzej Kapolka 2008-08-19 21:11:32 +00:00
  • b7e3f617f0 Fixed NPE found by Sigalig Whirligig. Ray Greenwell 2008-08-19 02:41:30 +00:00
  • 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. Ray Greenwell 2008-08-16 06:14:41 +00:00
  • 754566d011 Pedanticism police. Dave Hoover 2008-08-15 23:19:44 +00:00
  • 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. Charlie Groves 2008-08-15 22:38:46 +00:00
  • fb830e1693 Let Eclipse see AL Charlie Groves 2008-08-15 22:18:11 +00:00
  • 4aefa977b4 Expose shouldPlay Charlie Groves 2008-08-14 19:02:17 +00:00
  • 8febded3b3 Nip a compiler warning Charlie Groves 2008-08-14 18:29:09 +00:00
  • 0e6c3ddbde Discontinue use of deprecated name. Michael Bayne 2008-08-14 02:04:29 +00:00
  • fbf539580e Readd a deprecated SoundManager that just extends JavaSoundPlayer to keep it around with its original name Charlie Groves 2008-08-14 00:51:34 +00:00
  • fc32634412 Rename all the media.SoundManager stuff to variants on SoundPlayer to conflict less with openal.SoundManager. Charlie Groves 2008-08-14 00:50:17 +00:00
  • 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. Michael Bayne 2008-08-13 22:49:34 +00:00
  • e678d36262 Look at the big smart programmer using the library code instead of rolling his own, hacked-up shit Charlie Groves 2008-08-13 22:12:25 +00:00
  • 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. Charlie Groves 2008-08-13 21:47:42 +00:00
  • 1ac283e675 Provide access to the send button. Ray Greenwell 2008-08-12 05:15:45 +00:00
  • 7266e22085 Widening, modernization Charlie Groves 2008-08-11 04:34:50 +00:00
  • d657cf9f3b Convenience. Ray Greenwell 2008-08-08 23:30:43 +00:00
  • ce7a1c9cb8 Added getCellCount() and getCellAt(), inspired by SimpleGrid. Ray Greenwell 2008-08-08 23:11:40 +00:00
  • 5de8a3acf7 Added this, since we do it lots of places and it often looks like an error. Ray Greenwell 2008-08-08 23:11:16 +00:00
  • 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. Ray Greenwell 2008-08-08 03:46:11 +00:00
  • 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. Ray Greenwell 2008-08-08 03:32:57 +00:00
  • 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). Ray Greenwell 2008-08-08 02:17:33 +00:00
  • 05da95bbb4 Stop eclipse copying .svn dirs to output dir. Mike Thomas 2008-08-07 23:09:00 +00:00
  • 2cd65a9e76 Oops, tests output should go in tests/dist/classes. Michael Bayne 2008-08-07 23:07:27 +00:00
  • 1949014c76 Exploratory house cleaning Charlie Groves 2008-08-07 18:11:31 +00:00
  • 3122ae7e65 Checking if (foo = bar) is begging for disaster. Dave Hoover 2008-08-05 21:13:41 +00:00
  • 7386c62a68 Calculate the drain time using a long as a decent sized clip can overflow an int Charlie Groves 2008-08-05 20:28:15 +00:00
  • db0e6f93e1 Document the return on play Charlie Groves 2008-08-05 18:49:33 +00:00