CaptureConfig class

The configuration of a capture session. Every field is a realtime trade-off.

Constructors

CaptureConfig({int sampleRate = 44100, int channels = 1, int hop = 512, int ringCapacity = 512, int scopeCapacity = 256, Duration maxDuration = const Duration(minutes: 30), Duration drainInterval = const Duration(milliseconds: 16), String? recordTo})
const

Properties

channels int
final
drainInterval Duration
How often the consumer moves frames out of the ring.
final
hashCode int
The hash code for this object.
no setterinherited
hop int
Samples in each reduced frame.
final
maxDuration Duration
How much history CaptureSession.stop can return.
final
recordTo String?
Where to write the captured audio, or null to keep only the reduction.
final
ringCapacity int
Frames that the ring holds before the producer drops frames.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampleRate int
final
scopeCapacity int
Frames that the rolling visualizer window keeps.
final
takeCapacity int
Hops that the take buffer must hold to cover maxDuration.
no setter

Methods

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