mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-04 03:35:19 +02:00
Sas: Default to the right preset in reverb.
This needs to match waveformEffect.type, which is the default on the PSP. Otherwise, setting to OFF initially does nothing, and it remains ROOM.
This commit is contained in:
@@ -152,7 +152,7 @@ static const SasReverbData presets[10] = {
|
||||
},
|
||||
};
|
||||
|
||||
SasReverb::SasReverb() : preset_(0), pos_(0) {
|
||||
SasReverb::SasReverb() : preset_(-1), pos_(0) {
|
||||
workspace_ = new int16_t[BUFSIZE];
|
||||
}
|
||||
|
||||
@@ -161,6 +161,9 @@ SasReverb::~SasReverb() {
|
||||
}
|
||||
|
||||
const char *SasReverb::GetPresetName(int preset) {
|
||||
if (preset == -1) {
|
||||
return "Off";
|
||||
}
|
||||
return presets[preset].name;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user