Recorder class final
Controls audio recoding.
Should be initialized before doing anything.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
init(
[int periodMs = 64]) → Future< void> - Initializes the recorder.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
saveRecBuf(
{AudioEncoding encoding = AudioEncoding.wav, SampleFormat? sampleFormat, int? channelCount, int? sampleRate}) → Future< BufRec> -
Starts recording into in-RAM buffer. After the recording is stopped, it can be directly fed into
Engine::loadSound. -
saveRecFile(
String filePath, {AudioEncoding encoding = AudioEncoding.wav, SampleFormat? sampleFormat, int? channelCount, int? sampleRate}) → Future< FileRec> - Creates a file and starts recording into it.
-
start(
) → Future< void> - Starts the recorder.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited