Class AudioCaptureOptions
- Namespace
- DotNetBrowser.Media
- Assembly
- DotNetBrowser.dll
The options of an audio capture session.
public sealed class AudioCaptureOptions : IAudioCaptureOptions
- Inheritance
-
AudioCaptureOptions
- Implements
- Inherited Members
Remarks
A captured buffer must last from 10 to 500 milliseconds, that is, FramesPerBuffer must be from a hundredth to a half of SampleRate. This rule is checked when the options are passed to StartCapture(AudioCaptureOptions).
A started session keeps a read-only copy of these options in Options, so changing this instance afterwards affects only the sessions started with it later.
Fields
- DefaultFramesPerBuffer
The default number of frames per captured buffer.
- DefaultSampleRate
The default sample rate in hertz.
- MaxSampleRate
The maximum supported sample rate in hertz.
- MinSampleRate
The minimum supported sample rate in hertz.
Properties
- ChannelLayout
Gets or sets the channel layout of the captured audio.
- FramesPerBuffer
Gets or sets the number of frames in each captured buffer.
- MuteSource
Gets or sets a value indicating whether the browser stops playing its audio while it is captured.
- SampleRate
Gets or sets the sample rate in hertz.