how to export audio into apk

All things Storyboard for the Android platform.

Moderator: jamiev

how to export audio into apk

Postby vbe » Mon Sep 21, 2015 1:56 pm

Hello,
I made audio event playing wav file on pc. When I export as native android app it does not play a sound on my android phone. Do you know what I have to do to create apk with that wav file?
vbe
 
Posts: 5
Joined: Wed Sep 16, 2015 8:11 am

Re: how to export audio into apk

Postby thomas » Mon Sep 21, 2015 2:44 pm

How are you specifying the path to the file to play? On Android this path is going to be quite different and you should provide it as a path relative to the project. You can use the gre.SCRIPT_ROOT variable to help with this specification.

Thomas
thomas
 
Posts: 133
Joined: Mon Nov 02, 2009 4:32 pm
Location: Ottawa

Re: how to export audio into apk

Postby vbe » Mon Sep 21, 2015 4:03 pm

Thank you it helped. Before I had full path to my wav file.
Now I add variable "var_audio_beep" to "Audio parameter"->"filename"

Then in my script I did
gre.set_data({["var_audio_beep"] = gre.SCRIPT_ROOT.."/beep.wav"})

I moved my beep.wav into folder "scripts"

And now it works in my android phone too. Thanks
vbe
 
Posts: 5
Joined: Wed Sep 16, 2015 8:11 am


Return to Storyboard for Android

Who is online

Users browsing this forum: No registered users and 1 guest

cron