Friday, May 30, 2014

Playing to sounds at once

I am looking to have music playing and to play sounds when a button is pressed but to continue to have the music playing.



The problem is that when I send it to another computer there is a problem playing sounds because of the file path.



I've tried such things as putting in get current directory and using that when trying to play the sound, i also had the sound file in the correct folder, been the bin folder.



This hasn't work.



I've tried something else which is using System.Windows.Media.MediaPlayer but I just get reference error at media!



what is the best and easier way to get sound to play written in one method, so that method can be called to play the sound.


No comments:

Post a Comment