Commit Graph
135 Commits
Author SHA1 Message Date
Mike Brady f4d2631d1c Quieten some unnecessary debug messages. 2016-02-29 19:54:51 +00:00
Mike Brady e9966089b8 Fix an error whereby the player would wait endlessly when a frame not marked ready (i.e. a missing frame) was presented. 2016-02-29 13:36:53 +00:00
Mike Brady c8af40e9ca Experimentally, discard flush request that come before the first packet -- TuneBlade bug workaround 2016-02-05 09:25:21 +00:00
Mike Brady 686082b34d Take a little more care of access to the alsa system; wait 100 ms after finishing with it to release data strucutres 2016-02-02 14:43:37 +00:00
Mike Brady 6c485fa5b8 Make alac check allocated buffer size and make player check and discard bad audio frames. 2016-02-02 09:43:44 +00:00
Mike Brady c2949b0ff5 Add proper data structure for passing parameters between threads. Add some debug messages. 2016-02-02 09:08:19 +00:00
Mike Brady 51ae68e095 Experiment with waiting a little while before sending resend requests. 2016-01-23 19:02:49 +00:00
Mike Brady 09d9905328 Fix silly error 2016-01-23 18:00:45 +00:00
Mke Brady 9f7a3ff4e1 Ask for the correct number of packets to be resent -- it was asking for one too many in some situations. 2016-01-23 17:57:43 +00:00
Mke Brady 9a9c9842fc Remove global signalling for stopping threads 2016-01-23 17:50:36 +00:00
Mike Brady 21fb39d22f Begin to clean up the 'stop' signalling among the threads -- try to remove as many globals as possible 2016-01-22 17:47:25 +00:00
Mke Brady 4e395ff3a5 Tiny changes 2015-12-26 15:14:01 +00:00
Mike Brady 186e4181e6 Remove pesky assert on alac_decode ooutput size 2015-12-15 18:10:34 +00:00
Mike Brady 6802f4ae2a Add a little diagnostic to the output of the alac decoder. 2015-12-14 17:12:03 +00:00
Mke Brady 73c3744e4c Add check for processor endianness. Fix a small warning. 2015-11-29 20:59:11 +00:00
Mike Brady c15c49fd2e Fix the software-volume control dither algorithm, which was (a) broken [by me] and (b) not best practice anyway. 2015-11-26 17:32:08 +00:00
Mike Brady 3557835b68 Tidy up some debug messages 2015-11-07 19:08:10 +00:00
Mke Brady b74705b7b6 Extensively revise the volume splitting -- put hardware at the bottom of the attenuation range. 2015-11-07 18:10:56 +00:00
Mke Brady f424c6dbf7 Compiles, sorta runs, flaky 2015-11-05 22:35:38 +00:00
Mike Brady 4c70223f5a Work in progress, doesn't compile 2015-11-05 18:03:58 +00:00
Mke Brady 3b88d05137 Add CYGWIN flag check to be recognised as Posix-enough (?) 2015-10-21 10:22:56 +01:00
Mke Brady ea25011394 Functional volume_range_db setting in the general stanza 2015-10-07 22:33:20 +01:00
Mke Brady a89da7fded Fix a bug whereby it would not start to play the stream -- visible when used as system sound. Improperly initialised first_packet_timestamp 2015-10-06 13:39:05 +01:00
Mike Brady 94d3864ed8 Add a boolean to stop the player asking for the DAC delay before sending anything to it. 2015-10-03 23:24:06 +01:00
Mike Brady 2a4f404953 Disable using linear mixer scale for the time being. 2015-10-03 21:33:10 +01:00
Mke Brady ba02dee443 playing with using just a linear mixer 2015-10-03 12:49:56 +01:00
Mke Brady 569154159d Add experimental negotiated latencies setting and associated logic. 2015-09-25 18:19:00 +01:00
Mike Brady 8776f84e86 Initial debug and exploratory code 2015-09-25 16:47:58 +01:00
Mike Brady e052b5fb9e Use pkg-config to find libdaemon -- useful in FreeBSD -- and quieten a few warnings in FreeBSD 2014-10-11 19:55:29 +01:00
Mke Brady 83b7049ef3 Quieten unnecessary debugging 2015-09-01 10:28:55 +01:00
Mke Brady d10e097f4c Turn on a lot of debugging 2015-09-01 10:02:09 +01:00
Mike Brady dce45dcd30 Merge branch 'development' of github.com:mikebrady/shairport-sync into development
Forgot changes made on the repository.
2015-08-18 08:13:56 -04:00
Mike Brady 07c888e0e7 Clean up a few comments 2015-08-18 08:13:00 -04:00
Mke Brady 9703007331 Don't start stuffing in the first five seconds. Allow 1:300 stuffing after 30 seconds. 2015-08-12 20:25:04 +01:00
Mike Brady e238bf238c Begin to add time-related changes to stuffing. 2015-08-12 17:36:28 +02:00
Mike Brady ff95a96e61 Allow more stack space for thread, include freebsd in the name of condional compilation variable 2015-08-01 14:34:35 +02:00
Mike Brady fcec637340 Add buffer size to diagnostics 2015-06-29 18:25:39 +00:00
Mike Brady 841014277e Add check of drift in the source material -- i,e, divergence between calculated and actual remote clocks for frames. 2015-06-26 15:11:21 +01:00
Mike Brady 300b4abe6f Add ability to output clock drift and corrections applied, both in microseconds. 2015-06-25 14:23:21 +00:00
Mike Brady 41f47f79f5 Tidy up and move packet counter inside mutex. 2015-06-17 18:42:05 +01:00
Mike Brady 2a1fe7afed Add ability to deal with an unencrypted audio stream 2015-06-17 12:10:33 +01:00
Mke Brady 8c55f603bc UDP port numbers are now chosen from port 7000 up. Two options are introduced to control this. joerg-krause's stack erro fix installed. 2015-06-10 22:18:17 +01:00
Mike Brady e810eb64ce Modify the statistics output when synchronisation is disabled. 2015-06-02 12:52:40 +00:00
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