isFilterActive method
- @Deprecated('Please, to manage global filters use SoLoud.filters instead')
- FilterType filterType
Checks whether the given filterType
is active.
Returns -1
if the filter is not active. Otherwise, returns
the index of the given filter.
Implementation
@Deprecated('Please, to manage global filters use SoLoud.filters instead')
int isFilterActive(FilterType filterType) {
final ret = _controller.soLoudFFI.isFilterActive(filterType);
if (ret.error != PlayerErrors.noError) {
_log.severe(() => 'isFilterActive(): ${ret.error}');
throw SoLoudCppException.fromPlayerError(ret.error);
}
return ret.index;
}