Playing(firing up) the same sound in very short intervals

rated by 0 users
This post has 1 Reply | 2 Followers

Top 75 Contributor
Posts 49
SunBurn_Community_Licensee
chenmark Posted: 06-13-2012 12:57 PM

Hello Guys,

I'm trying to find a way to play the same sound(gun shot) that might be played by many sources at the same time.

If I'm using a single AudioSource it seems that a new play call will stop the previous call from ending it's play. 

I've also tried having a pool of AudioSource for the same SoundEffect, that did not get me any far as well.

Probably I'm missing something basic here.

Any Help Appreciated,

Chen.

 

Top 10 Contributor
Posts 5,368
Employee
SunBurn_Studio_Licensee

Hi Chen,

Having a pool of audio sources (or ideally one for each weapon instance and changing the source's SoundEffect as needed) is the best way to go.

chenmark:
that did not get me any far as well.

What happened?

Let me know if this helps!

Follow me on Twitter – development and personal tweets
Awesome XNA Videos – Lighting, Rendering, and game videos

Page 1 of 1 (2 items) | RSS