MeditationAudioCache class
Accumulates mic audio chunks during a meditation session.
Stores raw PCM data in memory for local processing at session end. Does NOT upload audio to Firebase — only the report metrics.
Constructors
Properties
- chunkCount → int
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalBytes → int
-
no setter
Methods
-
addChunk(
Uint8List chunk) → void - Add a PCM audio chunk from the mic.
-
clear(
) → void - Clear cache after processing.
-
consolidate(
) → Uint8List? - Get all cached audio as a single buffer (for local analysis).
-
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