stephen / airsonos

:musical_note: AirPlay to Sonos
MIT License
2.1k stars 256 forks source link

No sound from device with airsonos @ Raspberry Pi #96

Open tanerceylan opened 9 years ago

tanerceylan commented 9 years ago

Hey everyone!

I'm struggling with airsonos on a raspberry pi. I installed it on a new raspbian image (overclocked @ 1000MHz). Installation was easy and successful and airsonos is also starting. I am able to choose my sonos speakers from my iDevices but i'm hearing no sound at all... No clue. Here is the verbose output:

pi@raspberrypi ~ $ sudo airsonos --verbose
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
Searching for Sonos devices on network...
Setting up AirSonos for Arbeitszimmer {192.168.178.25:1400}
  nodetunes:server starting nodetunes server (Arbeitszimmer (AirSonos)) +0ms
  nodetunes:server broadcasting mdns advertisement (for port 5000) +208ms
Setting up AirSonos for Wohnzimmer {192.168.178.23:1400}
  nodetunes:server starting nodetunes server (Wohnzimmer (AirSonos)) +56ms
  nodetunes:server broadcasting mdns advertisement (for port 5001) +156ms
  nodetunes:rtsp received method OPTIONS (CSeq: 0)
{ cseq: '0',
  'x-apple-device-id': '0x34a395cce3ef',
  'apple-challenge': 'pgQucLNG27vYtHy+9WPSzg==',
  'dacp-id': '11895F4A91D2030E',
  'active-remote': '857320162',
  'user-agent': 'AirPlay/211.3' } +32s
  nodetunes:helper building challenge for pgQucLNG27vYtHy+9WPSzg== (ip: c0a8b225, mac: 545200a2fdad) +28ms
  nodetunes:helper computed challenge: DiRiKz4PJitLsm4vu02zsnq2HpRE6jp+jnDyYTVk6zwY/9iZWm0vUr2ZRu5eNOys0ozUzbORvoDurKvg+i2v//BxJnTELxqtwNHw029sKbWIkCCVhmxVbj4wVhy3ik60j14OwAPv7B0g3k9JyehJYuR6OZpFKJ2QkmnAKWepmSWGBNLPitX7VgSoVMLKNTfmzVnYH7xYMXe7GbKG+2Zwm3X9FyEdcdzAMMyCbDfZXilgKl3swHw7BPe5EC8IqY/HNms4tmvfud3VCvHzN0Jy8KmcNWyke9cteDYJvWSKKuT6x6z3ocf+rgDzuBQS+23XQpUSdG53a9mNtcoMTauSPg== +8s

I installed airsonos also on my iMac and it works there flawless, therefore i'm ruling out any networking problems. I tried to reinstall it on my pi again and again. Still not working... Anyone with an idea?

paulslugocki commented 9 years ago

I get something similar. I see the Airsonos devices listed if I go to the Airplay menu in iOS but I don't hear any output or get intermittent pieces of music.

Wondering if the device is constrained, I'm seeing node @ 93% CPU via top, the only other non standard thing on there is Z-Way @ 4% CPU max.

pi@raspberrypi ~ $ sudo airsonos --verbose
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
Searching for Sonos devices on network...
Setting up AirSonos for Living Room {192.168.0.3:1400}
  nodetunes:server starting nodetunes server (Living Room (AirSonos)) +0ms
  nodetunes:server broadcasting mdns advertisement (for port 5000) +347ms
Setting up AirSonos for Kitchen {192.168.0.15:1400}
  nodetunes:server starting nodetunes server (Kitchen (AirSonos)) +89ms
  nodetunes:server broadcasting mdns advertisement (for port 5001) +264ms
  nodetunes:rtsp received method OPTIONS (CSeq: 0)
{ cseq: '0',
  'x-apple-device-id': '0x61716e5708',
  'apple-challenge': 'T3Y5Ir2CS1EOGx37BGKbJA==',
  'dacp-id': '720EEA1B49A6DBD5',
  'active-remote': '3815908361',
  'user-agent': 'AirPlay/211.3' } +33s
  nodetunes:helper building challenge for T3Y5Ir2CS1EOGx37BGKbJA== (ip: c0a8000d, mac: 5452008ef539) +28ms
  nodetunes:helper computed challenge: 2CEghF19tCzgtid5MvyP7z3Veha+wY36aPsRpwcOe+lg1zxP1/u0nzetgJMVDOfWTPLD6pIN9pvWimo8MCuZTQfM9TSXMERFEjaBBOpdoTDjYEmHnHYFJYJKDrjpYI+nQN3q6vtrGynq6lDq5PvMqIufUWTWMXEi3KUvS/dfDyrZcnlCashXl2IjkXpBglF8DdxCiB37VSN4R92X4LZhzduoOLv32a3RlTWjaIHowCKf6KCGxh+rTtc91JKZM8BnSydsGBTSeNVsh0TWTxc3QgvtFM2yLRyl+5F4w8/aapGC7z/36ql0JBNzV/wULrSF3GdlM8VRhxrVjeL3uwSPfw== +14s
{ cseq: '50',
  'x-apple-device-id': '0x61716e5708',
  'dacp-id': 'EF1D82DC5F0837F7',
  'active-remote': '1209438892',
  'user-agent': 'AirPlay/211.3' } +2s
  nodetunes:rtsp received method OPTIONS (CSeq: 51)
{ cseq: '51',
  'x-apple-device-id': '0x61716e5708',
  'dacp-id': 'EF1D82DC5F0837F7',
  'active-remote': '1209438892',
  'user-agent': 'AirPlay/211.3' } +2s
  nodetunes:rtsp received method OPTIONS (CSeq: 52)
{ cseq: '52',
  'x-apple-device-id': '0x61716e5708',
  'dacp-id': 'EF1D82DC5F0837F7',
  'active-remote': '1209438892',
  'user-agent': 'AirPlay/211.3' } +2s
  nodetunes:rtsp received method OPTIONS (CSeq: 53)
{ cseq: '53',
  'x-apple-device-id': '0x61716e5708',
  'dacp-id': 'EF1D82DC5F0837F7',
  'active-remote': '1209438892',
  'user-agent': 'AirPlay/211.3' } +2s