1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-01 12:37:11 -05:00
sdrangel/plugins/samplesource/audioinput/readme.md

66 lines
2.7 KiB
Markdown
Raw Normal View History

2020-11-09 16:12:08 -05:00
<h1>Audio input plugin</h1>
<h2>Introduction</h2>
This input sample source plugin gets its samples from an audio device.
<h2>Interface</h2>
The top and bottom bars of the device window are described [here](../../../sdrgui/device/readme.md)
2020-11-09 16:12:08 -05:00
![Audio input plugin GUI](../../../doc/img/AudioInput_plugin.png)
<h3>1: Start/Stop</h3>
Device start / stop button.
- Blue triangle icon: device is ready and can be started
- Green square icon: device is running and can be stopped
- Magenta (or pink) square icon: an error occurred. In the case the device was accidentally disconnected you may click on the icon, plug back in and start again.
2023-03-11 03:56:18 -05:00
<h3>2: Auto remove DC component</h3>
Software DSP auto remove DC correction. This will work in I/Q mode (stereo I/Q) only.
<h3>3: Auto make I/Q balance</h3>
Software DSP auto I/Q imbalance correction. The DC correction (8) must be enabled for this to be effective. This will work in I/Q mode (stereo I/Q) only.
<h3>4: Device</h3>
2020-11-09 16:12:08 -05:00
The audio device to use.
2023-03-11 03:56:18 -05:00
<h3>5: Refresh devices</h3>
2020-11-09 16:12:08 -05:00
Refresh the list of audio devices.
2023-03-11 03:56:18 -05:00
<h3>6: Audio sample rate</h3>
2020-11-09 16:12:08 -05:00
Audio sample rate in Hz (Sa/s).
2023-03-11 03:56:18 -05:00
<h3>7: Decimation</h3>
2020-11-09 16:12:08 -05:00
A decimation factor to apply to the audio data. The baseband sample rate will be the audio sample, divided by this decimation factor.
<h3>8: Decimated bandpass center frequency position relative to the device center frequency</h3>
2023-03-11 03:56:18 -05:00
This will work in I/Q mode (stereo I/Q) only.
- **Cen**: the decimation operation takes place around the device center frequency Fs
- **Inf**: the decimation operation takes place around Fs - Fc.
- **Sup**: the decimation operation takes place around Fs + Fc.
<h3>9: Volume</h3>
2020-11-09 16:12:08 -05:00
A control to set the input volume. This is not supported by all input audio devices.
2023-03-11 03:56:18 -05:00
<h3>10: Channel Map</h3>
2020-11-09 16:12:08 -05:00
This controls how the left and right audio channels map on to the IQ channels.
2020-11-09 16:12:08 -05:00
2024-04-29 07:58:37 -04:00
* Mono L - Real samples are taken from the left audio channel and are heterodyned by the fourth of the sample rate (fs/4) to obtain complex samples. Therefore the spectrum of the complex baseband is centered at the fourth of the sample rate (fs/4). As per Nyquist rule only a bandwidth of half of the sample rate (fs/2) is available for real signals. Frequencies outside the [0, fs/2] interval are artifacts and can be eliminated by decimating by a factor of 2.
* Mono R - Same as above but takes the right audio channel for the real signal.
* I=L, Q=R - The left audio channel is driven to the I channel. The right audio channel is driven to the Q channel for a complex (analytic signal)input.
* I=R, Q=L - The right audio channel is driven to the I channel. The left audio channel is driven to the Q channel for a complex (analytic signal)input.