Skip to content

Commit 7526783

Browse files
committed
Add a preference so people can turn off pitch rates if they want.
1 parent 8d9d23a commit 7526783

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/RageSoundReader_PitchChange.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
#include "RageSoundReader_SpeedChange.h"
1414
#include "RageSoundReader_Resample_Good.h"
1515
#include "RageLog.h"
16+
#include "Preference.h"
1617

18+
Preference<bool> EnablePitchRates("EnablePitchRates", true);
1719
RageSoundReader_PitchChange::RageSoundReader_PitchChange( RageSoundReader *pSource ):
1820
RageSoundReader_Filter( NULL )
1921
{
@@ -88,7 +90,8 @@ bool RageSoundReader_PitchChange::SetProperty( const RString &sProperty, float f
8890
/* HACK: Put rate functions back together,
8991
this needs to be refactored. */
9092
SetSpeedRatio( fValue );
91-
SetPitchRatio( fValue );
93+
if(EnablePitchRates.Get())
94+
SetPitchRatio( fValue );
9295
return true;
9396
}
9497

0 commit comments

Comments
 (0)