Issue with audio

So I’ve got this sound that plays every time an object collides with an enemy. It’s set to a channel because I’m using multiple sounds. And now to my problem, when the object collides with 2 enemies at the same time, the sound wont play twice… Does anyone know what the problem is and how to solve it?

I can’t have the sound outside of a channel, the other sounds will be messed up then and the mute function wont work…

Thanks in advance, [import]uid: 30185 topic_id: 6141 reply_id: 306141[/import]

you will need to manage your channels better. a channel is the place a single sound plays on. you can have 32 channels i think (32 sounds at once). there’s no bug, you’re just approaching it wrong. keep track of what channels are playing what type of sound. and decide what you need to do if a 33rd soumd tries to play (you’ll need to kill one of the others)
[import]uid: 6645 topic_id: 6141 reply_id: 21032[/import]

Thing is I’ve got a function that plays a stab sound every time the object collides with an enemy. The sound inside the function is played through channel 2… This function is called every time the object collides with an enemy of a certain class… When I collide with 2 enemies at the same time, the function is called twice and the sound should play twice, but it wont? [import]uid: 30185 topic_id: 6141 reply_id: 21033[/import]

read the docs on channels. either find a free channel or let corona manage it. but you;re going to have to decide what to do when you hit 32 sounds at once and you need to play another [import]uid: 6645 topic_id: 6141 reply_id: 21048[/import]