attachBridge method

Future<void> attachBridge(
  1. NativeEqualizerBridge bridge
)

Attach a NativeEqualizerBridge so that all band gain changes are forwarded to the platform equalizer in real-time.

Implementation

Future<void> attachBridge(NativeEqualizerBridge bridge) async {
  _nativeBridge = bridge;
  try {
    await _nativeBridge!.setEnabled(isEnabled);
    await _applyGainsToNative();
  } catch (e, st) {
    NeomErrorLogger.recordError(e, st, module: 'neom_sound', operation: 'attachBridge');
  }
}