문제

I have a BIG problem!when I play a media element in WPF using c# or windows store app using c# with looping enable it takes some time to replay after sound ended an I need to replay it fast to make helicopter's sound.how can I replay a media element faster and without having to wait to load the sound again?tnx. if(badenglish){sorry();}

도움이 되었습니까?

해결책

If you dont need video perhaps you could use SoundPlayer instead as it is a lot faster when looping

Example:

var player = new SoundPlayer("myHelicopterSound.wav");
player.PlayLooping();
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top