Add a feature to addlandDialog. Now it can help player calculate lands they need as the same function on MTGO.

This commit is contained in:
Li REN 2013-06-16 03:29:56 -04:00
parent 68de6a76f6
commit 1749eb7ded
4 changed files with 129 additions and 64 deletions

View file

@ -134,11 +134,12 @@ public class MusicPlayer {
byte tempBuffer[] = new byte[320];
public void run(){
try{
int len;
while ((len = audioInputStream.read(tempBuffer, 0,
tempBuffer.length)) != -1){
if(breaked_out) break;
if(len > 0) sourceDataLine.write(tempBuffer, 0, len);
sourceDataLine.flush();
int len;
while ((len = audioInputStream.read(tempBuffer, 0,
tempBuffer.length)) != -1){
if(breaked_out) break;
if(len > 0) sourceDataLine.write(tempBuffer, 0, len);
}
//breaked or stopped
sourceDataLine.flush();