mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-22 17:45:48 -05:00
Multiple audio: updated documentation
This commit is contained in:
parent
ff5b6af6cc
commit
6c205fca65
BIN
doc/img/AudioDialog_input.png
Normal file
BIN
doc/img/AudioDialog_input.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 36 KiB |
BIN
doc/img/AudioDialog_input.xcf
Normal file
BIN
doc/img/AudioDialog_input.xcf
Normal file
Binary file not shown.
BIN
doc/img/AudioDialog_output.png
Normal file
BIN
doc/img/AudioDialog_output.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 38 KiB |
BIN
doc/img/AudioDialog_output.xcf
Normal file
BIN
doc/img/AudioDialog_output.xcf
Normal file
Binary file not shown.
BIN
doc/img/AudioDialog_select.png
Normal file
BIN
doc/img/AudioDialog_select.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
BIN
doc/img/AudioDialog_select.xcf
Normal file
BIN
doc/img/AudioDialog_select.xcf
Normal file
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 22 KiB |
Binary file not shown.
Before Width: | Height: | Size: 18 KiB |
213
sdrgui/audio.md
Normal file
213
sdrgui/audio.md
Normal file
@ -0,0 +1,213 @@
|
||||
<h1>Audio management</h1>
|
||||
|
||||
Audio devices can be controlled with two dialogs:
|
||||
- The Audio preferences dialog: set audio device parameters. The dialog shows one tab for output and another tab for input devices
|
||||
- The Audio selection dialog: each channel plugin having audio output or input can show this dialog to select which device to use to direct output or input streams. This dialog opens by right clicking on a button that depends on the plugin (see plugin documentation).
|
||||
|
||||
<h2>1. Audio output preferences</h2>
|
||||
|
||||
This dialog lets you set preferences for the audio output devices attached to the system. These devices may refer to actual physical devices or be virtual devices defined with Pulseaudio (Linux).
|
||||
|
||||
Each device is represented by a row in the list. Move the cursor with the mouse or the arrow keys to select the device you want to configure.
|
||||
|
||||
![Audio output preferences](../doc/img/AudioDialog_output.png)
|
||||
|
||||
<h3>1.1 Indicators column</h3>
|
||||
|
||||
In this column there are two indicators:
|
||||
|
||||
- `S`: for system default device. This is the device that is defined as system default. You may configure it directly or via the ` System default device` entry. <br/>☞ Note that (at least in Linux) you may affect different parameters to one or the other.
|
||||
- `D`: the device is unregistered so if you associate an output stream to it it will be registered with default values. Default values are:
|
||||
- Sample rate: 48000 S/s
|
||||
- UDP address: 127.0.0.1
|
||||
- UDP port: 9998
|
||||
- Copy audio to UDP: unchecked (false)
|
||||
- UDP copy channel mode: mono left channel (Left)
|
||||
- Use RTP protocol: unchecked (false)
|
||||
|
||||
A unset indicator is marked with an underscore character: `_`
|
||||
|
||||
<h3>1.2 Device name</h3>
|
||||
|
||||
This is the device name defined in the system. In Linux when you define virtual devices (null sinks) with Pulseaudio this is the name you have given when defining the device.
|
||||
|
||||
<h3>1.3 System default device</h3>
|
||||
|
||||
The device that is configured as system default is marked with a grey background behind its name
|
||||
|
||||
<h3>1.4 Selected device</h3>
|
||||
|
||||
The device currently selected is marked in the selection color (orange). The parameters below are updated with its corresponding values
|
||||
|
||||
<h3>1.5 Sample rate</h3>
|
||||
|
||||
This is the device sample rate in samples per second (S/s).
|
||||
|
||||
<h3>1.6 Reset values to defaults</h3>
|
||||
|
||||
By pushing this button the values are reset to the defaults (see 1.1 for actual default values)
|
||||
|
||||
<h3>1.7 UDP address</h3>
|
||||
|
||||
This is the destination address of the UDP stream
|
||||
|
||||
<h3>1.8 UDP port</h3>
|
||||
|
||||
This is the destination port of the UDP stream
|
||||
|
||||
<h3>1.9 Copy audio to UDP stream toggle</h3>
|
||||
|
||||
Use this button to activate or de-activate the copy of the audio stream to UDP stream
|
||||
|
||||
<h3>1.10 UDP copy channel mode</h3>
|
||||
|
||||
- `Left`: UDP stream is mono (1 channel) and the left audio channel is copied
|
||||
- `Right`: UDP stream is mono (1 channel) and the right audio channel is copied
|
||||
- `Mixed`: UDP stream is mono (1 channel) and the mix of left and right audio channels is copied
|
||||
- `Stereo`: UDP stream is stereo (2 channels) and audio channels are copied to their UDP channel counterparts respectively
|
||||
|
||||
<h3>1.11 Use RTP protocol over UDP</h3>
|
||||
|
||||
Check this box to activate the RTP protocol over UDP. RTP parameters are as follows:
|
||||
|
||||
- Payload type: 96
|
||||
- Sample rate: the sample rate of the corresponding audio device
|
||||
- Sample format: 16 bit integer signed (S16LE)
|
||||
- Channels: 1 for mono (Left, Right and Mixed copy channels mode); 2 for stereo (Stereo copy channels mode)
|
||||
- Address and port: destination address and port (local on the client machine)
|
||||
|
||||
You may read the RTP stream using a SDP file (extension `.sdp`) that can be read with any program supporting SDP files (VLC, MX player, ffmpeg, ...). For a mono 48000 S/s stream at address `192.168.0.34:9998` the contents of the file would be as follows:
|
||||
|
||||
```
|
||||
c=IN IP4 192.168.0.34
|
||||
m=audio 9998 RTP/AVP 96
|
||||
a=rtpmap:96 L16/48000/1
|
||||
```
|
||||
|
||||
☞ Note that on Android clients VLC has trouble working with the RTP stream (choppy audio, hanging unexpectedly...) therefore [MX player](https://play.google.com/store/apps/details?id=com.mxtech.videoplayer.ad&hl=en) is recommended.
|
||||
|
||||
<h3>1.12 Cleanup registrations not in the list</h3>
|
||||
|
||||
Use this button to keep only the visible devices in the devices registrations. The devices registrations with custom parameters are kept in the preferences using the device names. This button makes some tidying up when devices are permanently removed.
|
||||
|
||||
<h3>1.14 Unregister device</h3>
|
||||
|
||||
Use this button to remove the device from the devices registrations returning it to the unregistered state. Therefore when associated to an output stream or selected it will initially take default values and appear with the `D` induicator in the list.
|
||||
|
||||
<h3>1.15 OK button</h3>
|
||||
|
||||
Use this button to confirm your changes and close dialog. Note that you can change parameters of only one device at a time.
|
||||
|
||||
<h3>1.16 Cancel button</h3>
|
||||
|
||||
Use this button to dismiss your changes and close dialog.
|
||||
|
||||
|
||||
<h2>2. Audio input preferences</h2>
|
||||
|
||||
This dialog lets you set preferences for the audio input devices attached to the system. These devices may refer to actual physical devices or be virtual devices defined with Pulseaudio (Linux).
|
||||
|
||||
Each device is represented by a row in the list. Move the cursor with the mouse or the arrow keys to select the device you want to configure.
|
||||
|
||||
![Audio input preferences](../doc/img/AudioDialog_input.png)
|
||||
|
||||
<h3>2.1 Indicators column</h3>
|
||||
|
||||
In this column there are two indicators:
|
||||
|
||||
- `S`: for system default device. This is the device that is defined as system default. You may configure it directly or via the ` System default device` entry. <br/>☞ Note that (at least in Linux) you may affect different parameters to one or the other.
|
||||
- `D`: the device is unregistered so if you associate an input stream to it it will be registered with default values. Default values are:
|
||||
- Sample rate: 48000 S/s
|
||||
- Volume: 0.15
|
||||
|
||||
A unset indicator is marked with an underscore character: `_`
|
||||
|
||||
<h3>2.2 Device name</h3>
|
||||
|
||||
This is the device name defined in the system. In Linux when you define virtual devices (null sinks) with Pulseaudio an input device is automatically created with the `.monitor` extension.
|
||||
|
||||
<h3>2.3 System default device</h3>
|
||||
|
||||
The device that is configured as system default is marked with a grey background behind its name
|
||||
|
||||
<h3>2.4 Selected device</h3>
|
||||
|
||||
The device currently selected is marked in the selection color (orange). The parameters below are updated with its corresponding values
|
||||
|
||||
<h3>2.5 Sample rate</h3>
|
||||
|
||||
This is the device sample rate in samples per second (S/s).
|
||||
|
||||
<h3>2.6 Input volume</h3>
|
||||
|
||||
This factor in the range [0.01 .. 1.00] is applied to the input before modulation.
|
||||
|
||||
<h3>2.7 Reset values to defaults</h3>
|
||||
|
||||
By pushing this button the values are reset to the defaults (see 2.1 for actual default values)
|
||||
|
||||
<h3>2.8 Cleanup registrations not in the list</h3>
|
||||
|
||||
Use this button to keep only the visible devices in the devices registrations. The devices registrations with custom parameters are kept in the preferences using the device names. This button makes some tidying up when devices are permanently removed.
|
||||
|
||||
<h3>2.9 Unregister device</h3>
|
||||
|
||||
Use this button to remove the device from the devices registrations returning it to the unregistered state. Therefore when associated to an output stream or selected it will initially take default values and appear with the `D` induicator in the list.
|
||||
|
||||
<h3>2.10 OK button</h3>
|
||||
|
||||
Use this button to confirm your changes and close dialog. Note that you can change parameters of only one device at a time.
|
||||
|
||||
<h3>2.11 Cancel button</h3>
|
||||
|
||||
Use this button to dismiss your changes and close dialog.
|
||||
|
||||
<h2>3 Audio device selection</h2>
|
||||
|
||||
In plugins having audio input or output this dialog can be opened to select the input or output device for the audio stream. The exact button that opens the dialog by right clicking on it depends on the plugin. Generally this will be the audio in selection (microphone icon) for input plugins and the audio mute (loudspeaker icon) for output plugins. You may check the plugin documentation for confirmation.
|
||||
|
||||
The dialog for input or output is similar. The screenshot below is taken from an output selection.
|
||||
|
||||
![Audio device selection](../doc/img/AudioDialog_select.png)
|
||||
|
||||
|
||||
<h3>3.1 Indicators column</h3>
|
||||
|
||||
In this column there are two indicators:
|
||||
|
||||
- `S`: for system default device. This is the device that is defined as system default. You may configure it directly or via the ` System default device` entry. <br/>☞ Note that (at least in Linux) you may affect different parameters to one or the other.
|
||||
- `D`: the device is unregistered so if you associate an input stream to it it will be registered with default values. Default values depend on the input or output nature and are listed in the 2.1 and 1.1 sections respectively.
|
||||
|
||||
A unset indicator is marked with an underscore character: `_`
|
||||
|
||||
<h3>3.2 Device name</h3>
|
||||
|
||||
This is the device name defined in the system.
|
||||
|
||||
<h3>3.3 Device sample rate</h3>
|
||||
|
||||
This is the device sample rate in samples per seconds. Please note that the baseband sample rate should not be lower than this rate for correct audio operation of AM, NFM and SSB plugins.
|
||||
|
||||
☞ Using devices with sample rates lower than 48000 S/s may allow baseband sample rates lower than 48 kS/s with AM, NFM and SSB plugins. This is not true for wideband plugins (BFM, WFM) that use baseband rates in accordance with the RF bandwidth required nor for DSD plugin that uses internally a fixed channel rate of 48 kS/s to be able to decode symbols properly.
|
||||
|
||||
☞ The DSD demodulator plugin accepts only audio sample rates of 48000 or 8000 S/s to process audio properly.
|
||||
|
||||
<h3>3.4 System default device</h3>
|
||||
|
||||
The device that is configured as system default is marked with a grey background behind its name
|
||||
|
||||
<h3>3.5 Selected device</h3>
|
||||
|
||||
The device currently selected is marked in the selection color (orange). Use the mouse or the arrow keys to change selection.
|
||||
|
||||
<h3>3.6 OK button</h3>
|
||||
|
||||
Use this button to confirm your selection and close dialog.
|
||||
|
||||
<h3>3.7 Cancel button</h3>
|
||||
|
||||
Use this button to dismiss your selection and close dialog.
|
||||
|
||||
|
||||
|
||||
|
@ -49,28 +49,14 @@ The following items are presented hierarchically from left to right:
|
||||
- _Audio_: opens a dialog to choose the audio output device (see 1.1 below for details)
|
||||
- _Logging_: opens a dialog to choose logging options (see 1.2 below for details)
|
||||
- _DV Serial_: if you have one or more AMBE3000 serial devices for AMBE digital voice check to connect them. If unchecked DV decoding will resort to mbelib if available else no audio will be produced for AMBE digital voice
|
||||
- _My Position_: opens a dialog to enter your station ("My Position") coordinates in decimal degrees with north latitudes positive and east longitudes positive. This is used whenever positional data is to be displayed (APRS, DPRS, ...). For it now only works with D-Star $$CRC frames. See [DSD demod plugin](../plugins/channel/demoddsd/readme.md) for details on how to decode Digital Voice modes.
|
||||
- _My Position_: opens a dialog to enter your station ("My Position") coordinates in decimal degrees with north latitudes positive and east longitudes positive. This is used whenever positional data is to be displayed (APRS, DPRS, ...). For it now only works with D-Star $$CRC frames. See [DSD demod plugin](../plugins/channelrx/demoddsd/readme.md) for details on how to decode Digital Voice modes.
|
||||
- Help:
|
||||
- _Loaded Plugins_: shows details about the loaded plugins (see 1.3 below for details)
|
||||
- _About_: current version and blah blah.
|
||||
|
||||
<h4>1.1. Preferences - Audio</h4>
|
||||
|
||||
Audio output preferences:
|
||||
|
||||
![Main Window audio output preferences](../doc/img/MainWindow_PreferencesAudioOutput.png)
|
||||
|
||||
In the "Audio Output" tab of the audio preferences dialog you can choose which device is used for audio output. This choice is global for the application and is persistent. If the device is not available anymore at a later stage it reverts to the default devuce (first row).
|
||||
|
||||
Audio input preferences:
|
||||
|
||||
![Main Window audio output preferences](../doc/img/MainWindow_PreferencesAudioInput.png)
|
||||
|
||||
In the "Audio Input" tab of the dialog you can choose the device used for audio input in a similar way as you do for the output device.
|
||||
|
||||
In addition you can adjust the global volume using the dial knob at the bottom. Audio input behaves slightly differently than audio output and when the audio engine is started the volume is forced to a value that by default is maximum (1.0). This is not always desirable and using this control you can set it at a lower level (0.00 to 1.00 in 0.01 steps).
|
||||
|
||||
Eventually select "OK" to confirm the settings or "Cancel" to dismiss without change.
|
||||
See the audio management documentation [here](audio.md).
|
||||
|
||||
<h4>1.2. Logging preferences</h4>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user