AirPlay - AirTunes (Airport Express) support over UDP for shairplay and Speakers that use shairplay

Bug #951120 reported by zzecool
238
This bug affects 48 people
Affects Status Importance Assigned to Milestone
PulseAudio
Confirmed
High
pulseaudio (Ubuntu)
Fix Released
High
Daniel van Vugt

Bug Description

If you install "paprefs" pulse audio preferences manager on the first tab you can enable the support for :

Make discoverable Apple AirTunes sound devices available locally.

I have it enabled i can see my AirTune device as an Output device on sound settings but when i select it its doesnt transmit the sound ( Actually the player stops playing like there is no output device ) .

My airtune device is working great with any other way like control over iphone itunes etc .

EDIT : The culprit found by others is that Pulseaudio raop is using TCP for data stream in conflict that the Shairplay use only UDP .

Pulseaudio should move on UDP as well because every Speaker-device on the market is using shairplay - UDP

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: pulseaudio 1:1.1-0ubuntu12
ProcVersionSignature: Ubuntu 3.2.0-18.28-generic 3.2.9
Uname: Linux 3.2.0-18-generic x86_64
NonfreeKernelModules: nvidia
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 1.94.1-0ubuntu1
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: zzecool 2218 F.... pulseaudio
 /dev/snd/pcmC0D0p: zzecool 2218 F...m pulseaudio
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xfc400000 irq 48'
   Mixer name : 'SigmaTel STAC9872AK'
   Components : 'HDA:83847662,104d1c00,00100201 HDA:14f12c06,104d1700,00100000'
   Controls : 18
   Simple ctrls : 9
Date: Fri Mar 9 22:15:39 2012
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
SourcePackage: pulseaudio
UpgradeStatus: Upgraded to precise on 2012-02-16 (22 days ago)
dmi.bios.date: 12/21/2007
dmi.bios.vendor: Phoenix Technologies LTD
dmi.bios.version: R2110J7
dmi.board.asset.tag: N/A
dmi.board.name: VAIO
dmi.board.vendor: Sony Corporation
dmi.board.version: N/A
dmi.chassis.asset.tag: N/A
dmi.chassis.type: 10
dmi.chassis.vendor: Sony Corporation
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnPhoenixTechnologiesLTD:bvrR2110J7:bd12/21/2007:svnSonyCorporation:pnVGN-FZ31Z:pvrC6006UGW:rvnSonyCorporation:rnVAIO:rvrN/A:cvnSonyCorporation:ct10:cvrN/A:
dmi.product.name: VGN-FZ31Z
dmi.product.version: C6006UGW
dmi.sys.vendor: Sony Corporation

Revision history for this message
In , Daniel Svensson (dsvensson) wrote :

raop module does not work with shairport, which is kind of annoying as it's much nicer to use than having to have a dedicated airport hardware which does nothing but ship music.

During some investigation I found the following difference in the SETUP phase:

pulseaudio sends:
RTP/AVP/TCP;unicast;interleaved=0-1;mode=record

my iphone sends:
RTP/AVP/UDP;unicast;mode=record;timing_port=59159;events;control_port=56536

The timing_port and control_port are needed for shairport to work.

Shairport can be found at:
https://github.com/albertz/shairport

and works under both OS X and Linux.

Revision history for this message
In , Daniel Svensson (dsvensson) wrote :

Another interesting observation is that mplayer gets the following format when trying to play over RAOP:

AO: [pulse] 22050Hz 1ch floatle (4 bytes per sample)

Revision history for this message
In , Daniel Svensson (dsvensson) wrote :

pulseaudio does not work with shairport as shairport only supports RAOP over UDP and not TCP which PulseAudio uses. But PulseAudio should probably move over to UDP as well, as the rest of the RAOP-world seems to use that (iOS-devices, AirFoil etc).

Revision history for this message
zzecool (zzecool) wrote :
Revision history for this message
zzecool (zzecool) wrote :

It appear that the problem is also reported on bugzilla so add this watcher.

Changed in pulseaudio:
importance: Undecided → Unknown
status: New → Unknown
Revision history for this message
zzecool (zzecool) wrote :

Sry i meant freedesktop.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pulseaudio (Ubuntu):
status: New → Confirmed
Revision history for this message
In , Martin-Éric Racine (q-funk) wrote :

Has there been any progress on this issue? Perhaps some of the Shairport code could be leveraged to implement the same functionality as a PulseAudio module?

Changed in pulseaudio:
importance: Unknown → High
status: Unknown → Confirmed
Revision history for this message
zzecool (zzecool) wrote : Re: AirPlay - AirTunes (Airport Express) support stopped working on precise

I hope we going to see progress on this ..

summary: - AirPlay - AirTunes (Airport Express) support stopped working on precise
+ AirPlay - AirTunes (Airport Express) support over UDP for shairplay
+ and Speakers that use shairplay
zzecool (zzecool)
description: updated
zzecool (zzecool)
description: updated
Revision history for this message
Tomasz Klicki (tklicki) wrote :

Hi, any update on this bug? It affects me also.

Revision history for this message
Rene Arts (renearts) wrote :

Still no updates? Recently there has been some activity at the freedesktop site, a few people managed to create a working fix/workaround, but this has to be integrated into PA offcourse.
Curiously waiting as I'd really like to use pulseaudio-raop with my RasPi+shairport :D

Rene Arts (renearts)
Changed in pulseaudio (Ubuntu):
status: Confirmed → Fix Committed
status: Fix Committed → Confirmed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

The attached upstream bug shows this will be fixed in PulseAudio 11.0

Changed in pulseaudio (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → High
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Also the draft release notes show it will be fixed in PulseAudio 11.0:
https://www.freedesktop.org/wiki/Software/PulseAudio/Notes/11.0/

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Now released upstream:
https://www.freedesktop.org/wiki/Software/PulseAudio/Notes/11.0/

Although we likely will wait till Ubuntu 18.04 to bring that in.

tags: added: pulse11
Changed in pulseaudio (Ubuntu):
assignee: nobody → Daniel van Vugt (vanvugt)
status: Triaged → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pulseaudio - 1:11.1-1ubuntu1

---------------
pulseaudio (1:11.1-1ubuntu1) bionic; urgency=medium

  * Drop upstreamed patches:
    - 0800-cb78d6f5-fix-lp1690028-lp1672171.patch
    - 0801-d985276c-fix-lp1539209-lp1562817.patch
    - 0802-alsa-mixer-Add-support-for-usb-audio-in-the-Dell-doc.patch
  * Refreshed patches:
    - 0001-volume-config-changes.patch
    - 0022-inotify-wrapper-Quit-daemon-if-pid-file-is-removed.patch
    - 0407-access-Add-access-control-hooks.patch
    - 0408-protocol-native-add-access-checks.patch (and fixed conflicts)
    - 0409-Trust-store-patch.patch
    - 0417-increase-timeout-check-apparmor.patch
    - 0700-modules-add-snappy-policy-module.patch
  * Merge latest Debian changes (version 11.1-1, see below) (LP: #1716700)
    - Includes support for newer AirPlay hardware (LP: #951120)

 -- Daniel van Vugt <email address hidden> Wed, 01 Nov 2017 16:13:53 +0800

Changed in pulseaudio (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.