(final LameGlobalFlags gf)
| 868 | private double last_time = 0.0; |
| 869 | |
| 870 | private void encoder_progress(final LameGlobalFlags gf) { |
| 871 | if (parse.silent <= 0) { |
| 872 | int frames = gf.frameNum; |
| 873 | if (parse.update_interval <= 0) { |
| 874 | /* most likely --disptime x not used */ |
| 875 | if ((frames % 100) != 0) { |
| 876 | /* true, most of the time */ |
| 877 | return; |
| 878 | } |
| 879 | } else { |
| 880 | if (frames != 0 && frames != 9) { |
| 881 | double act = System.currentTimeMillis(); |
| 882 | double dif = act - last_time; |
| 883 | if (dif >= 0 && dif < parse.update_interval) { |
| 884 | return; |
| 885 | } |
| 886 | } |
| 887 | last_time = System.currentTimeMillis(); |
| 888 | /* from now! disp_time seconds */ |
| 889 | } |
| 890 | if (parse.brhist) { |
| 891 | hist.brhist_jump_back(); |
| 892 | } |
| 893 | timestatus(gf.frameNum, lame_get_totalframes(gf)); |
| 894 | if (parse.brhist) { |
| 895 | hist.brhist_disp(gf); |
| 896 | } |
| 897 | } |
| 898 | } |
| 899 | |
| 900 | private void encoder_progress_end(final LameGlobalFlags gf) { |
| 901 | if (parse.silent <= 0) { |
no test coverage detected