I am trying to capture audio from an application inside a guest OS inside virtualbox.
As the audio is playing in the VM, I opened a terminal from my host linux pc and issue this command
ffmpeg -f alsa -i hw:0 -acodec pcm_s16le out.wav
However, I get this error.
[alsa @ 0x8213e20] cannot open audio device hw:0 (Device or resource busy)
My hunch is the VM's sound device is being used.
Is there a work-a-round or it's not possible to capture audio since the VM is using the virtual sound device?