Commit Graph

8 Commits

Author SHA1 Message Date
Ray Greenwell 271d0ffb85 a timorous transition from listening to stop events to just calculating
the time at which the sound will stop. Stop events are flawed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1886 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-02 01:49:20 +00:00
Ray Greenwell 4cbca95044 Sound manager revamp.
- let the AudioSystem figure out the file format from the sound data.
- LRU cache for clip data
- Don't free system resources from clips until at least 4 seconds after
  they're finished playing. Reuse clips (and their resources) when possible.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1883 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-02 00:26:55 +00:00
Walter Korman 25bd81e59a Added facilities for disabling the playing of sound without shutting down
the sound manager wholeheartedly.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1760 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-30 06:13:36 +00:00
Walter Korman 567e51f08a More hideous sound hackery. We can't determine audio file format at
runtime after launching from Java Web Start because the input streams we
obtain don't support mark()/reset(), and so we hardcode the file format we
know we're using for now.  Also commented out verbose debug logging, and
cache audio file data after initial playback.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1626 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-08-02 01:45:19 +00:00
Michael Bayne ea5e5adbad Pay our respects to Chapter 12 of the JLS.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1619 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-07-26 16:00:19 +00:00
Ray Greenwell 07d02f772a fixed it from horking repeatedly on my machine
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1618 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-07-26 00:16:47 +00:00
Walter Korman 146014344e Don't append clips to the queue if we didn't start up successfully.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1612 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-07-24 21:39:43 +00:00
Walter Korman f930d53cdd Initial primitive sound manager that provides facilities for >gasp<
playing sounds.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1611 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-07-24 21:28:10 +00:00