Hi! I'm trying to play a sound in my application, using http://www.javazoom.net/javalayer/documents.html that lib. Anyway, I tried playing the sound in a future, so the main thread would not block while playing, like so: (future (-> in Player. .play)). But if I don't deref the future, the sound does not play. If I do deref it, the sound plays, but I have to wait for it, which is what I wanted to avoid. If I do (future (do (println "called") (-> in Player. .play))), without a deref, it prints "called" but does still not play the sound. If I do (future (do (-> in Player. .play) (println "called"))), without a deref, it neither prints nor plays. What could be wrong?
I'm using clojure 1.4.0 and `lein trampoline run -m ns/main` to run my program. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en