Overlapping sounds with mediaplayer?
I was just wondering if i could overlap sounds, like having a background music file playing and then having a sound effect play overtop of it at the same time. Whenever i try to do this it cuts off the background music.
I just provided a image of what im using for clarity.
16 Replies
very new to this, so I dont even fully understand what i'm using here
is this monogame?
unsure what that is so probably not
the solution would depend a lot on the implementation
it's a bit hard to tell what sound player represents without knowing the engine :p
aah wait
it's a system class
boy do i have egg on my face
wat
it just means i looked a bit foolish- it's not terribly important so i'll try to find a way to help you
alright thanks - im going to be sleeping soon so sorry if i dont get back to you for a bit
i think you either have to go slightly lower level and use winmm PlaySound or you make your own mixing system (or use a third party system), i am not sure you have another choice
Why don't you use MediaPlayer class instead? It should work
Mostly because i didnt know it exists. This is just me taking a highschool course for the first time on computer science, and we're just doing basic stuff right now. Teacher doesnt help with this stuff becauae its "out of the current scope of the course" but he allows it in the program as an extra feature
anyways, ill try both of these today. Thanks
Sorry if it sounded rude. I meant to say that you should try it instead
np was just giving context
do you know where i could find something on this that can teach me how to use it?
Documentation? Check Microsoft website
this? is there anything i have to install? when i try to use System.Windows.Media it says the Media part does not exist
Nugget package maybe
oh, imusing 2017 version of visual studio also. i shouldve mentioned that. my class uses it so i have to
if that changes anything
ok i figured it out. thanks