File tree Expand file tree Collapse file tree
src/main/java/net/sourceforge/lame/mp3 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -289,7 +289,8 @@ private void lame_decoder(
289289
290290 if (lame .getParser ().silent <= 0 ) {
291291 for (i = curPercent ; i < 100 ; i ++) {
292- progressStep ();
292+ progressStep (i );
293+ curPercent ++;
293294 }
294295 System .out .println ();
295296 }
@@ -869,18 +870,18 @@ private void timestatus(final int frameNum, final int totalframes) {
869870 percent = 100 ;
870871 }
871872 if (oldPercent != percent ) {
872- progressStep ();
873+ progressStep (percent );
874+ curPercent ++;
873875 }
874876 oldPercent = percent ;
875877 }
876878
877- private void progressStep () {
878- curPercent ++;
879- float consoleX = (float ) curPercent * MAX_WIDTH / 100f ;
879+ private void progressStep (int percent ) {
880+ float consoleX = (float ) percent * MAX_WIDTH / 100f ;
880881 if ((int ) consoleX != oldConsoleX && !lame .getParser ().embedded )
881- System .out .print ( "." );
882+ System .out .println ( "step " + percent );
882883 oldConsoleX = (int ) consoleX ;
883- support .firePropertyChange ("progress" , oldPercent , curPercent );
884+ support .firePropertyChange ("progress" , oldPercent , percent );
884885 }
885886
886887 /**
You can’t perform that action at this time.
0 commit comments