Skip to content

Commit 7f1ea8b

Browse files
committed
dump stack trace of audio processor
1 parent 4cf054d commit 7f1ea8b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main/java/org/myrobotlab/audio/AudioProcessor.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,15 +284,18 @@ public AudioData play(AudioData data) {
284284
log.error("line is null !");
285285
}
286286
} catch (Exception e) {
287-
audioFile.warn("%s - %s output audio line was not found - is audio enabled?", e.getClass().getSimpleName(), e.getMessage());
288287
if (data != null) {
289288
synchronized (data) {
290289
log.debug("notifying others");
291290
data.notifyAll();
292291
}
293292
}
294293
if (audioFile != null) {
295-
audioFile.error("%s - %s", e.getMessage(), data.getFileName());
294+
audioFile.error(e);
295+
audioFile.warn("%s - %s output audio line was not found - is audio enabled?", e.getClass().getSimpleName(), e.getMessage());
296+
if (data != null) {
297+
audioFile.error("%s - %s", e.getMessage(), data.getFileName());
298+
}
296299
}
297300
} finally {
298301
if (din != null) {

0 commit comments

Comments
 (0)