Ignore:
Timestamp:
2008-03-02T16:10:33+01:00 (16 years ago)
Author:
david
Message:

Reorganise audio interface in light of recent usability comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/AudioPlayer.java

    r563 r572  
    305305                                                                audioOutputLine.close();
    306306                                                        audioFormat = new AudioFormat(audioFormat.getEncoding(),
    307                                                                                 audioFormat.getSampleRate() * (float) speed,
     307                                                                                audioFormat.getSampleRate() * (float) (speed * calibration),
    308308                                                                                audioFormat.getSampleSizeInBits(),
    309309                                                                                audioFormat.getChannels(),
    310310                                                                                audioFormat.getFrameSize(),
    311                                                                                 audioFormat.getFrameRate() * (float) speed,
     311                                                                                audioFormat.getFrameRate() * (float) (speed * calibration),
    312312                                                                                audioFormat.isBigEndian());
    313313                                                        DataLine.Info info = new DataLine.Info(SourceDataLine.class, audioFormat);
Note: See TracChangeset for help on using the changeset viewer.