This is my first post here, I've used the search tool but found nothing about this issue. I'm a beginner (total noob) developer, so I must be doing something pretty stupid. If this is a duplicate, i'll delete it. (My english is also not very good, so please, excuse my mistakes)
I'm making a little Pong game, based on a post I've read earlier. I got everything working on a linux build running the SDL2 version of monogame. But now i'm trying to add audio to my game, using the "SoundEffect" class, but I can't load the audio files. I've already tried as Song with .ogg and .mp3, but didn't work. So I booted Windows and converted my audio files to .xnb with XNA Content Compiler. Switched back, set it in the properties to "Content" type and "Copy if newer". Made my variables and tried to load in the following manner:
Just before "Game1()" as with all my variables:
sound_hit = Content.Load<SoundEffect> ("audio/ballhit");
And this simply gives me the error: "System.InvalidCastException" Cannot cast from source type to destination type.
I believe this is happening because monogame (or c# ?) is not correctly interpreting my audio files as... well, audio files. Or it tries to load my SoundEffect as Song or vice-versa. Also i'm using "Microsoft.Xna.Framework.Media" or "Microsoft.Xna.Framework.Audio" depending on which class I need.
Please, any help would be appreciated. I know this is easy for most people here, but not for me ):