Is it possible to play midi files and wav (or any other sampled sound format) at the same time? I wan't to play some background music and at the same time play occasional sound effects, is this possible?

If it can't be done through the sound player, is it possible to get the output stream from the midi player so that I can mix in the wave-files myself?