Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

effectsMuted not working in ios 11.3 #105

Open
tritmm opened this issue Apr 2, 2018 · 7 comments
Open

effectsMuted not working in ios 11.3 #105

tritmm opened this issue Apr 2, 2018 · 7 comments

Comments

@tritmm
Copy link

tritmm commented Apr 2, 2018

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.

@abeintopalo
Copy link

Anybody found a workaround for this?

@tritmm
Copy link
Author

tritmm commented Apr 10, 2018

Do you get this issue too?

@tritmm tritmm closed this as completed Apr 10, 2018
@tritmm tritmm reopened this Apr 10, 2018
@abeintopalo
Copy link

Yeah, I have the exact same issue.

@OrWest
Copy link

OrWest commented Jun 22, 2018

Have the same issue.

@OrWest
Copy link

OrWest commented Jun 22, 2018

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
Copy link

OrWest commented Jun 22, 2018

The same issue in cocos2d-x. link

@tritmm
Copy link
Author

tritmm commented Nov 20, 2018

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

lcharlick added a commit to lcharlick/ObjectAL-for-iPhone that referenced this issue May 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants