Hi there, and hello monogame community, I am new to monogame (just discovered its existence about a month ago) and have (mostly just basic) experience with Python and Java. . . I chose to start developing my game in C# with monogame after learning that C# wasn’t as difficult as some other languages, and seeing some of the really cool tech demos.
So I started with a Windows Vista computer with automatic updates turned off. (It’s a kind of older computer purchased around 2008 with a NVIDIA GeForce 7100 / NVIDIA NForce 630i card) After updating my computer a heap, I still can’t get a single sound out of monogame. . . (graphics works fine so far) Why is this? Is monogame not meant for Vista? How can I get the sounds to work on monogame on my Vista?
I started with: Vista Service Pack 1, DirectX10 . . . and then installed Service Pack 2 for Vista, DirectX 11, .NET 4.5.2, Platform Update Suppliment for Windows Vista (KB2117917) . . . then just in case, repaired Visual Studio 2010 Express, (Seems like VS 2012 and VS 2013 are not for Vista) and unistalled XNA 4.0 and uninstalled Monogame 3.2, then re-installed XNA 4.0 and Monogame 3.2 . . . I turned off Anti-Virus as recommended for the Windows updates, and restarted the computer between updates, and used Installers from trusted sources, making sure I had all the requirements. . .
Oddly, XNA seems to be meant for VS 2010, and requires at least shader model 1.1, (which I think I have as I can play Terraria, which requires shader model 1.1) But even after all the updates an empty XNA solution will not even run successfully. . . I get this message from trying to run an empty XNA solution:
“No suitable graphics card found.
Could not find a Direct3D device that supports the XNA Framework HiDef profile.
Verify that a suitable graphics device is installed.
Make sure the desktop is not locked, and no other application is running in full screen mode.
Avoid Running under Remote Desktop or as a Windows service.
Check the display properties to make sure hardware acceleration is set to Full.”
BUT I can still build an empty XNA content solution and get some *.XNB files that worked with monogame.
YET Monogame’s graphics seem to be working perfectly-- I will still get an error if I try to load a sound file that is not found in the content folder, and when I load one that exists the monogame program gives me no error, BUT when I try to play it, I have yet to get a peep of audio. . . I tried to play with both MediaPlayer (as a ‘Song’ object) and a SoundEffect object. . .+tried to change the volume to 1.0… (also made the program stall about 2 seconds before playing the sound. And made sure the line was executing)
But I still get no sound. I even used Audacity to be sure my WAV file was at 16-bit and 44100 + used sounds found in tutorial examples, Yet even the sounds converted to XNB will not work at all in monogame. I mean come on, isn’t playing a soundfile something super basic and easy for a computer to do? I’ve been running Pygame and its sound are working fine even on older computers. . . I seriously don’t think I need High-speed Direct3D graphics from DirectX11 simply to play some tiny sound effects. . . . (Although I updated my computer just in case)
Sorry, just a tad bit frustrated… How can I get this to work in monogame with as little changes to my computer as possible?
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Media;
. . .
SoundEffect SOUND = Content.Load(“SOUNDS/character_ouch”);
float volume = 1.0f;
float pitch = 0.0f;
float pan = 0.0f;
SOUND.Play(volume, pitch, pan);
(PS I don’t want to update to Windows 7 because all my programs are already installed to work on Vista.)
Hope I can get this fixed and just start making my game already! Phew.