play command and wav file

Richmond richmondmathewson at gmail.com
Sat Dec 19 12:21:45 EST 2020


I'm not sure what you mean by 'binary data', but I set up a stack and 
imported a .wav file into it
which I named 'xxx.wav'. The stack contains a single button with the code:

on mouseUp
     play audioClip "xxx.wav"
end mouseUp

and it does exactly what I would expect it to do: plays the .wav file.

macOS 11.2 beta, Livecode 9.6.1

best, Richmond.

On 19.12.20 18:15, jbv via use-livecode wrote:
> Hi list,
> Is there a way to play a wav file that is already loaded
> in memory as binary data ?
> The doc only says that "play" takes a file name as parameter...
>
> Thank you in advance.
> jbv
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list