Hi
You can use an audio clip.
First import the wave file as an audio clip into the stack.
Under File menu select “Import as Control…”
then in the dropdown menu select “…audio file”
i.e. I imported a file called “friday.wav”
This will create an audio clip in the binary stack.
It will have the same name as the wav file you imported.
Then when you need to play the clip use the following line of code:
Play audioclip "friday.wav"
Martin
> On Dec 19, 2020, at 11:15 AM, jbv via use-livecode
> <[email protected]> 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
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode