Hello! I’m trying to make a game which need background music and sound effect. But now I can’t make them play at the same time. It means when sound effect is played, the background music is interrupted.
So, how could I make them play at the same time without interaction.
Depending on how large the audio files are, and also on how fast you need to trigger them, you could also use multiple [sfplay~] or [buffer~] + [groove~] objects; there is also [polybuffer~], but in this case and as fp says above perhaps you should check out the helpfile for [poly~] first,
Without seeing your patch it’s impossible to say for sure. Are you trying to use one splay~ (or similar) object? You will probably want [strong]at least[/strong] two: one for music, and one for sound effects. You may want several for sound effects, if you need them to overlap. As mentioned above poly~ may help, particularly for overlapping sound effect sounds.