C
C#4w ago
L150X

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.
No description
16 Replies
L150X
L150XOP4w ago
very new to this, so I dont even fully understand what i'm using here
:', ryte ,':
:', ryte ,':4w ago
is this monogame?
L150X
L150XOP4w ago
unsure what that is so probably not
:', ryte ,':
:', ryte ,':4w ago
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
L150X
L150XOP4w ago
wat
:', ryte ,':
:', ryte ,':4w ago
it just means i looked a bit foolish- it's not terribly important so i'll try to find a way to help you
L150X
L150XOP4w ago
alright thanks - im going to be sleeping soon so sorry if i dont get back to you for a bit
Omnissiah
Omnissiah4w ago
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
❤RieBi&❤
❤RieBi&❤4w ago
Why don't you use MediaPlayer class instead? It should work
L150X
L150XOP4w ago
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
❤RieBi&❤
❤RieBi&❤4w ago
Sorry if it sounded rude. I meant to say that you should try it instead
L150X
L150XOP4w ago
np was just giving context do you know where i could find something on this that can teach me how to use it?
❤RieBi&❤
❤RieBi&❤4w ago
Documentation? Check Microsoft website
L150X
L150XOP4w ago
this? is there anything i have to install? when i try to use System.Windows.Media it says the Media part does not exist
No description
❤RieBi&❤
❤RieBi&❤4w ago
Nugget package maybe
L150X
L150XOP4w ago
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
Want results from more Discord servers?
Add your server