Commit Graph
79 Commits
Author SHA1 Message Date
Mike Brady a2790fc102 Improve metadata output -- maybe it works reliably now. Add call to get audio parameters from back ends, to be able to give volume metadata. 2015-03-16 11:11:54 +00:00
Mike Brady 606c3fd080 Allow non-blocking option to adding item to pc queue -- necessary for 'resume' and possibly 'flush'. Stop pc_queue locking up (?) 2015-03-14 14:21:17 +00:00
Mke Brady e8be4e4883 Add a 'resume' metadata tag for when the stream is about to play 2015-03-12 23:07:02 +00:00
Mke Brady 60b3a6f7fd A little closer to an XML metadata sender. Still in flux. 2015-03-12 22:42:32 +00:00
Mike Brady edcd6da6b0 Debugging metadata code. The metadata is all a construction zone right now. 2015-03-12 20:46:21 +00:00
Mike Brady f2a02b6f71 Send a few metadata messages -- not really tested. 2015-03-11 22:36:16 +00:00
Mike Brady 391b48f62a Continue to experiement with metadata. Make it a little more resistant to line drop outs and delays, add too-simple reference counting to rtsp messages. 2015-02-27 17:21:00 +00:00
Pieter De Gendt 748a0046ad Fix: memory leak 2015-02-20 10:21:54 +01:00
Mike Brady d5746a9156 Add --password option and add --tolerance option. 2015-01-21 13:10:14 +00:00
Mike Brady 705a0be1e4 Add new optioons --statistics to print out the, um, statistics, and remove them from debug level 1. 2014-11-21 17:39:27 +00:00
Mike Brady ffb37d2b53 Redefine timeout to be an int rather than a 64-bit int. Bump to 2.1.10 2014-11-14 16:53:14 +00:00
Mike Brady 5c7511e0c5 If --with-alsa wasn't used, USE_ALSA wasn't defined (should be false).
during flush, should be moving to the next packet, but was doing a comparison instead.
2014-10-25 15:08:04 +01:00
Mike Brady 043363fb53 Use --with-piddir instead of --with-localstatedir and add disconnect and reconnect to audio output code and options and clean up some unused code 2014-10-23 18:13:42 +01:00
Mike Brady b64d345892 Fix unexpected timout due to race condition, I think, on the timing. 2014-10-20 11:55:24 +01:00
Mke Brady eef08e4975 Change SIGUSR2 to turn on and off reserving the output device. 2014-10-19 16:43:59 +01:00
Mike Brady d4714519b0 Quieten chatty debug messages. 2014-09-27 11:02:48 +01:00
Mike Brady 0b7e95410d Add a little more buffer checking. 2014-09-27 10:35:24 +01:00
Mike Brady 95a2dec9af Fix BB bug in player_put_packet flush code. 2014-09-27 08:53:06 +01:00
Mike Brady df70427a22 Supress multiple sequencial resync activity in some situations. 2014-09-27 08:38:02 +01:00
Mike Brady c641dba3a0 Add flush logic to the point of adding packets to the queue. 2014-09-26 15:12:30 +01:00
Mike Brady f2a54dd00c Send SIGUSR2 to shairport sync and it will send a pause request to the source. Also keep checking buffers. 2014-09-22 18:31:30 +01:00
Mike Brady 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. 2014-09-15 18:14:01 +01:00
Mike Brady f88cc5ad99 Fix a bug that sometimes led to the periodic status messages not being sent. Duh. 2014-09-15 08:24:36 +01:00
Mike Brady 9c4ed54522 Detab the code, turn off othe 'Resend ...' message, delete some commented-out code and update a few comments. 2014-09-14 21:11:11 +00:00
Mike Brady c7e49a6327 Improve sequence checking and packet resending requesting. May fix a bug that silences shairport after about three hours on a poor connection. 2014-09-14 17:30:49 +00:00
Mike Brady c87b78cfaf One brown-bag and extra checking on buffer management. 2014-09-11 09:07:07 +01:00
Mike Brady 0820749207 Add debug messages after resend requests; disable last-ditch resend request -- it seems to be bust. 2014-09-10 18:55:02 +01:00
Mike Brady 266e4b29eb Fix a probably-silent bug in makeing resend requests. 2014-09-10 08:41:05 +01:00
Mke Brady edd99037c2 Merge osxmods into 2.1 2014-09-09 00:14:31 +01:00
Mke Brady 22495a0a3b Suppress redundant packet-out-of-sequence messages when missing frames are inserted 2014-09-08 23:43:28 +01:00
Mike Brady 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. 2014-09-08 13:28:26 +01:00
Mike Brady 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
2014-09-07 12:43:08 +01:00
Mike Brady 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. 2014-09-03 13:18:58 +01:00
Mike Brady b21fafe482 shorten the duration of the Gibbs phenomenon overlay -- sounds a little better... 2014-08-29 12:39:51 +01:00
Mike Brady 88fc18ad49 Add Gibss phenomenon hack to end of the packet (as well as the start). 2014-08-29 12:00:30 +01:00
Mike Brady 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. 2014-08-27 18:34:24 +00:00
Mke Brady d713591df8 Move the time_of_last_packet timeout check to where it can run even if playback never started or was aborted, duh. 2014-08-26 19:23:54 +01:00
Mike Brady 771aa1a130 Add support for PolarSSL, libsoxr, fix ab_* and seq_* definitions and utilites, remove FANCY_RESAMPLING stuff, fix many many bugs. 2014-08-24 16:32:34 +01:00
Mike Brady 115991ca24 Make the timeout for unexplained loss of audio packets 120 seconds, up from 6 seconds. Too short a delay can make the source think shaiport has gone away. There might be a better way to do this. 2014-06-12 11:11:17 +01:00
Mike Brady 3f121c2b05 Improve the misquotation of Yeats' 'Easter, 1916' 2014-06-07 17:45:44 +00:00
Mike Brady fab829cfde Change no-audio timeout from 4 to 6 seconds. An then, only ask to teardown once. 2014-06-07 17:38:43 +00:00
Mike Brady 32448afc4a If there is a gap in audio for more than 4 seconds, it tears down the connection. 2014-06-04 22:12:30 +01:00
Mike Brady d6a69d6f23 Delay for 0.1 seconds if first packet is late. 2014-05-27 08:16:43 +01:00
Mike Brady f14221698e Flush if first packet is late. 2014-05-25 18:48:19 +01:00
Mike Brady 86f911c2fd ignore silent frames substituted for missing frames. 2014-05-23 16:55:28 +01:00
Mike Brady 93e247b182 Stop complaint about losing sysnc when asked to stop. 2014-05-22 16:33:35 +00:00
Mike Brady 38a249624c Flush and resync if player gets more than 30 ms out of sync. Can happen if iTunes machine is very busy or network is bad. 2014-05-22 13:39:46 +00:00
Mike Brady 2c01e9b927 Correct sign of divergence, clean up formatting a little. 2014-05-22 13:02:04 +01:00
Mike Brady 3c351d7b40 Make DAC buffer 6615 frames (0.15 sec.) for Debian 7 on VMWare Fusion. 2014-05-21 21:10:58 +01:00
Mike Brady 74ba4f3da4 Turned off a few debug messages. 2014-05-20 16:12:08 +00:00