c# - Play sound slowing down application XNA -


i'm writing application randomly generates musical tone rows played system. there graphics involved.

as far aware, sound , graphics entirely in different threads.

however, number of sound effects in project build up, graphics animations slow down hugely.

the sound effects never triggered more 150 ms (and of time less this), there 5 or 6 sound effects being played simultaneously different sources. past 3 sources, starts getting slowed down , @ 6 being redrawn slowly.

is there hidden part of soundeffect.play() might somehow executing in main thread , slowing down?

i've tried things like:

public void play() {     mysoundeffect.play(volume, pitch, pan); }  public void playsound() {     thread t = new thread(play);     t.start(); } 


Comments

Popular posts from this blog

php - get table cell data from and place a copy in another table -

javascript - Mootools wait with Fx.Morph start -

php - Navigate throught databse rows -