770b81afa7
use popt to check command line arguments, add debug message to see what port is being listened to.
Mike Brady2014-10-01 18:37:23 +01:00
0385889c86
Stop program crashing after an illegal argument is passed. It doesn't check properly for arguments though.
Mike Brady2014-09-28 16:02:00 +01:00
53f166a62f
Add new option: -P or --pause sends a pause request to the source.
Mike Brady2014-09-27 18:34:44 +01:00
7a3c9e8b46
Clean up debug message if pause request fails.
Mike Brady2014-09-27 18:33:37 +01:00
0b7e95410d
Add a little more buffer checking.
Mike Brady2014-09-27 10:35:24 +01:00
95a2dec9af
Fix BB bug in player_put_packet flush code.
Mike Brady2014-09-27 08:53:06 +01:00
df70427a22
Supress multiple sequencial resync activity in some situations.
Mike Brady2014-09-27 08:38:02 +01:00
c641dba3a0
Add flush logic to the point of adding packets to the queue.
Mike Brady2014-09-26 15:12:30 +01:00
8350488077
Refactor code to open and close the alsa device. Now it opens the device on play and closes it on pause or stop. Should speed up return of availability of device when client pauses or stops.
Mike Brady2014-09-25 18:17:45 +01:00
ddb77e2e5d
Check pause request return for a 204 code, quiten some debug messages.
Mike Brady2014-09-23 10:47:50 +01:00
d2ec715463
Merge branch '2.1' of github.com:mikebrady/shairport-sync into 2.1 This is necessary because of updating configure.ac to 2.1.2, which will change again...
Mike Brady2014-09-22 18:31:47 +01:00
f2a54dd00c
Send SIGUSR2 to shairport sync and it will send a pause request to the source. Also keep checking buffers.
Mike Brady2014-09-22 18:31:30 +01:00
ed127c7117
Add info about stability improvements
Mike Brady2014-09-17 21:32:59 +01:00
6a7fb5c8ec
Update diagram to show new volume curve -- the Goldilocks curve.
Mike Brady2014-09-17 21:22:54 +01:00
dc360d45c3
Adjust slope of volume control to be a bit faster at the lower end -- diagrams not updated.
Mike Brady2014-09-16 12:50:30 +01:00
8548cdc67d
Modify the volume control profile to make the lower range slower to progress -- seems smoother overall on a 120db (nominal) device.
Mike Brady2014-09-15 21:12:59 +01:00
d5fb35cd83
Still on the trail of that silencing bug -- fixed a silencing bug that could actually have caused it! Flush is a bit cruder, but I can't tell.
Mike Brady2014-09-15 18:14:01 +01:00
f88cc5ad99
Fix a bug that sometimes led to the periodic status messages not being sent. Duh.
Mike Brady2014-09-15 08:24:36 +01:00
9c4ed54522
Detab the code, turn off othe 'Resend ...' message, delete some commented-out code and update a few comments.
Mike Brady2014-09-14 21:11:11 +00:00
c7e49a6327
Improve sequence checking and packet resending requesting. May fix a bug that silences shairport after about three hours on a poor connection.
Mike Brady2014-09-14 17:30:49 +00:00
c87b78cfaf
One brown-bag and extra checking on buffer management.
Mike Brady2014-09-11 09:07:07 +01:00
0820749207
Add debug messages after resend requests; disable last-ditch resend request -- it seems to be bust.
Mike Brady2014-09-10 18:55:02 +01:00
266e4b29eb
Fix a probably-silent bug in makeing resend requests.
Mike Brady2014-09-10 08:41:05 +01:00
22495a0a3b
Suppress redundant packet-out-of-sequence messages when missing frames are inserted
Mke Brady2014-09-08 23:43:28 +01:00
0462ead319
Add seq_t PREDECSSOR and seq_sum functions, use them in place of add and subtract. Make play loop record plays and stats even when given silent frames.
Mike Brady2014-09-08 13:28:26 +01:00
0b90bb646c
Seems as if we do need SO_REUSEADDR stuff after all -- to allow shairport-sync to stop and restart cleanly.
Mike Brady2014-09-08 13:26:30 +01:00
60c3d6cf43
Another approach to checking if linux or osx -- tell it, like in Avahi.
Mike Brady2014-09-08 11:00:43 +01:00
367470ef00
Turn off debug message about jitter.
Mike Brady2014-09-07 15:59:27 +01:00
d3e1112b63
Modify to correctly identify a linux installation
Mike Brady2014-09-07 15:56:09 +01:00
b38dfd0601
Try to quieten some warnings for Mac OS X
Mike Brady2014-09-07 12:50:41 +01:00
caf359befb
1. Stop Mac OS X compiler complaining about seq_diff being “inline” 2. Use get_absolute_time_in_fp rather than get_absolute_time_in_ns 3. Remove useless and buggy jitter count stuff
Mike Brady2014-09-07 12:43:08 +01:00
32fc4ff5fe
Stop Mac OS X compiler complaining about seq_diff.
Mike Brady2014-09-07 12:40:36 +01:00
2cded85dd4
1. Fix sendto calls to use the exactly correct length for message destinations. OS X objects to incorrect lengths, though Linux is silent on it. 2. Use getaddrinfo to make up correctly-formed destination sockets. 3. bind_port is now a steaming mass of crap.
Mike Brady2014-09-07 12:39:45 +01:00
d3691bd46e
Don’t bother with SO_REUSEADDR stuff.
Mike Brady2014-09-07 12:36:24 +01:00
6669bd63dc
Update for new semantics of option -t 0.
Mike Brady2014-09-04 14:55:25 +01:00
1b53577df9
Update for change to -t = 0 option.
Mike Brady2014-09-04 14:49:05 +01:00
96d38fad61
When option -t is set to zero, allow a session to be interrupted.
Mike Brady2014-09-04 14:40:36 +01:00
aa9dc38ad2
Add option to control session timeout.
Mike Brady2014-09-03 17:44:57 +01:00
385f31b09a
Add extra option -t/--timeout to vary the time to wait for more audio before giving up. Zero to disable timeout, default 120 seconds.
Mike Brady2014-09-03 13:18:58 +01:00
9a3426c048
Improve error messages when prerequisistes are missing.
Mike Brady2014-09-02 06:55:00 +00:00
e00a6e3552
Update documentation to reflect ability to add arguments to on-start and on-stop commands.
Mke Brady2014-09-01 22:15:45 +01:00
377f344ec1
Update documentation to reflect ability to add arguments to on-start and on-stop commands.
Mke Brady2014-09-01 22:14:08 +01:00
48fa729825
Change the help text to reflect ability to add arguments to on-start and on-stop commands.
Mke Brady2014-09-01 22:13:24 +01:00
3466530c9e
Use popt library to allow on-start and on-stop commands to have arguments
Mke Brady2014-09-01 22:00:19 +01:00
b21fafe482
shorten the duration of the Gibbs phenomenon overlay -- sounds a little better...
Mike Brady2014-08-29 12:39:51 +01:00
88fc18ad49
Add Gibss phenomenon hack to end of the packet (as well as the start).
Mike Brady2014-08-29 12:00:30 +01:00
0a583f1b55
Quieten an incorrect compiler warning
Mike Brady2014-08-28 18:33:36 +01:00
f6df7e9232
Add a simple pseudo-random throttle to keep the rate of corrections below 1:1000 on average -- that is, about 1 packet in three may be interpolated.
Mike Brady2014-08-27 18:34:24 +00:00
a9a00dc8f0
Merge branch '2.1' of github.com:mikebrady/shairport-sync into 2.1
Mke Brady2014-08-26 19:24:35 +01:00
d713591df8
Move the time_of_last_packet timeout check to where it can run even if playback never started or was aborted, duh.
Mke Brady2014-08-26 19:23:54 +01:00
1bf6673838
It's libssl-dev, not libopenssl-dev
Mike Brady2014-08-26 19:15:18 +01:00
771aa1a130
Add support for PolarSSL, libsoxr, fix ab_* and seq_* definitions and utilites, remove FANCY_RESAMPLING stuff, fix many many bugs.
Mike Brady2014-08-24 16:32:34 +01:00
97ff1c6a2c
Change definition of seq_diff to bring it into player.c
Mike Brady2014-08-24 16:27:44 +01:00
b25f92e51e
Add support for PolarSSL, quieten some error messages.
Mike Brady2014-08-24 16:26:44 +01:00
90e97bc1f1
Add new options, version info, polarssl, refine some debug messages, bug fixes.
Mike Brady2014-08-24 16:25:13 +01:00
7bf5d4d63f
Add support for centralised timing, jitter calculation, probably not working, add an aging factor to dispersion, as per NTP. Check crudely for out of sequence packets.
Mike Brady2014-08-24 16:23:12 +01:00
ac59141848
Stop incorrect warning about malloc/free and add an ignore int to stop another warning
Mike Brady2014-08-24 16:18:46 +01:00
f0195c5d79
Stop incorrect warning about malloc/free
Mike Brady2014-08-24 16:17:56 +01:00
8207b8823d
Add support for removing tinysvcmdns
Mike Brady2014-08-24 16:17:14 +01:00
2de9a58018
Add support for PolarSSL, soxr, fix tinysvcmdns stuff, fix bugs.
Mike Brady2014-08-24 16:16:00 +01:00
75fe108eb7
Add support for PolarSSL, some OS X stuff, centralised absolute timing, -B and -E command execution. Bug fixes.
Mike Brady2014-08-24 16:14:17 +01:00
b9e59fc18f
Add support for stuffing option, for the start and end commands and centralise how to get absolute time.
Mike Brady2014-08-24 16:12:22 +01:00
689063ce8c
Improve error messages, make them quieter sometimes.
Mike Brady2014-08-24 16:10:05 +01:00
2e27c885a9
Add int to stop compiler warning
Mike Brady2014-08-24 16:08:32 +01:00