Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / sound OK on Windows but silence on Adroid

Author
Message
Rob from Scotland
20
Years of Service
User Offline
Joined: 23rd Aug 2003
Location: Scotland
Posted: 3rd Jul 2015 18:10
My app works fine on Windows8.1. The explosion sounds like an explosion but on Android there is no explosion sound. I simplified the app to test it. On Android the laser sounds fine but not the explosion. Any ideas? I am running Windows8.1 and the Android tablet is a Tesco hudl. I can't remember how to send my code so I'll try this and attach my media folder. I had to compress the media folder using Windows8.1.

[loadresources()
do
playsound(4)
sleep(1000)
playsound(1)
sleep(1000)
Print("Will this program play sound on Android?")
Sync()
loop

function loadresources
loadsound(299,"999.wav")
loadsound(1,"explode.wav")
loadsound(4,"laser.wav")
loadimage(1,"Made-With-AGK-Black-128px.png")
loadimage(2,"close.png")
LoadImage(3,"shrapnel3.png")
loadimage(4,"cannon.png")
`loadimage(5,"info.png")
resourcesloaded = 1
endfunction`loadresources]

Attachments

Login to view attachments
Markus
Valued Member
19
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 3rd Jul 2015 19:39
my notes:
sound must be wave (PCM) 16 bits , 2 channels (stereo) sampling rate 44.1 KHz
filename is important, means case-sensitive

AGK 108 (B)19 + AppGameKit (Steam) V2 Beta .. : Windows 8.1 Pro 64 Bit : AMD Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 3rd Jul 2015 21:29
Yes, in my experience AppGameKit is very particular about the format of a.wav files.

Rob from Scotland
20
Years of Service
User Offline
Joined: 23rd Aug 2003
Location: Scotland
Posted: 3rd Jul 2015 21:33
Thanks Markus, I've set explode.wav as you suggest and published the app. Once publishing is complete I am sure that all will be well.
Rob from Scotland
20
Years of Service
User Offline
Joined: 23rd Aug 2003
Location: Scotland
Posted: 3rd Jul 2015 22:57
I published my little test app and the explode sound works. It will take a little while to publish all 5 InvadersApps but I will get them on Google Play robsfunlearning this weekend.

Thanks again

Login to post a reply

Server time is: 2024-03-29 13:32:16
Your offset time is: 2024-03-29 13:32:16