test(ngs2): drop the submixer compressor check that asserts the unimplemented throw

Fix-up on JJenkx's change: the routing test no longer asserts that enabling the submixer compressor throws. The filter, disabled-compressor and render checks stay.
This commit is contained in:
Dean Galvin committed 2026-11-08 04:48:35 +13:00
1 parent 563f18cbb9
commit e14c2c5a44
1 file changed
-10
@@ -4,7 +4,6 @@
#include <cmath>
#include <cstdint>
#include <numbers>
#include <stdexcept>
#include <vector>
static Ngs2CustomSubmixerRackOption RackOption(std::uint32_t count, std::uint32_t channels = 2) {
@@ -274,15 +273,6 @@ static void TestSubmixerFilterOff() {
filter.level = 1.0f;
Control(submixer, SCE_NGS2_SUBMIXER_VOICE_PARAM_FILTER, filter);
}
Ngs2SubmixerVoiceCompressorParam enabled{{}, 0, 0.1f, 0.01f, 0.0f, 0.001f, 0.01f, 1.0f, 0};
enabled.header = {static_cast<std::uint16_t>(sizeof(enabled)), 0, SCE_NGS2_SUBMIXER_VOICE_PARAM_COMPRESSOR};
bool refused = false;
try {
sceNgs2VoiceControl(submixer, &enabled.header);
} catch (const std::runtime_error&) {
refused = true;
}
Require(refused);
Control(submixer, SCE_NGS2_SUBMIXER_VOICE_PARAM_COMPRESSOR, Ngs2SubmixerVoiceCompressorParam{{}, 1, 0.1f, 0.01f, 0.0f, 0.0f, 0.0f, 1.0f, 0});
Render(system, {0.25f}, 2, Grain, true);
Render(system, {0.25f});