I want to use the aud python library to play sounds in my game, but the sound is being played twice and I can’t figure out why. I have set up an example blend so you can check it out. I know someone on here will be able to figure this out. Thanks in advance for taking the time to look at this.
sound problem.zip (197 KB)
It’s a .zip file because you will need the sound file also (which is included)
Also, I’m open to other methods of playing sounds if someone knows of a better one. I could just use the sound actuator, but overlapping sounds will cut each other off. There’s a way around this by using more than one actuator for the same sound, but that can get very cluttered. The aud library seems perfect for this project if I can figure out why it’s playing the sound twice. I suppose I could just set up a timer property and have a minimum amount of time pass before the sound can be played again. It would have to be a very small window of time though (yet large enough to avoid a double-play) and I’d like to know why it’s being played twice in the first place anyway. Any feedback would be appreciated.