MonoGame DesktopGL Audio broken on Windows?

Hi all,

So I was playing with MonoGame here across my Windows Machine and Linux Machine. I liked it a lot so I started porting one of my C++ Games to C# with Monogame.

So I had a problem here that I couldn’t get the MediaPlayer to work. Not even the SoundEffects work. Sadly I get no errors at all. So I decided to post here and ask for help. To do that I made a very simple setup with a Mp3 file I’m trying and how I tryed. Here is the source code: https://github.com/racerxdl/MGDGLSongTest

Just for reference I tested the same code as a Windows Project (with DirectX not OpenGL) and the Song works fine.

So just for reference, I’m on Windows 10 with Visual Studio 2015 and MonoGame 3.5.1. And here is the console output of the game:

‘Game2.vshost.exe’ (CLR v4.0.30319: Game2.vshost.exe): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll’. Cannot find or open the PDB file.
‘Game2.vshost.exe’ (CLR v4.0.30319: Game2.vshost.exe): Loaded ‘C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\14.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll’. Cannot find or open the PDB file.
‘Game2.vshost.exe’ (CLR v4.0.30319: Game2.vshost.exe): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll’. Cannot find or open the PDB file.
‘Game2.vshost.exe’ (CLR v4.0.30319: Game2.vshost.exe): Loaded ‘C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\14.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll’. Cannot find or open the PDB file.
‘Game2.vshost.exe’ (CLR v4.0.30319: Game2.vshost.exe): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll’. Cannot find or open the PDB file.
‘Game2.vshost.exe’ (CLR v4.0.30319: Game2.vshost.exe): Loaded ‘C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\14.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll’.
‘Game2.vshost.exe’ (CLR v4.0.30319: Game2.vshost.exe): Loaded ‘c:\Users\Lucas\Documents\Visual Studio 2015\Projects\Game2\Game2\bin\DesktopGL\x86\Debug\Game2.vshost.exe’. Cannot find or open the PDB file.
‘Game2.vshost.exe’ (CLR v4.0.30319: Game2.vshost.exe): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll’. Cannot find or open the PDB file.
‘Game2.vshost.exe’ (CLR v4.0.30319: Game2.vshost.exe): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\mscorlib.resources\v4.0_4.0.0.0_pt-BR_b77a5c561934e089\mscorlib.resources.dll’. Module was built without symbols.
The thread 0x2dfc has exited with code 0 (0x0).
The thread 0x31d8 has exited with code 0 (0x0).
The thread 0x3278 has exited with code 0 (0x0).
‘Game2.vshost.exe’ (CLR v4.0.30319: Game2.vshost.exe): Loaded ‘c:\users\lucas\documents\visual studio 2015\Projects\Game2\Game2\bin\DesktopGL\x86\Debug\Game2.exe’. Symbols loaded.
‘Game2.vshost.exe’ (CLR v4.0.30319: Game2.vshost.exe): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll’. Cannot find or open the PDB file.
‘Game2.vshost.exe’ (CLR v4.0.30319: Game2.vshost.exe): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Accessibility\v4.0_4.0.0.0__b03f5f7f11d50a3a\Accessibility.dll’. Cannot find or open the PDB file.
‘Game2.vshost.exe’ (CLR v4.0.30319: Game2.vshost.exe): Loaded ‘c:\users\lucas\documents\visual studio 2015\Projects\Game2\Game2\bin\DesktopGL\x86\Debug\MonoGame.Framework.dll’. Module was built without symbols.
‘Game2.vshost.exe’ (CLR v4.0.30319: Game2.vshost.exe): Loaded ‘c:\users\lucas\documents\visual studio 2015\Projects\Game2\Game2\bin\DesktopGL\x86\Debug\OpenTK.dll’. Module was built without symbols.
‘Game2.vshost.exe’ (CLR v4.0.30319: Game2.vshost.exe): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll’. Cannot find or open the PDB file.
‘Game2.vshost.exe’ (CLR v4.0.30319: Game2.vshost.exe): Loaded ‘c:\users\lucas\documents\visual studio 2015\Projects\Game2\Game2\bin\DesktopGL\x86\Debug\NVorbis.dll’. Cannot find or open the PDB file.

Am I doing something wrong?

Thanks,

Lucas

Ok so it looks like I found what was the issue. Besides there is no error, I was thinking about this issue https://github.com/mono/MonoGame/issues/4329.

So I tryed to get the openal32.dll from my system and put in the game folder. And PUFF, it worked.

Weirdly, the Issue says that I should get an error when openal32 is missing, but I didnt.