I recently purchased an octo sound card with RCA breakout to do the following:
a) Output mono sound from an arbitrary application on the raspberry
b) Record and analyze all output sound via playback
c) Record and analyze sound from two analog inputs from the same application as in (b)
I only have SSH access, neither a screen nor internet on the raspberry, so I installed alsa and all other packages directly via .deb files, and followed the instructions for "Manual setup" at How to setup. I skipped "High Level setup" though because I didn't have a /etc/asound.conf file. Recording and playing seems to work.
From my understanding, recording playback audio (b) requires a sound server like pulseaudio. So I also installed pulseaudio afterwards from .deb and used the system-mode config from ktb as specified here.
I now have the pulseaudio sink "output" and the sources "input" and "output.monitor". Playing and recording sound seems to work fine on all three devices if I do it separately, but while I'm playing sound on "output", I can only record on "output.monitor" and not on "input". Likewise I can not play any audio while I'm recording on "input". After playing, I can't record for about 5 seconds, and vice versa.
Do you have an idea how I could solve this? I don't really care to uninstall pulseaudio and install something else as long as I can do what I'm trying to.
I am using a very fresh installation of Raspbian Jessie with these packages:
Code: Select all
$ dpkg -l | egrep 'pulse|alsa' | awk '{print $2}'
alsa-base
alsa-tools
alsa-utils
gstreamer1.0-alsa:armhf
gstreamer1.0-pulseaudio:armhf
libpulse-dev:armhf
libpulse-mainloop-glib0:armhf
libpulse0:armhf
libpulsedsp:armhf
pulseaudio
pulseaudio-module-x11
pulseaudio-utils