Support Pulseaudio "monitor" devices

In Pulseaudio, each output device has a corresponding input device.
These are actually useful, e.g. when listening to a received signal on
the headphones (perhaps from the websdr or some SDR software), it makes
sense to attach the HS modem to "Monitor of Headphones" to have it
decode it. Pulseaudio also supports virtual sinks that can be fed from
SDR software, and letting the HS modem listen on "Monitor of virtual
sink" will enable decoding.
This commit is contained in:
Christoph Berg 2021-04-27 23:46:25 +02:00
parent 7088804826
commit 32c9a2c8c5
1 changed files with 1 additions and 3 deletions

View File

@ -170,7 +170,6 @@ int scan_devices()
{
struct SoundIoDevice* device = soundio_get_input_device(soundio, i);
if (device == NULL) continue;
if (strstr(device->name, "onitor")) continue;
if (device->probe_error) continue;
didx = getDevlistIndex(device->name, device->id);
@ -193,7 +192,6 @@ int scan_devices()
{
struct SoundIoDevice* device = soundio_get_output_device(soundio, i);
if (device == NULL) continue;
if (strstr(device->name, "onitor")) continue;
if (device->probe_error) continue;
didx = getDevlistIndex(device->name, device->id);
@ -214,4 +212,4 @@ int scan_devices()
return 0;
}
#endif // ifndef WIN32
#endif // ifndef WIN32