Skip to content


Subversion checkout URL

You can clone with
Download ZIP


SoundEffectInstance.State property getter returns a value in all #if conditionals #868

merged 1 commit into from

2 participants


In an attempt to fix the PSMobile project, this is a first fix.

The problem is that this property did not return a value in all different #if conditional branches (namely - in the last #elif, which PSMobile falls under since it is not Android or WinRT).

The fix is to simply return the private soundState field, as was before (i guess it was accidentally removed? )


A property getter that does not return anything is rather pointless.

@KonajuGames KonajuGames merged commit 717777d into mono:develop3d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 14, 2012
  1. @liortal53
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 1 deletion.
  1. +3 −1 MonoGame.Framework/Audio/SoundEffectInstance.cs
4 MonoGame.Framework/Audio/SoundEffectInstance.cs
@@ -1,4 +1,4 @@
-#region License
+#region License
// /*
// Microsoft Public License (Ms-PL)
// MonoGame - Copyright © 2009 The MonoGame Team
@@ -487,6 +487,8 @@ public SoundState State
soundState = SoundState.Stopped;
+ return soundState;
Something went wrong with that request. Please try again.