Question

Maybe I have a simple question, but I am little bit confused from MSDN. I want to use something to play music. I know it may sound easy.

private void playMusic(string path) {
        using (SoundPlayer player = new SoundPlayer(path)) {
            player.PlayLooping();                   
        }
    }

This is working fine, but what about more sounds in .PlayLooping? or changing volume? There must be some solution with SoundPlayer, isn't it?

I would like to use in MOGRE program and firstly I tried to use MogreFreeSL, but it is useless for me.

I just want background music with more then one sound, it must be very simple.

Was it helpful?

Solution

Maybe MogreFreeSL doesn't work very well? I've used Mogre in my own projects with IrrKlang and it works just fine with multiple sounds. Maybe you could try that?

IrrKlang: http://www.ambiera.com/irrklang/

Sample code: http://sourceforge.net/p/ponykart/code/832/tree/trunk/Ponykart/Sound/ (though it's a little broken at the moment)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top