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

uint8ListSink property

StreamSink<Uint8List>? get uint8ListSink

Getter of one of the three StreamSink that you may use to feed a player from Stream.


This stream is used when you have 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: true,
);

myPlayer.uint8ListSink.add(myData);

See also


Implementation

StreamSink<Uint8List>? get uint8ListSink =>
    _pcmUint8Controller != null ? _pcmUint8Controller!.sink : null;
flutter_sound 9.25.3