I am trying to get audible notifications but I don't hear any sounds. My task looks like this:
(deftask build []
(comp (notify "-a")
(cljs)))
I don't see any warnings or error messages if I run boot -vv build
but there is no sound played. This is on Fedora 28.
Am I missing something obvious?@clojureslack try (notify :audible true)
instead of (notify "-a")
(task arguments are handled differently in in clojure code)
@alandipert That didn't seem to work.
does (boot (notify :audible true))
in a repl work?
or, at a command line, boot notify -a
?
boot notify -a
at the command line just returns without appearing to do anything.
-v does send a notification.
hm, sounds like a problem with sound at some lower level then
are you able to play audio from cli with aplay
?
and is sound otherwise working on your machine?
another thing to try is code like this in a repl, to see if you can get mp3s to play manually with javazoom https://github.com/boot-clj/boot/blob/master/boot/worker/src/boot/notify.clj#L18-L30
I can play mp3s with mpg123 and sound also works normally otherwise. I will look at the java code and see if I can get it to work
Curious. When I run that function it gives an error Cannot create AudioDevice
@alandipert I eventually found that I had no sound in any java apps. I think I was using a headless JDK. I switched to java-9-openjdk and reinstalled boot and I have sound now. Thank you for the help.