"3D Sound" USB audio adapter

Forum for discussion about the Langstone Microwave Transceiver that shares some features with the Portsdown. Wiki: https://wiki.microwavers.org.uk/Langstone_Project
G8GKQ
Site Admin
Posts: 2798
Joined: Sun Mar 22, 2009 1:21 pm

Re: "3D Sound" USB audio adapter

Post by G8GKQ » Sun Oct 18, 2020 4:26 pm

Hi Graham

If you are using a non-standard audio output, you will need to edit line 56 of rpidatv/scripts/lmvlcff.sh:

Code: Select all

  AUDIO_DEVICE="hw:CARD=Device,DEV=0"
to be correct for your audio device.

Try running

Code: Select all

arecord -l
at the command line. That will give you a list of audio devices.

Changing that file will only make the change for main receiver player. Any other audio outputs (like the stream receiver) will also need to be edited separately.

Dave

g3yjr
Posts: 82
Joined: Sat May 23, 2020 1:37 pm

Re: "3D Sound" USB audio adapter

Post by g3yjr » Mon Oct 19, 2020 8:38 pm

Thanks Dave. I'll give that a try.

Graham

g3yjr
Posts: 82
Joined: Sat May 23, 2020 1:37 pm

Re: "3D Sound" USB audio adapter

Post by g3yjr » Thu Mar 11, 2021 3:06 pm

Dave, I returned to the Portsdown project this week.

I am using the "3D Sound" USB dongle. For Langstone, I have amended the Lang_RX.py and Lang_TX.py files by running set_sound and selecting hw:CARD=Set,DEV=0. Langstone gives sound via the dongle OK.

I upgraded Portsdown to version 2021022250. I executed arecord -l as you suggested. This gave:
card1: Set [C-Media USB Headphone Set],device 0:USB Audio [USB Audio]
subdevices: 1/1
Subdevice #0: subdevice #0
In lmvlcff.sh as you suggested (ine 57 on my editor) I found:
if [ s? == 0]; then
AUDIO_DEVICE="hw:CARD=headphones,DEV=0"
I amended the then clause of the nested if statement,
replacing CARD=headphones with CARD=Set.

On re-booting Langstone, I got sound through the USB dongle from LongMynd. So now both Langstone and Portsdown output sound via the "3D Sound" dongle. Then I realised that I'd left Audio Out = RPiJack in Config; this is literally wrong, but the USB sound works, so it is right as far as I am concerned!

Thank you for your help.

I wonder what the ALSA device in the else clause refers to?

73 Graham

Post Reply

Return to “The Langstone Microwave Transceiver”