Repository navigation
API Interface AudioCapture
Defined in: src/plugins/audio/runtime/capture/capture.ts:65
Audio.capture (§1.2).
readonly bytes: number;Defined in: src/plugins/audio/runtime/capture/capture.ts:70
readonly seconds: number;Defined in: src/plugins/audio/runtime/capture/capture.ts:69
The ring's content, seconds; 0 while idle.
readonly state: AudioCaptureState;Defined in: src/plugins/audio/runtime/capture/capture.ts:67
"idle" -> "loading" (recorder chunk fetching) -> "recording" -> "stopped" (a take exists to save).
readonly truncated: boolean;Defined in: src/plugins/audio/runtime/capture/capture.ts:72
True when the ring wrapped over the take's start: the file begins at a later keyframe and is marked truncated.
mark(text): void;Defined in: src/plugins/audio/runtime/capture/capture.ts:78
A timeline marker at the current frame, cut to CAPTURE_MARKER_MAX_BYTES (120) UTF-8 bytes. No-op while no ring runs.
string
void
save(name?): Promise<string>;Defined in: src/plugins/audio/runtime/capture/capture.ts:80
Compress and save the take; resolves with the web file name or the app-data path. Rejects with "nothing recorded: call Audio.capture.start() first" when there is no take.
string
Promise<string>
start(): Promise<void>;Defined in: src/plugins/audio/runtime/capture/capture.ts:74
Load the recorder (a lazy chunk) and begin a take. Resolves once recording; rejects with a message if the chunk or the core is unavailable. A second call while recording joins it, writes a marker and resolves at once.
Promise<void>
stop(): void;Defined in: src/plugins/audio/runtime/capture/capture.ts:76
End the caller's hold. The ring keeps recording while the Profiler panel is open (one ring, shared).
void
This wiki is generated from docs/wiki/ and the myco module's source on every push to master. Change pages there in a pull request: edits made here are not kept.
Basics
Gameplay
Rendering
Audio
- Playing sound
- Why is there no sound?
- Playlists
- Interactive music
- Sound generators
- Spatial audio
- Audio mixer
- Live mixing
- Loudness
- Audio profiler
- Audio takes
Reference