Closed filiph closed 6 months ago
Description
When accidentally trying to add a filter that has already been added, the exception thrown is SoLoudFilterNotFoundException.
SoLoudFilterNotFoundException
This is because SoLoudController().soLoudFFI.addGlobalFilter(filterType.index) returns PlayerErrors.filterNotFound (12).
SoLoudController().soLoudFFI.addGlobalFilter(filterType.index)
PlayerErrors.filterNotFound
This could lead developers on a wild goose chase ("why is that filter not found?").
Steps To Reproduce
SoLoud.instance.addGlobalFilter(FilterType.freeverbFilter);
Expected Behavior
A SoLoudFilterAlreadyAddedException is thrown. Or something similar.
SoLoudFilterAlreadyAddedException
Additional Context
This is not a high priority and not urgent.
Description
When accidentally trying to add a filter that has already been added, the exception thrown is
SoLoudFilterNotFoundException
.This is because
SoLoudController().soLoudFFI.addGlobalFilter(filterType.index)
returnsPlayerErrors.filterNotFound
(12).This could lead developers on a wild goose chase ("why is that filter not found?").
Steps To Reproduce
SoLoud.instance.addGlobalFilter(FilterType.freeverbFilter);
Expected Behavior
A
SoLoudFilterAlreadyAddedException
is thrown. Or something similar.Additional Context
This is not a high priority and not urgent.