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

Cannot increase or decrease playersPerSound int #45

Closed
ipoogleduck opened this issue Feb 2, 2019 · 2 comments
Closed

Cannot increase or decrease playersPerSound int #45

ipoogleduck opened this issue Feb 2, 2019 · 2 comments

Comments

@ipoogleduck
Copy link

I installed this with cocoa pods. I'm not sure if I'm doing anything wrong but when I go into the sound.swift file and try to change the playersPerSound over 5 or under 5 it doesn't reflect that change in the app after I build it, it only plays 5 at the same time. I want it at 20, here's what I changed the line of code to look like: public static var playersPerSound: Int = 20 {

@ipoogleduck
Copy link
Author

Okay so I think I fixed it but I had to change the thing to 20, delete the entire project and then clone it from my git again to make it work. Do you know why I would have to do this?

@adamcichy
Copy link
Owner

Never modify the Sound.swift file. To change the number of players per sound, add this line to your code.

Sound.playersPerSound = <new value>

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

2 participants