Revert "Audio: Make cheap OpenAL pitch shifting a config option"
Making this an option makes no sense. It ought to
be the default behavior, as RMXP pitch shifts PCM
based audio files the exact same way.
This reverts commit ac35d4214e
.
This commit is contained in:
parent
ac35d4214e
commit
e26d0366f1
|
@ -82,8 +82,6 @@ mkxp reads configuration data from the file "mkxp.conf" contained in the current
|
||||||
| defScreenH | int | 480 | Height the game window starts in |
|
| defScreenH | int | 480 | Height the game window starts in |
|
||||||
| fixedFramerate | int | 0 | FPS will be fixed to this amount. Ignored if 0. |
|
| fixedFramerate | int | 0 | FPS will be fixed to this amount. Ignored if 0. |
|
||||||
| solidFonts | bool | false | Don't use alpha blending for fonts |
|
| solidFonts | bool | false | Don't use alpha blending for fonts |
|
||||||
| fastSoundPitch | bool | true | Use cheap OpenAL pitch shifting for sounds (SE) |
|
|
||||||
| fastMusicPitch | bool | false | Use cheap OpenAL pitch shifting for music (BGM/BGS/ME) |
|
|
||||||
| gameFolder | string | "." | mkxp will look for all game related files here |
|
| gameFolder | string | "." | mkxp will look for all game related files here |
|
||||||
| allowSymlinks | bool | false | Allow symlinks to be followed in the game folder. |
|
| allowSymlinks | bool | false | Allow symlinks to be followed in the game folder. |
|
||||||
| customScript | string | "" | Execute a raw ruby script file instead of an RPG Maker game. |
|
| customScript | string | "" | Execute a raw ruby script file instead of an RPG Maker game. |
|
||||||
|
|
|
@ -26,7 +26,6 @@
|
||||||
#include "intrulist.h"
|
#include "intrulist.h"
|
||||||
#include "filesystem.h"
|
#include "filesystem.h"
|
||||||
#include "exception.h"
|
#include "exception.h"
|
||||||
#include "config.h"
|
|
||||||
#include "al-util.h"
|
#include "al-util.h"
|
||||||
|
|
||||||
#include <QByteArray>
|
#include <QByteArray>
|
||||||
|
@ -301,7 +300,6 @@ struct SoundEmitter
|
||||||
AL::Source::setVolume(src, _volume);
|
AL::Source::setVolume(src, _volume);
|
||||||
|
|
||||||
#ifndef RUBBERBAND
|
#ifndef RUBBERBAND
|
||||||
if (shState->config().fastSoundPitch)
|
|
||||||
AL::Source::setPitch(src, clamp<int>(pitch, 50, 150) / 100.f);
|
AL::Source::setPitch(src, clamp<int>(pitch, 50, 150) / 100.f);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -763,7 +761,6 @@ private:
|
||||||
needsRewind = false;
|
needsRewind = false;
|
||||||
|
|
||||||
#ifndef RUBBERBAND
|
#ifndef RUBBERBAND
|
||||||
if (shState->config().fastMusicPitch)
|
|
||||||
AL::Source::setPitch(alSrc, pitch);
|
AL::Source::setPitch(alSrc, pitch);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,8 +39,6 @@ Config::Config()
|
||||||
defScreenH(480),
|
defScreenH(480),
|
||||||
fixedFramerate(0),
|
fixedFramerate(0),
|
||||||
solidFonts(false),
|
solidFonts(false),
|
||||||
fastSoundPitch(true),
|
|
||||||
fastMusicPitch(false),
|
|
||||||
gameFolder("."),
|
gameFolder("."),
|
||||||
allowSymlinks(false)
|
allowSymlinks(false)
|
||||||
{}
|
{}
|
||||||
|
@ -61,8 +59,6 @@ void Config::read()
|
||||||
READ_VAL(defScreenH, Int);
|
READ_VAL(defScreenH, Int);
|
||||||
READ_VAL(fixedFramerate, Int);
|
READ_VAL(fixedFramerate, Int);
|
||||||
READ_VAL(solidFonts, Bool);
|
READ_VAL(solidFonts, Bool);
|
||||||
READ_VAL(fastSoundPitch, Bool);
|
|
||||||
READ_VAL(fastMusicPitch, Bool);
|
|
||||||
READ_VAL(gameFolder, ByteArray);
|
READ_VAL(gameFolder, ByteArray);
|
||||||
READ_VAL(allowSymlinks, Bool);
|
READ_VAL(allowSymlinks, Bool);
|
||||||
READ_VAL(customScript, ByteArray);
|
READ_VAL(customScript, ByteArray);
|
||||||
|
|
|
@ -44,9 +44,6 @@ struct Config
|
||||||
|
|
||||||
bool solidFonts;
|
bool solidFonts;
|
||||||
|
|
||||||
bool fastSoundPitch;
|
|
||||||
bool fastMusicPitch;
|
|
||||||
|
|
||||||
QByteArray gameFolder;
|
QByteArray gameFolder;
|
||||||
bool allowSymlinks;
|
bool allowSymlinks;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue