ffi_bridge library

Classes

DspBridge
Direct FFI communication bridge specifically mapped to libbaremetal_dsp.so or baremetal_dsp.dll. Used internally by state managers like BLoC.

Typedefs

GetFftDart = Pointer<Float> Function()
Defines the Dart layout for fetching the FFT pointer.
GetFftNative = Pointer<Float> Function()
Defines the native C layout for fetching the FFT pointer.
GetRmsDart = double Function()
Defines the Dart layout for RMS volume retrieval.
GetRmsNative = Float Function()
Defines the native C layout for RMS volume retrieval.
GetSubIdxDart = int Function()
Defines the Dart layout for querying subtitle index.
GetSubIdxNative = Int32 Function()
Defines the native C layout for querying subtitle index.
GetSubTextDart = Pointer<Utf8> Function(int index)
Defines the Dart layout for reading subtitle strings.
GetSubTextNative = Pointer<Utf8> Function(Int32 index)
Defines the native C layout for reading subtitle strings.
GetTimeDart = double Function()
Defines the Dart layout for the media clock time.
GetTimeNative = Double Function()
Defines the native C layout for the media clock time.
InitEngineDart = void Function(int mode, Pointer<Utf8> path)
Defines the Dart layout for initializing the engine.
InitEngineNative = Void Function(Int32 mode, Pointer<Utf8> path)
Defines the native C layout for initializing the engine.
LoadSubtitlesDart = void Function(Pointer<Utf8> data)
Defines the Dart layout for loading raw subtitle data.
LoadSubtitlesNative = Void Function(Pointer<Utf8> data)
Defines the native C layout for loading raw subtitle data.
SetGainDart = void Function(double gain)
Defines the Dart layout for adjusting signal gain.
SetGainNative = Void Function(Float gain)
Defines the native C layout for adjusting signal gain.
StopEngineDart = void Function()
Defines the Dart layout for halting the DSP thread.
StopEngineNative = Void Function()
Defines the native C layout for halting the DSP thread.