ObjectAL-for-iPhone icon indicating copy to clipboard operation
ObjectAL-for-iPhone copied to clipboard

effectsMuted not working in ios 11.3

Open tritmm opened this issue 7 years ago • 7 comments

Our games are using your OALSimpleAudio, it worked very well. however! after users update iOS 11.3, They mute the sounds but this sounds still play (in this function. OALSimpleAudio.sharedInstance().effectsMuted = ... )

But the Background Music don't get this problem (in this function. OALSimpleAudio.sharedInstance().bgMuted = ... )

Thanks you so much.

tritmm avatar Apr 02 '18 07:04 tritmm

Anybody found a workaround for this?

abeintopalo avatar Apr 06 '18 09:04 abeintopalo

Do you get this issue too?

tritmm avatar Apr 10 '18 08:04 tritmm

Yeah, I have the exact same issue.

abeintopalo avatar Apr 10 '18 09:04 abeintopalo

Have the same issue.

OrWest avatar Jun 22 '18 06:06 OrWest

I researched this issue. I think that Apple in 11.3 updated API of sound. OpenAL set volume to 0, but the API does not apply it.

OrWest avatar Jun 22 '18 07:06 OrWest

The same issue in cocos2d-x. link

OrWest avatar Jun 22 '18 07:06 OrWest

i fixed it by add a condition in playEffect function

if(muted | effectsMuted) { return nil; }

this way resolved this issue

screenshot 2018-11-20 16 16 27

tritmm avatar Nov 20 '18 09:11 tritmm