Skip to content

Commit

Permalink
dump stack trace of audio processor
Browse files Browse the repository at this point in the history
  • Loading branch information
supertick committed May 4, 2024
1 parent 4cf054d commit 7f1ea8b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/java/org/myrobotlab/audio/AudioProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -284,15 +284,18 @@ public AudioData play(AudioData data) {
log.error("line is null !");
}
} catch (Exception e) {
audioFile.warn("%s - %s output audio line was not found - is audio enabled?", e.getClass().getSimpleName(), e.getMessage());
if (data != null) {
synchronized (data) {
log.debug("notifying others");
data.notifyAll();
}
}
if (audioFile != null) {
audioFile.error("%s - %s", e.getMessage(), data.getFileName());
audioFile.error(e);
audioFile.warn("%s - %s output audio line was not found - is audio enabled?", e.getClass().getSimpleName(), e.getMessage());
if (data != null) {
audioFile.error("%s - %s", e.getMessage(), data.getFileName());
}
}
} finally {
if (din != null) {
Expand Down

0 comments on commit 7f1ea8b

Please sign in to comment.