This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-10-30
Channels
- # announcements (15)
- # beginners (99)
- # boot (15)
- # cider (105)
- # cljdoc (2)
- # cljs-dev (17)
- # clojure (132)
- # clojure-conj (1)
- # clojure-dev (5)
- # clojure-italy (19)
- # clojure-losangeles (2)
- # clojure-nl (20)
- # clojure-spec (70)
- # clojure-uk (50)
- # clojurescript (153)
- # core-logic (9)
- # cryogen (4)
- # cursive (6)
- # datomic (40)
- # duct (5)
- # figwheel-main (10)
- # fulcro (245)
- # hoplon (1)
- # jobs (3)
- # leiningen (12)
- # mount (8)
- # nrepl (11)
- # off-topic (1)
- # pathom (16)
- # pedestal (3)
- # planck (17)
- # re-frame (3)
- # reitit (8)
- # shadow-cljs (64)
- # spacemacs (3)
- # specter (20)
- # tools-deps (21)
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
?
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
@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.