float32Sink property

StreamSink<List<Float32List>>? get float32Sink

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


Implementation

StreamSink<List<Float32List>>? get float32Sink => _pcmF32Controller?.sink;