Jul 7, 2010 at 9:23am
In order to play an audio file with sfplay~, you usually put a message button with delivers the message “open sound.wav”, and then a toogle box sending “1″ to play the file and “0″ to stop the file.
So there’s my js code (I just want to play the sound.wav) :
If you put the js outlet into a “print”, you’ve got the attempted result.
How sfplay~ can understand my first line?
Thanks for your help (I hope i’m clear enough)
Jul 7, 2010 at 10:57am
Ok, after some research I found the answer. It’s a common problem : spaces have to be replaced by commas in the outlet function.
So like this :
And it works !
You must be logged in to reply to this topic.