Skip to main content Link Menu Expand (external link) Document Search Copy Copied
float32Sink property - FlutterSoundPlayer class - player library - Dart API
menu
float32Sink

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 != null ? _pcmF32Controller!.sink : null;
flutter_sound 9.25.3