float32Sink
float32Sink property
Getter of one of the three StreamSink that you may use to feed a player from Stream.
This stream is used when you have NOT interleaved audio data and you don't want a flow control. You can look to this small guide if you need precisions.
Return
The StreamSink that you may use to feed the player
example
await myPlayer.startPlayerFromStream
(
codec: Codec.pcmFloat32
numChannels: 2
sampleRate: 48100
interleaved: false,
);
myPlayer.float32Sink.add(myData);
See also
- uint8ListSink
- int16Sink
- feedF32FromStream()
- feedInt16FromStream()
- feedF32FromStream()
- You can also look to this small guide if you need precisions.
Implementation
StreamSink<List<Float32List>>? get float32Sink =>
_pcmF32Controller != null ? _pcmF32Controller!.sink : null;