Changeset 8413 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2015-05-22T01:39:47+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/AudioPlayer.java
r8395 r8413 69 69 result = Result.WAITING; 70 70 interrupt(); 71 while (result == Result.WAITING) { sleep(10); /* yield(); */ } 71 while (result == Result.WAITING) { 72 sleep(10); /* yield(); */ 73 } 72 74 if (result == Result.FAILED) 73 75 throw exception; … … 217 219 calibration = Main.pref.getDouble("audio.calibration", 1.0 /* default, ratio */); 218 220 start(); 219 while (state == State.INITIALIZING) { yield(); } 221 while (state == State.INITIALIZING) { 222 yield(); 223 } 220 224 } 221 225 … … 251 255 position += nBytesRead / bytesPerSecond; 252 256 command.possiblyInterrupt(); 253 if (nBytesRead < 0) { break; } 257 if (nBytesRead < 0) { 258 break; 259 } 254 260 audioOutputLine.write(abData, 0, nBytesRead); // => int nBytesWritten 255 261 command.possiblyInterrupt();
Note:
See TracChangeset
for help on using the changeset viewer.