SpoutDev/Spout — Issue #681: Sound Manager cuts out after strain.
Author: AJCStriker
Created: 2011-10-10 18:13:03+00:00
State: open

When causing a sound to play a large number of times using

i = 0;
Vector playerFiringVec = event.getPlayer().getLocation().toVector();
SpoutManager.getSoundManager().playCustomSoundEffect(Plugin, SpoutManager.getPlayer(event.getPlayer()), "http://dl.dropbox.com/u/17900145/CounterCraft/Sounds/weapons/deagle/deagle-2.wav", true);
while(i < Main.server.getOnlinePlayers().length){
Vector playerToHear = Main.server.getOnlinePlayers()[i].getLocation().toVector();
double distance = playerFiringVec.distance(playerToHear);
int volumeScalar = (int) (80 - distance);
SpoutManager.getSoundManager().playCustomSoundEffect(Plugin, SpoutManager.getPlayer(Main.server.getOnlinePlayers()[i]),"http://dl.dropbox.com/u/17900145/CounterCraft/Sounds/weapons/deagle/deagle-2.wav", true, pLoc, -1, volumeScalar);
i++;
}

after a large number of replays on a client, the entire sound system including MC music cuts out.