pushSample method
Pushes a sample to the outlet.
Parameters:
data
: List of values that will be used to initialize the sample. The type should match the channel format and length should match the channel count.
Execution:
- Isolated mode: Async message passing to worker isolate
- Direct mode: Immediate FFI call wrapped in Future
Returns: Error code (0 = success).
See also: pushSampleSync for zero-overhead direct calls
Implementation
Future<int> pushSample(List<dynamic> data) => _useIsolates
? _pushSampleIsolated(data)
: Future.value(_pushSampleDirect(data));