I'm trying to route audio playback to remote machine using Pulseaudio DLNA capabilities. While I believe I successfully transmit data from one machine to another, audio output on sink machine remains silent.
Two audio sources
- "craic" - Ubuntu 13.04 (i386)
- "lostin" - Ubuntu 12.04 (amd64)
- "raspberry" - RaspberryPi computer with Raspbian (armhf)
Pluseaudio cookie copied from raspberry to both sources. Pulse is defined per-user on all machines and starts as daemon on raspberry. Avahi is used to publish/discover services, as described in this article: http://blog.seventhmoon.info/blog/2012/12/23/pulseaudio-over-network/
Audio output device on craic and lostin is set to "DLNA/UPnP Streaming on pi@raspberry" in Gnome Sound preferences. Audio playback in Totem streams to raspberry, which can be confirmed in two ways:
- iptraf shows traffic flowing to raspberry when playback is on
- pacmd list-sink-inputs shows the following:
index: 3 driver: <protocol-native.c> flags: DONT_MOVE state: CORKED sink: 1 <upnp> volume: 0: 28% 1: 28% 0: -33.17 dB 1: -33.17 dB balance 0.00 muted: no current latency: 150.00 ms requested latency: 24.99 ms sample spec: s16be 2ch 44100Hz channel map: front-left,front-right Stereo resample method: (null) module: 10 client: 6 <pulseaudio> properties: media.name = "DLNA/UPnP Streaming for michal@craic" media.role = "abstract" application.name = "pulseaudio" native-protocol.peer = "TCP/IP client from 192.168.0.15:37027" native-protocol.version = "27" application.id = "org.PulseAudio.PulseAudio" application.version = "3.0" application.process.id = "8686" application.process.user = "michal" application.process.host = "craic" application.process.binary = "pulseaudio" application.language = "en_US.UTF-8" window.x11.display = ":0" application.process.machine_id = "17c8963bcf73ef9945daf2090000002e" module-stream-restore.id = "sink-input-by-media-role:abstract"
Pausing and resuming playback toggles STATE between: CORKED and RUNNING. Yet, no sound is flowing out to 3.5mm audio jack output. However, audio is played back nicely when started and consumed locally on raspberry (tried aplay, paplay, and mpg321).
At this point I'm running out of ideas on how to fix the problem.