Page 180 - MDP2022-3
P. 180

player.close();
                            this.interrupt();
                    }


                    @Override
                    public  void  run()  {
                            try  {
                                    do  {
                                            player.play();
                                            fis  =  new  FileInputStream(file);
                                            bis  =  new  BufferedInputStream(fis);
                                            player  =  new  Player(bis);
                                    }  while  (isLoop);
                            }  catch  (Exception  e)  {
                                    //  TODO:  handle  exception]
                                    System.out.println(e.getMessage());
                            }
                    }
            }
            #  Note  클래스
            package  dynamic_beat_16;


            import  java.awt.Graphics2D;
            import  java.awt.Image;


            import  javax.swing.ImageIcon;


            public  class  Note  extends  Thread{


                    private  Image  noteBasicImage;
                    private  int  x,y  =  580  -  (1000  /  Main.SLEEP_TIME  *  Main.NOTE_SPEED)  *
            Main.REACH_TIME;
                    private  String  noteType;
                    private  boolean  proceeded  =  true;






                    public  String  getNoteType()  {
                            return  noteType;
                    }


                    public  boolean  isProceeded()  {
                            return  proceeded;
                    }
   175   176   177   178   179   180   181   182   183   184   185