From f9f3d784cf7fcfb740ff1b840e0448bf4be2e3e6 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Wed, 29 Dec 2004 21:56:58 +0000 Subject: [PATCH] My laptop repeatedly gets the sound looping bug, and I noticed that it goes for about 30 seconds before stopping. We keep the line open for 30 seconds, waiting for another sound, and there must be a bug in the Java libraries that sometimes loops the end of the sound. Expire LineSpoolers after 1 second. If this works I may restructure things so that the threads stay around longer but the lines get closed immediately after the drain delay. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3290 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/media/sound/SoundManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/com/threerings/media/sound/SoundManager.java b/src/java/com/threerings/media/sound/SoundManager.java index aa718ee0f..4d9f6a69c 100644 --- a/src/java/com/threerings/media/sound/SoundManager.java +++ b/src/java/com/threerings/media/sound/SoundManager.java @@ -1158,7 +1158,7 @@ public class SoundManager /** The maximum time a spooler will wait for a stream before * deciding to shut down. */ - protected static final long MAX_WAIT_TIME = 30000L; + protected static final long MAX_WAIT_TIME = 1000L; /** The maximum number of spoolers we'll allow. This is a lot. */ protected static final int MAX_SPOOLERS = 12;