Commit Graph
242 Commits
Author SHA1 Message Date
Mike Brady 38281dd1c5 Add new auidio back end -- to stdout. 2015-06-02 11:59:56 +00:00
Mke Brady 87a0475c16 Reformat using clang-format. 2015-06-01 23:16:50 +01:00
Mke Brady 04e27cfe4f Reduce the number of times the player thread asks for the delay in the audio back end -- halve it, mostly. 2015-06-01 22:08:31 +01:00
Mke Brady e91cddabed Add support for latency offset and buffer length. Update comments. 2015-06-01 21:37:41 +01:00
Mike Brady 6e7358c762 Simplify calculation of buffer timing. Rename dac_buffer_queue_desired_length 2015-05-27 16:36:31 +00:00
Mike Brady 46bf99858a Uses the dac buffer size to offset the timing of the packets by a fixed amount 2015-05-22 17:08:57 +00:00
Mike Brady 5f00910693 Allow the pipe to be stdout, regluate timing better in the player thread. Rough, rough. 2015-05-21 16:12:37 +00:00
Mke Brady c887aafdf0 Very broken player mod. 2015-05-21 09:09:37 +01:00
Mike Brady 511fc7fbce Quieten a debug message. 2015-05-06 17:29:39 +00:00
Mike Brady 460f844824 Add new option to set the desired DAC buffer length. Quieten a few debug messages. 2015-05-06 13:55:58 +00:00
Mike Brady e3f75d85ce respond better to timeouts and print stats message when frames are totally missing. 2015-05-04 17:26:18 +01:00
Mke Brady 75f3f912c7 Make metadata support a compile-time option. Clean up a few definitions. 2015-04-03 13:47:58 +01:00
Mike Brady c2383d4942 Fix flush glitch, add artwork request to metadata set. 2015-03-18 21:02:49 +00:00
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