pothosware / SoapyAudio

Soapy SDR plugin for Audio devices
https://github.com/pothosware/SoapyAudio/wiki
MIT License
18 stars 3 forks source link

Multiple audio source. #9

Open bdn76 opened 8 years ago

bdn76 commented 8 years ago

I'm try to use four FCD pro on remote PC via CubicSDR/SoapyRemote/SoapyAudio:

  1. How can i select FCD dongle? I'm see only one device - PulseAudio and can not specify source (if i connect to remote PC via SSH then i can select FCD via switch audio source but switch audio source via SoapyRemote impossible).
  2. FCD pro sample rate is 192k but only 96k may be selected via SoapyAudio.
  3. I'm can not freq manipulate via hamlib - rigctl work (i'm can not specify FCD dongle, but i can see freq from first of all), but freq not show in CubicSDR.
guruofquality commented 8 years ago

How can i select FCD dongle? I'm see only one device - PulseAudio and can not specify source (if i connect to remote PC via SSH then i can select FCD via switch audio source but switch audio source via SoapyRemote impossible).

So I think most of this is a matter of proper device selection. @cjcliffe Is SoapyAudio missing a way to specify the device? If I was using portaudio, it would report perhaps a dozen audio devices. Currently I have SoapyAudio's rtaudio built with pulse support and it reports only one device.

Found device 0
  default_input = True
  default_output = True
  device_id = 0
  driver = audio
  label = PulseAudio

I haven't tried jack support though. Just curious, what have you been doing for rtaudio linux support (jack/pulse/oss)? Or am I missing something obvious :-)

FCD pro sample rate is 192k but only 96k may be selected via SoapyAudio.

This also might be an issue of selecting the correct audio device. The rates are just forwarded from rtaudio getDeviceInfo().

I'm can not freq manipulate via hamlib - rigctl work (i'm can not specify FCD dongle, but i can see freq from first of all), but freq not show in CubicSDR.

Thats good news in a way. Adding proper FCD support means figuring out which API calls rigctl makes and adding this to SoapyAudio::setFrequency(). @bdn76 What was your rigctl command line options? That would help me trace through the software to see what calls its making.

bdn76 commented 8 years ago

fcd1@oem-desktop:~/src/openwebrx$ /opt/hamlib/bin/rigctl -m 2518 f 434500000 fcd1@oem-desktop:~/src/openwebrx$

But via hamlib i can not select FCD (i'm opened issue in hamlib).

guruofquality commented 8 years ago

Hey, sorry, I didn't forget about this. It looks like there are two problems

Do you know which audio backend SoapyAudio was compiled with? There are several other backends depending upon the cmake options: https://github.com/pothosware/SoapyAudio/blob/master/CMakeLists.txt#L87

bdn76 commented 8 years ago

Yes, you are right. PulseAudio backend.