Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
Issue with ios and .wav sounds (HTML5 export) — Gideros Forum

Issue with ios and .wav sounds (HTML5 export)

Hello,
I exported one of my project in html5. Everything seems ok BUT on ios, no sounds are played on iphone.
All sounds are .wav played on mouseEvent or so.

Here is a peace of code I quickly made to reproduce the issue :smile:
function playSound (target, event)
if target:hitTestPoint(event.x, event.y) then
local mySound = Sound.new("pop.wav")
local uiSfxChannel = mySound:play()		
uiSfxChannel:setPitch(math.random())
uiSfxChannel:setVolume(.7)
end
end 
local playBtn = Bitmap.new(Texture.new("btn.png"))
 
playBtn:setPosition(40, 40)
stage:addChild(playBtn)
playBtn:addEventListener(Event.MOUSE_DOWN, playSound, playBtn)
The export is visible here :
http://jimlev.alwaysdata.net/soundissue/index.html

It work fine on desktop computer. On android phones. But no sound on my (quite old iphone 6). If someone can test and tell me if it works on recent iphone. I also appreciated any idea for a solution

take care !
My meditation plan :
SinisterSoft: “ I don't create classes that much - classes are good for making things simpler but imho for frame rate they are also death by a thousand cuts.”
Totebo: “ Best quote ever.”
🤔

Comments

Sign In or Register to comment.