Repository navigation
API Interface AudioTake
Defined in: src/plugins/audio/runtime/capture/take.ts:26
Audio.take (ADR 0348).
readonly seconds: number;Defined in: src/plugins/audio/runtime/capture/take.ts:30
Seconds recorded (the running take's, else the last take's); 0 while idle.
readonly state: AudioTakeState;Defined in: src/plugins/audio/runtime/capture/take.ts:28
"idle" -> "loading" (the recorder chunk fetching) -> "recording" -> "stopped" (a take exists to save).
mark(text): void;Defined in: src/plugins/audio/runtime/capture/take.ts:36
A marker on the take's timeline (and the profile's) at now. No-op while no take records.
string
void
save(name?): Promise<string>;Defined in: src/plugins/audio/runtime/capture/take.ts:38
Compress and save the take (*.sporesample); resolves with the web file name or the app-data path. Stops a running take first. Rejects with "nothing recorded: call Audio.take.start() first" when there is no take.
string
Promise<string>
start(): Promise<void>;Defined in: src/plugins/audio/runtime/capture/take.ts:32
Load the recorder (a lazy chunk) and begin a take, with a capture of the engine's profile beside it. Resolves once recording; rejects with a message if the audio core isn't available. A second call while recording does nothing.
Promise<void>
stop(): void;Defined in: src/plugins/audio/runtime/capture/take.ts:34
End the take. It is kept for save() until the next start().
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