RawSoundPlayer class

A player for playing the raw PCM audio data

Implemented types

Constructors

RawSoundPlayer()

Properties

hashCode int
The hash code for this object.
no setterinherited
isInited bool
True if the player is already initialized by initialize()
no setter
isPaused bool
True if the playback is paused
no setter
isPlaying bool
True if the playback is ongoing
no setter
isStopped bool
True if the playback is stopped
no setter
playState PlayState
The play state of the player
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

feed(Uint8List data) Future<void>
Feeds the player with raw PCM data block
initialize({int bufferSize = 4096 << 3, int nChannels = 1, int sampleRate = 16000, RawSoundPCMType pcmType = RawSoundPCMType.PCMI16}) Future<void>
Initializes the player
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() Future<void>
Pauses the playback
play() Future<void>
Starts the playback
release() Future<void>
Releases the player
resume() Future<void>
Resumes the playback that being paused
setVolume(double volume) Future<void>
Sets the volume
stop() Future<void>
Stops the playback
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited