Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Properly fix the audio rate issues with PSS

  • Loading branch information...
commit 8737816db358fe47bdf189f2163c0aa52b86cd93 1 parent e874751
@danzel authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 MonoGame.Framework/PSSuite/Audio/Sound.cs
View
4 MonoGame.Framework/PSSuite/Audio/Sound.cs
@@ -58,7 +58,7 @@ public void Play()
if (_soundPlayer != null )
{
_soundPlayer.Volume = this.Volume;
- _soundPlayer.PlaybackRate = this.Rate;
+ _soundPlayer.PlaybackRate = this.Rate + 1.0f;
_soundPlayer.Pan = this.Pan;
_soundPlayer.Loop = this.Looping;
_soundPlayer.Play();
@@ -89,7 +89,6 @@ public Sound(string filename, float volume, bool looping)
this.Looping = looping;
this.Volume = volume;
- this.Rate = 1.0f;
}
public Sound(byte[] audiodata, float volume, bool looping)
@@ -99,7 +98,6 @@ public Sound(byte[] audiodata, float volume, bool looping)
this.Looping = looping;
this.Volume = volume;
- this.Rate = 1.0f;
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.