There are two loopback devices, Loopback,0 and Loopback,1, so you should be able to do playback to 0, capture from 1 in one config, and playback to 1, capture from 0 in the other."hw:Loopback,0,0" . Can I set up a different path for the capture device so that I can have my existing "Stream in" config to play from Squeezelite and then just load a "Pipe in" config if I want to play music from a browser via pipewire?
Doesn't work. I think it's because arecord will not work with aac audio streamed from a website (tell me if I'm wrong)...That's not what I meant. Can you try running everything the same as when camilladsp failed when playing sound from the browser, but instead of running camilladsp, just use the "arecord" command line tool to capture sound from the same device that camilladsp would. I want to see if that fails with the same error 77.
arecord -v -f cd -D hw:0,1 > recording1.wav
Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
arecord: set_params:1352: Sample format non available
Available formats:
- FLOAT_LE
Is that the issue here? Camilla doesn't cope with aac either?
Wouldn't Firefox be converting AAC to something the other apps can use?
Last edited:
@Addled : It's not AAC, but standard PCM with FLOAT_LE sample format. It's already listed in that pactl info dump.
Logically the -f cd format which means integer S16_LE does not fit with FLOAT_LE. You can run arecord with full format specification (-c 2 -f FLOAT_LE -r 48000).
The same with camilladsp - do you capture with FLOAT32LE format?
Logically the -f cd format which means integer S16_LE does not fit with FLOAT_LE. You can run arecord with full format specification (-c 2 -f FLOAT_LE -r 48000).
The same with camilladsp - do you capture with FLOAT32LE format?
I think I need yet more help with this. I feel like I'm making it far more difficult than it should be.
This is where I am right now. Can anyone come up with a better command than this?
arecord -D hw:CARD=Loopback,DEV=1 -c 32 -f FLOAT_LE -v -r 48000 -d 15 > recording1.wav
Recording WAVE 'stdin' : Float 32 bit Little Endian, Rate 48000 Hz, Channels 32
Hardware PCM card 0 'Loopback' device 1 subdevice 0
Its setup is:
stream : CAPTURE
access : RW_INTERLEAVED
format : FLOAT_LE
subformat : STD
channels : 32
rate : 48000
exact rate : 48000 (48000/1)
msbits : 32
buffer_size : 16384
period_size : 4096
period_time : 85333
tstamp_mode : NONE
tstamp_type : MONOTONIC
period_step : 1
avail_min : 4096
period_event : 0
start_threshold : 1
stop_threshold : 16384
silence_threshold: 0
silence_size : 0
boundary : 4611686018427387904
appl_ptr : 0
hw_ptr : 0
This is where I am right now. Can anyone come up with a better command than this?
arecord -D hw:CARD=Loopback,DEV=1 -c 32 -f FLOAT_LE -v -r 48000 -d 15 > recording1.wav
Recording WAVE 'stdin' : Float 32 bit Little Endian, Rate 48000 Hz, Channels 32
Hardware PCM card 0 'Loopback' device 1 subdevice 0
Its setup is:
stream : CAPTURE
access : RW_INTERLEAVED
format : FLOAT_LE
subformat : STD
channels : 32
rate : 48000
exact rate : 48000 (48000/1)
msbits : 32
buffer_size : 16384
period_size : 4096
period_time : 85333
tstamp_mode : NONE
tstamp_type : MONOTONIC
period_step : 1
avail_min : 4096
period_event : 0
start_threshold : 1
stop_threshold : 16384
silence_threshold: 0
silence_size : 0
boundary : 4611686018427387904
appl_ptr : 0
hw_ptr : 0
Last edited:
It's not difficult, just you need to know a bit how the things work and relate together.Feel like I'm making it far more difficult than it should be.
And does it work? Are you sure with the 32 channels?Can anyone come up with a better command than this?
I think the 32 channels is right. I tried with 2, then 8, both times got "channel count not available error" 32 makes sense from what I know about Pro Audio.
Does it work? First time I got an 85mb file which I think was silence. Tried just now and got same output as above with "arecord: pcm_read:2221: read error: Input/output error" afterwards.
Does it work? First time I got an 85mb file which I think was silence. Tried just now and got same output as above with "arecord: pcm_read:2221: read error: Input/output error" afterwards.