after such a big search, I could not find any solution to stop the effect in cocos2d.
my effect reproduces the sound that was taken from the database, so in order to stop this particular sound, I have to:
[[SimpleAudioEngine sharedEngine] stopEffect:[NSString stringWithFormat:@"%@.wav",sound]];
BUT I got a warning: stopEffect makes an integer from a pointer without casting.
why? How can I stop all the sounds that play immediately? or not specific? any other way?
Many thanks.
source share