AudioFrameSink class abstract
A sink for AudioFrames that should be transported to the Mumble server.
Use the onError callback to receive transport errors.
- Inheritance
-
- Object
- StreamSink<
AudioFrame> - AudioFrameSink
Constructors
- AudioFrameSink({required AudioCodec codec, AudioErrorCallback? onError})
Properties
- codec → AudioCodec
-
The currently used audio codec
final
- done → Future
-
Return a future which is completed when the StreamSink is finished.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- onError ↔ AudioErrorCallback?
-
Invoked when an audio error occurs
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
AudioFrame event) → void -
Adds a data
event
to the sink.inherited -
addError(
Object error, [StackTrace? stackTrace]) → void -
Adds an
error
to the sink.inherited -
addStream(
Stream< AudioFrame> stream) → Future -
Consumes the elements of
stream
.inherited -
close(
) → Future -
Tells the stream sink that no further streams will be added.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited