diff game/SoundManager.java @ 134:4c0dec72e2f0

Whitespace cosmetic cleanup.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 24 Nov 2011 21:51:54 +0200
parents 3551b61b3c0b
children d6d92845d6a2
line wrap: on
line diff
--- a/game/SoundManager.java	Thu Nov 24 21:50:41 2011 +0200
+++ b/game/SoundManager.java	Thu Nov 24 21:51:54 2011 +0200
@@ -35,9 +35,9 @@
         super("SoundManagerPool-" + (poolID++));
 
         int numThreads = Math.min(maxSounds, getMaxSimultaneousSounds(playbackFormat));
-        
+
         System.out.print("SMGR.SoundManager() initializing with " + numThreads +" max sounds\n");
-        
+
         setDaemon(true);
         alive = true;
 
@@ -250,7 +250,7 @@
         // create, open, and start the line
         SourceDataLine line;
         DataLine.Info lineInfo = new DataLine.Info(SourceDataLine.class, playbackFormat);
-        
+
         System.out.print("SMGR.threadStarted(): "+lineInfo.toString()+"\n");
 
         try {
@@ -264,7 +264,7 @@
             Thread.currentThread().interrupt();
             return;
         }
-        
+
         // Change volume
         Control.Type ct = FloatControl.Type.MASTER_GAIN;
         if (line.isControlSupported(ct))
@@ -310,7 +310,7 @@
             // get line and buffer from ThreadLocals
             SourceDataLine line = (SourceDataLine) localLine.get();
             byte[] buffer = (byte[])localBuffer.get();
-            
+
             if (line == null || buffer == null)
                 return;
 
@@ -330,7 +330,7 @@
                             }
                         }
                     }
-                    
+
                     // copy data
                     int bufPos = 0;
                     while (bufPos < buffer.length && playing)