Oh, now I understand! I close the stream (in the with-open) in the main
thread before the other thread got a chance to play it.
On Monday, December 31, 2012 3:49:25 AM UTC+1, Oskar Kvist wrote:
>
> Ok, here is some more code:
>
> The line (-> in Player. .play) nil)) in the first function is what
Ok, here is some more code:
The line (-> in Player. .play) nil)) in the first function is what I'm
trying to wrap in a future. The first two functions are basically what is
used when trying to play a sound. The other 3 is the "main loop" part of my
program. I don't think anything else is releva
Laziness might be your problem, but that wouldn't explain (println
"called") working without a deref.
Can you show a bit more code around this call to `future'?
On Sun, Dec 30, 2012 at 8:31 AM, Oskar Kvist wrote:
> Hi!
>
> I'm trying to play a sound in my application, using
> http://www.javazoom
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 soun