When I try to use it, it gives me this error.
HRESULT: [0x80004003], Module: [General], ApiCode: [E_POINTER/Invalid pointer], Message: Invalid pointer
The code is pretty simple:
if (bMusic != optionsMenu.bMusic)
{
if (optionsMenu.bMusic == true)
{
MediaPlayer.Resume();
}
else
{
MediaPlayer.Pause();
}
bMusic = optionsMenu.bMusic;
}