forked from External/mage
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:
parent
68de6a76f6
commit
1749eb7ded
4 changed files with 129 additions and 64 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue