Ignore:
Timestamp:
2016-09-03T17:08:38+02:00 (9 years ago)
Author:
donvip
Message:

fix error-prone warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/wms-turbo-challenge2/src/wmsturbochallenge/EngineSound.java

    r32322 r32914  
    3030
    3131        AudioFormat output_format =
    32             new AudioFormat(S_RATE, 16, 1, true, true);
     32                new AudioFormat(S_RATE, 16, 1, true, true);
    3333        DataLine.Info info =
    34             new DataLine.Info(SourceDataLine.class, output_format);
     34                new DataLine.Info(SourceDataLine.class, output_format);
    3535
    3636        /* Get the data line, open it and initialise the device */
     
    109109
    110110    protected class audio_task extends TimerTask {
     111        @Override
    111112        public void run() {
    112113            if (output == null)
     
    127128            int wavelen = (int) (S_RATE / freq);
    128129            int bufferlen = MIN_BUFFER - (MIN_BUFFER % wavelen) +
    129                 wavelen;
     130                    wavelen;
    130131            int value = (int) (0x7fff * volume);
    131132
     
    147148
    148149            frames_written +=
    149                 output.write(buffer, 0, bufferlen) / 2;
     150                    output.write(buffer, 0, bufferlen) / 2;
    150151
    151152            reschedule(frames_current);
     
    158159         * about half into the last frame).  */
    159160        long delay = (frames_written - frames - MIN_BUFFER / 2) *
    160             1000 / S_RATE;
     161                1000 / S_RATE;
    161162        if (delay < 0)
    162163            delay = 0;
Note: See TracChangeset for help on using the changeset viewer.