- Removed the RuntimeAdjust for tweaking the Line's buffer size.
- Feed data to the Line in chunks the same size as its buffer.
- Rather than sleeping 3 seconds, calculate how long it would take to play
the line's entire buffer and sleep that long. It turns out that with
the buffer size I'm using and the sample rates our sounds are encoded at,
this is less than 400 ms.
- Went ahead and increased the maximum number of simultaneous line spoolers
to 12.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2966 542714f4-19e9-0310-aa3c-eee0fc999fb1
types and the puzzle stuff wants to classify the sounds it produces.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2878 542714f4-19e9-0310-aa3c-eee0fc999fb1
when I set it to 24? Let's try it like this for a spell.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2734 542714f4-19e9-0310-aa3c-eee0fc999fb1
is turned on.
- Expire PLAY requests if they are not processed within 400ms.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2376 542714f4-19e9-0310-aa3c-eee0fc999fb1
- allow random picks from among some variants when using test sounds
- fixed default sound for JWS users so that it loads from a bundle
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2319 542714f4-19e9-0310-aa3c-eee0fc999fb1
being loaded out of the classpath.
- enabled sound. I want to test at home with my old linux machine and see
how things are.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2249 542714f4-19e9-0310-aa3c-eee0fc999fb1
locked items and non-locked items in the same cache will screw up an
otherwise healthy cache by forcing it to flush otherwise frequently used
items because there's no room left by locked items.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2168 542714f4-19e9-0310-aa3c-eee0fc999fb1
- Use Constant objects for the command constants because the toString()
output on those is more sensible.
- Fall back to the classpath if we don't find our resource in a bundle
- Don't make the sound manager thread a daemon thread as it provides a
shutdown() which is a more civilized way to make it go away anyhow and
allows the sound manager to be used in one-shot tools and test
programs. At the moment, the sound manager (on Linux at least) seems to
start up some threads that refuse to go away anyway but that's a problem
for another time.
- Report if a command is queued up that we don't know about.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2050 542714f4-19e9-0310-aa3c-eee0fc999fb1
moment that a sound is requested to just before the LineSpooler object
that it was given to starts writing the data to a line.
- Turned drain() back on, but only if we're not running under linux.
If we're in linux, we instead sleep for 3 seconds, and gosh darn it, the
sound should be finished after that.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2019 542714f4-19e9-0310-aa3c-eee0fc999fb1
sounds.
- added test sound directory setting.
- mp3 player needs more fixing, but allow some volume adjustment.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1990 542714f4-19e9-0310-aa3c-eee0fc999fb1
Don't play clips or music if the appropriate volume is zero.
If music is turned off, stop current playback immediately, but also
start it back up if the volume is turned up.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1987 542714f4-19e9-0310-aa3c-eee0fc999fb1