- Timestamp:
 - 2015-12-24T22:59:04+01:00 (10 years ago)
 - Location:
 - trunk
 - Files:
 - 
      
- 6 added
 - 2 edited
 
- 
          
  src/org/openstreetmap/josm/tools/AudioPlayer.java (modified) (2 diffs)
 - 
          
  src/org/openstreetmap/josm/tools/AudioUtil.java (modified) (1 diff)
 - 
          
  test/data/regress/6851 (added)
 - 
          
  test/data/regress/6851/20111003_121216-wp.gpx (added)
 - 
          
  test/data/regress/6851/20111003_121226.wav (added)
 - 
          
  test/data/regress/6851/20111003_121557.wav (added)
 - 
          
  test/unit/org/openstreetmap/josm/tools/AudioPlayerTest.java (added)
 - 
          
  test/unit/org/openstreetmap/josm/tools/AudioUtilTest.java (added)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/src/org/openstreetmap/josm/tools/AudioPlayer.java
r9078 r9144 120 120 * start at the beginning of the stream 121 121 * @param url The resource to play, which must be a WAV file or stream 122 * @throws Exception audio fault exception, e.g. can't open stream, unhandleable audio format122 * @throws Exception audio fault exception, e.g. can't open stream, unhandleable audio format 123 123 */ 124 124 public static void play(URL url) throws Exception { … … 130 130 * @param url The resource to play, which must be a WAV file or stream 131 131 * @param seconds The number of seconds into the audio to start playing 132 * @throws Exception audio fault exception, e.g. can't open stream, unhandleable audio format132 * @throws Exception audio fault exception, e.g. can't open stream, unhandleable audio format 133 133 */ 134 134 public static void play(URL url, double seconds) throws Exception {  - 
      
trunk/src/org/openstreetmap/josm/tools/AudioUtil.java
r7037 r9144 41 41 return naturalLength / calibration; 42 42 } catch (UnsupportedAudioFileException | IOException e) { 43 if (Main.isDebugEnabled()) { 44 Main.debug(e.getMessage()); 45 } 43 46 return 0.0; 44 47 }  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  