AudioInputSource

sealed class AudioInputSource

Source of audio for com.musicmuni.voxatrace.sonix.SonixRecorder.

Defaults to Microphone. Use File to stream a WAV file through the recorder as if it were live microphone input — deterministic tests, replay, or offline analysis of pre-recorded material. File input is decoded to mono 16-bit PCM at the recorder's configured sample rate (any input rate/channel count is accepted; see ADR-017) and emitted in real time on the same monotonic clock domain as live capture (ADR-021), so downstream consumers (level metering, pitch detection, live evaluation) behave identically.

Inheritors

Types

Link copied to clipboard
data class File(val path: String, val loop: Boolean = false, val leadInSilenceMs: Long = 0) : AudioInputSource

A WAV file streamed as microphone input.

Link copied to clipboard

Live device microphone (default).