Changeset 30362 in osm for applications
- Timestamp:
- 2014-03-24T22:30:15+01:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/action/PlayAudioAction.java
r19211 r30362 48 48 AudioInputStream stream = AudioSystem.getAudioInputStream(in); 49 49 50 // From URL51 // stream = AudioSystem.getAudioInputStream(new URL("http://hostname/audiofile"));52 53 50 // At present, ALAW and ULAW encodings must be converted 54 51 // to PCM_SIGNED before it can be played -
applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/util/ResourceLoader.java
r13497 r30362 30 30 public static InputStream getInputStream(String source) throws IOException { 31 31 InputStream in = null; 32 if (source.startsWith("http://") || source.startsWith(" ftp://") || source.startsWith("file:")) {32 if (source.startsWith("http://") || source.startsWith("https://") || source.startsWith("ftp://") || source.startsWith("file:")) { 33 33 in = new URL(source).openStream(); 34 34 } else if (source.startsWith("resource://")) { … … 40 40 return in; 41 41 } 42 43 42 }
Note:
See TracChangeset
for help on using the changeset viewer.