JvmAudioRecordingSession
class JvmAudioRecordingSession(device: AudioDevice.Input, format: AudioFormat = DefaultJvmRecordingAudioFormat, warmupMillis: Int = JvmRecordingWarmupMillis) : BaseAudioRecordingSession
JVM implementation for AudioRecordingSession.
Parameters
device
The input device to record from.
format
The format of the audio data.
warmupMillis
Number of milliseconds of audio to read-and-discard immediately after TargetDataLine.start() so the silent priming frames the JavaSound stack produces (GitHub issue #5) don't show up at the beginning of every recording. Set to 0 to disable.
Constructors
Link copied to clipboard
constructor(device: AudioDevice.Input, format: AudioFormat = DefaultJvmRecordingAudioFormat, warmupMillis: Int = JvmRecordingWarmupMillis)
Properties
Functions
Link copied to clipboard
Suspends until audio captured before stop has been delivered into audioFlow. Some platforms hand over their last buffer shortly after stop returns (e.g. a Web Audio worklet); Recorder.getRecording waits on this so recordings are not cut short. No-op by default.