First post on GitHub. I've been working on shairport-sync (dev version) to play through my raspberry pi audio jack with partial success.
I am able to see my device on Airplay but no luck with audio.
After some digging through the other issues on this forum I thought my problems were with the configuration file. My understanding is that the config will run with a fully commented out file?
I did not understand this before and uncommented the sample config file, I think that is why some of the "drift setting"/"resin_threshold" are being ignored.
The last line of the code shown repeats with different microsecond values if I leave my iPhone playing music while connected.
I've modified my ignore_volume_control ["yes"], and volume_range_db ["30"], name ["Sea Stereo"]
This is my first shot with Linux programming/Rpi project, I do have some programming experience but more of a mechanical guy.
`pi@raspberrypi:~ $ sudo shairport-sync -vv
Looking for the configuration file "/etc/shairport-sync.conf".
Looking for configuration file at full path "/etc/shairport-sync.conf"
The drift setting is deprecated and has been ignored. Use drift_tolerance_in_seconds instead
The resync_threshold setting is deprecated and has been ignored. Use resync_threshold_in_seconds instead
The setting audio_backend_buffer_desired_length is no longer used and has been ignored. Use audio_backend_buffer_desired_length_in_seconds instead.
The setting audio_backend_latency_offset is no longer used and has been ignored. Use audio_backend_latency_offset_in_seconds instead.
Output device name is "hw:0".
Open Mixer
Lowest dB value is a mute -- try minimum volume +1
Hardware mixer has dB volume from -102.380000 to 4.000000.
Has mute ability.
The processor is running little-endian.
Version: "3.0d16-OpenSSL-Avahi-ALSA-metadata-sysconfdir:/etc"
statistics_requester status is 0.
daemon status is 0.
rtsp listening port is 5000.
udp base port is 6001.
udp port range is 1000.
Shairport Sync player name is "Sea Stereo".
Audio Output name is "alsa".
on-start action is "/full/path/to/application and args".
on-stop action is "/full/path/to/application and args".
wait-cmd status is 0.
mdns backend "avahi".
userSuppliedLatency is 0.
AirPlayLatency is -1.
iTunesLatency is -1.
forkedDaapdLatency is -1.
stuffing option is "0" (0-basic, 1-soxr).
resync time is 0.050000 seconds.
allow a session to be interrupted: 0.
busy timeout time is 120.
drift tolerance is 0.002000 seconds.
password is "(null)".
ignore_volume_control is 1.
playback_mode is 0 (0-stereo, 1-mono, 1-reverse_stereo, 2-both_left, 3-both_right).
disable_synchronization is 0.
use_mmap_if_available is 1.
output_rate is 44100.
output_format is 3 (0-unknown, 1-S8, 2-U8, 3-S16, 4-S24, 5-S24_3LE, 6-S24_3BE, 7-S32).
audio backend desired buffer length is 0.150000 seconds.
audio backend latency offset is 0.000000 seconds.
volume range in dB (zero means use the range specified by the mixer): 30.
zeroconf regtype is "_raop._tcp".
decoders_supported field is 1.
use_apple_decoder is 0.
configuration file name "/etc/shairport-sync.conf" resolves to "/etc/shairport-sync.conf".
metdata enabled is 0.
metadata pipename is "/tmp/shairport-sync-metadata".
metadata socket address is "226.0.0.1" port 5555.
metadata socket packet size is "65000".
get-coverart is 0.
Successful Startup
avahi: avahi_register.
avahi: register_service.
avahi: service 'BC6A9E09FC4F@Sea Stereo' group is not yet commited.
avahi: request to add "_raop._tcp" service without metadata
avahi: service 'BC6A9E09FC4F@Sea Stereo' group is registering.
avahi: service 'BC6A9E09FC4F@Sea Stereo' successfully added.
New RTSP connection from 192.168.0.5:63490 to self at 192.168.0.8:5000.
Play connection from user agent "AirPlay/301.44.3".
Active-Remote string seen: "2399081169".
DACP-ID string seen: "679238BCA0AC2527".
User-Agent is AirPlay; selecting the AirPlay latency of -1 frames.
rtp_setup: cport=59221 tport=53133.
Set up play connection from 192.168.0.5 to self at 192.168.0.8.
listening for audio, control and timing on ports 6001, 6002, 6003.
Output sample ratio is 1.
Output frame bytes is 4.
Output bit depth is 16.
Control receiver -- Server RTP thread starting.
Timing receiver -- Server RTP thread starting.
Audio receiver -- Server RTP thread starting.
Timing sender thread starting.
Execution of on-start command failed to start
Error executing on-start command /full/path/to/application and args
Sync packet received before we got a timing packet back.
syncing to seqno 12096.
Hammerton Decoder used on encrypted audio.
Output sample ratio is 1
Output written using MMAP
PCM handle name = 'hw:0'
alsa device parameters:
access type = MMAP_INTERLEAVED
format = 'S16_LE' (Signed 16 bit Little Endian)
subformat = 'STD' (Standard)
number of channels = 2
number of significant bits = 16
rate = 44100 frames per second (precisely).
precise (rational) rate = 0.000 frames per second (i.e. 0/1088784512).
period_time = 5804 us (>).
period_size = 256 frames (precisely).
buffer_time = 371519 us (>).
buffer_size = 16384 frames (>).
periods_per_buffer = 64 (precisely).
Open Mixer
Setting volume db to 0.000000.
syncing to seqno 12334.
Output sample ratio is 1
Open Mixer
Setting volume db to 0.000000.
RTSP shutdown requested.
Closing down RTSP conversation thread...
Shut down audio, control and timing threads
Audio receiver -- Server RTP thread interrupted. terminating.
Control RTP thread interrupted. terminating.
Timing thread interrupted. terminating.
rtp_timing_sender thread interrupted. terminating.
Closed and terminated timer requester thread.
Timing RTP thread terminated.
timing thread joined
audio thread joined
control thread joined
Player thread exit
Execution of on-stop command failed to start
Error executing on-stop command /full/path/to/application and args
shutting down RTP thread
RTSP conversation thread terminated.
New RTSP connection from 192.168.0.5:63493 to self at 192.168.0.8:5000.
Play connection from user agent "AirPlay/301.44.3".
Active-Remote string seen: "2399081169".
DACP-ID string seen: "679238BCA0AC2527".
User-Agent is AirPlay; selecting the AirPlay latency of -1 frames.
rtp_setup: cport=50848 tport=63306.
Set up play connection from 192.168.0.5 to self at 192.168.0.8.
listening for audio, control and timing on ports 6001, 6002, 6003.
Execution of on-start command failed to startOutput sample ratio is 1.
Output frame bytes is 4.
Output bit depth is 16.
Error executing on-start command /full/path/to/application and args
Timing receiver -- Server RTP thread starting.
Control receiver -- Server RTP thread starting.
Audio receiver -- Server RTP thread starting.
Timing sender thread starting.
syncing to seqno 17048.
Output sample ratio is 1
Open Mixer
Setting volume db to 0.000000.
Packet reception interval stats: mean, standard deviation and max for the last 2,500 packets in microseconds: 7982.7, 12607.0, 111233.0.
`
Hi,
First post on GitHub. I've been working on shairport-sync (dev version) to play through my raspberry pi audio jack with partial success.
I am able to see my device on Airplay but no luck with audio.
After some digging through the other issues on this forum I thought my problems were with the configuration file. My understanding is that the config will run with a fully commented out file?
I did not understand this before and uncommented the sample config file, I think that is why some of the "drift setting"/"resin_threshold" are being ignored.
The last line of the code shown repeats with different microsecond values if I leave my iPhone playing music while connected.
I've modified my ignore_volume_control ["yes"], and volume_range_db ["30"], name ["Sea Stereo"]
This is my first shot with Linux programming/Rpi project, I do have some programming experience but more of a mechanical guy.
`pi@raspberrypi:~ $ sudo shairport-sync -vv Looking for the configuration file "/etc/shairport-sync.conf". Looking for configuration file at full path "/etc/shairport-sync.conf" The drift setting is deprecated and has been ignored. Use drift_tolerance_in_seconds instead The resync_threshold setting is deprecated and has been ignored. Use resync_threshold_in_seconds instead The setting audio_backend_buffer_desired_length is no longer used and has been ignored. Use audio_backend_buffer_desired_length_in_seconds instead. The setting audio_backend_latency_offset is no longer used and has been ignored. Use audio_backend_latency_offset_in_seconds instead. Output device name is "hw:0". Open Mixer Lowest dB value is a mute -- try minimum volume +1 Hardware mixer has dB volume from -102.380000 to 4.000000. Has mute ability. The processor is running little-endian. Version: "3.0d16-OpenSSL-Avahi-ALSA-metadata-sysconfdir:/etc" statistics_requester status is 0. daemon status is 0. rtsp listening port is 5000. udp base port is 6001. udp port range is 1000. Shairport Sync player name is "Sea Stereo". Audio Output name is "alsa". on-start action is "/full/path/to/application and args". on-stop action is "/full/path/to/application and args". wait-cmd status is 0. mdns backend "avahi". userSuppliedLatency is 0. AirPlayLatency is -1. iTunesLatency is -1. forkedDaapdLatency is -1. stuffing option is "0" (0-basic, 1-soxr). resync time is 0.050000 seconds. allow a session to be interrupted: 0. busy timeout time is 120. drift tolerance is 0.002000 seconds. password is "(null)". ignore_volume_control is 1. playback_mode is 0 (0-stereo, 1-mono, 1-reverse_stereo, 2-both_left, 3-both_right). disable_synchronization is 0. use_mmap_if_available is 1. output_rate is 44100. output_format is 3 (0-unknown, 1-S8, 2-U8, 3-S16, 4-S24, 5-S24_3LE, 6-S24_3BE, 7-S32). audio backend desired buffer length is 0.150000 seconds. audio backend latency offset is 0.000000 seconds. volume range in dB (zero means use the range specified by the mixer): 30. zeroconf regtype is "_raop._tcp". decoders_supported field is 1. use_apple_decoder is 0. configuration file name "/etc/shairport-sync.conf" resolves to "/etc/shairport-sync.conf". metdata enabled is 0. metadata pipename is "/tmp/shairport-sync-metadata". metadata socket address is "226.0.0.1" port 5555. metadata socket packet size is "65000". get-coverart is 0. Successful Startup avahi: avahi_register. avahi: register_service. avahi: service 'BC6A9E09FC4F@Sea Stereo' group is not yet commited. avahi: request to add "_raop._tcp" service without metadata avahi: service 'BC6A9E09FC4F@Sea Stereo' group is registering. avahi: service 'BC6A9E09FC4F@Sea Stereo' successfully added. New RTSP connection from 192.168.0.5:63490 to self at 192.168.0.8:5000. Play connection from user agent "AirPlay/301.44.3". Active-Remote string seen: "2399081169". DACP-ID string seen: "679238BCA0AC2527". User-Agent is AirPlay; selecting the AirPlay latency of -1 frames. rtp_setup: cport=59221 tport=53133. Set up play connection from 192.168.0.5 to self at 192.168.0.8. listening for audio, control and timing on ports 6001, 6002, 6003. Output sample ratio is 1. Output frame bytes is 4. Output bit depth is 16. Control receiver -- Server RTP thread starting. Timing receiver -- Server RTP thread starting. Audio receiver -- Server RTP thread starting. Timing sender thread starting. Execution of on-start command failed to start Error executing on-start command /full/path/to/application and args Sync packet received before we got a timing packet back. syncing to seqno 12096. Hammerton Decoder used on encrypted audio. Output sample ratio is 1 Output written using MMAP PCM handle name = 'hw:0' alsa device parameters: access type = MMAP_INTERLEAVED format = 'S16_LE' (Signed 16 bit Little Endian) subformat = 'STD' (Standard) number of channels = 2 number of significant bits = 16 rate = 44100 frames per second (precisely). precise (rational) rate = 0.000 frames per second (i.e. 0/1088784512). period_time = 5804 us (>). period_size = 256 frames (precisely). buffer_time = 371519 us (>). buffer_size = 16384 frames (>). periods_per_buffer = 64 (precisely). Open Mixer Setting volume db to 0.000000. syncing to seqno 12334. Output sample ratio is 1 Open Mixer Setting volume db to 0.000000. RTSP shutdown requested. Closing down RTSP conversation thread... Shut down audio, control and timing threads Audio receiver -- Server RTP thread interrupted. terminating. Control RTP thread interrupted. terminating. Timing thread interrupted. terminating. rtp_timing_sender thread interrupted. terminating. Closed and terminated timer requester thread. Timing RTP thread terminated. timing thread joined audio thread joined control thread joined Player thread exit Execution of on-stop command failed to start Error executing on-stop command /full/path/to/application and args shutting down RTP thread RTSP conversation thread terminated. New RTSP connection from 192.168.0.5:63493 to self at 192.168.0.8:5000. Play connection from user agent "AirPlay/301.44.3". Active-Remote string seen: "2399081169". DACP-ID string seen: "679238BCA0AC2527". User-Agent is AirPlay; selecting the AirPlay latency of -1 frames. rtp_setup: cport=50848 tport=63306. Set up play connection from 192.168.0.5 to self at 192.168.0.8. listening for audio, control and timing on ports 6001, 6002, 6003. Execution of on-start command failed to startOutput sample ratio is 1. Output frame bytes is 4. Output bit depth is 16.
Error executing on-start command /full/path/to/application and args Timing receiver -- Server RTP thread starting. Control receiver -- Server RTP thread starting. Audio receiver -- Server RTP thread starting. Timing sender thread starting. syncing to seqno 17048. Output sample ratio is 1 Open Mixer Setting volume db to 0.000000. Packet reception interval stats: mean, standard deviation and max for the last 2,500 packets in microseconds: 7982.7, 12607.0, 111233.0. `