I am trying to record the default audio output from raspbmc (running on a Raspberry Pi Model b) to a raw wav stream (which i want to pipe to piFM to transmit audio to an FM tuner).
I did not succeed using arecord and found out that the default audio engine for raspbmc is pulseaudio, so i tried the whle thing using parecord
/pacat
.
My pi is connected to the TV via HDMI and sound works properly.
But pactl
list only gives me the following sinks/sources:
Sink #0
State: SUSPENDED
Name: auto_null
Description: Dummy Output
Driver: module-null-sink.c
Sample Specification: s16le 2ch 44100Hz
Channel Map: front-left,front-right
Owner Module: 4
Mute: no
Volume: 0: 100% 1: 100%
0: 0.00 dB 1: 0.00 dB
balance 0.00
Base Volume: 100%
0.00 dB
Monitor Source: auto_null.monitor
Latency: 0 usec, configured 0 usec
Flags: DECIBEL_VOLUME LATENCY
Properties:
device.description = "Dummy Output"
device.class = "abstract"
device.icon_name = "audio-card"
Formats:
pcm
Source #0
State: SUSPENDED
Name: auto_null.monitor
Description: Monitor of Dummy Output
Driver: module-null-sink.c
Sample Specification: s16le 2ch 44100Hz
Channel Map: front-left,front-right
Owner Module: 4
Mute: no
Volume: 0: 100% 1: 100%
0: 0.00 dB 1: 0.00 dB
balance 0.00
Base Volume: 100%
0.00 dB
Monitor of Sink: auto_null
Latency: 0 usec, configured 0 usec
Flags: DECIBEL_VOLUME LATENCY
Properties:
device.description = "Monitor of Dummy Output"
device.class = "monitor"
device.icon_name = "audio-input-microphone"
Formats:
pcm
Furthermore aplay
gives me:
pi@raspbmc:~$ aplay -l
aplay: device_list:252: no soundcards found...
pi@raspbmc:~$ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
When trying to record audio from the default device, nothing is recorded. When I try playing a sound using paplay nothing is played (no errors, just no sound).
So what am I missing here? I just need to send all played sounds to another program...
I spent hours on google and in forums, wikis and blogs, but did not find a solution that works for my setup yet.
Thanks in advance!
EDIT: /dev/audio does NOT exists on raspbmc, /dev/snd does only contain the entry 'timer'