Hi, GNUser!
For my system getting alsa loopback passed flawlessly. i think You can try too. First You will need virtual audio card added with the help of
s u d o modprobe snd-aloop
(The word, which starts with the 's' letter and ends with 'o' letter is split to avoid You know what, please ignore this extra spaces)
This will create virtual audio card with even-numbered pcm subdevices looped back to odd-numbered capture subdevices. So if Your physical sound card is hw:0, this virtual will be hw:1, and hw:1,0 sent to hw:1,1, hw:1,2 to hw:1,3 and so forth.
Then You will need .asoundrc file, which will duplicate the default alsa output stream to Your physical device and to the virtual one. I've got such an example here
https://dt.iki.fi/record-system-output-alsa, placed it in my $HOME and
a l s a c t l i n i t
These steps allow to capture the output to the default alsa device at hw:1,1, for example
a r e c o r d -D hw:1,1 -f cd -s 1000 silence.wav
As I can see, wav file have the header sized around 0x30 bytes, followed by the sound samples. In case of silence, all the consequent samples are zeroes.
I think if You don't use some special alsa config, You can try these steps without any changes.
The only correction I've made for downloaded .asoundrc was substituting "Loopback" card name with the "1" constant at line 43.