Commit Graph
2985 Commits
Author SHA1 Message Date
Mike Brady 2a4abea6e5 Modify the timing to be (hopefully) a bit more gentle in its corrections 2018-08-15 10:28:51 +01:00
Mike Brady 5141e2f5dc Format tidy-up 2018-08-14 12:14:49 +01:00
Mike Brady 519135734f Calculate actual and nominal input frame rates more accurately, allowing for flush and resume events. 2018-08-14 12:13:02 +01:00
Mike Brady 2f58856268 Add source rate calculation based on source frame and timing information, calculated from start of play session. 2018-08-13 14:44:22 +01:00
Mike Brady a8cfc9915f display the number of samples used to calculcate drift, clean up the settings for the number of samples to skip at the start and for the minimum number of samples to use. Store 64 samples. 2018-08-13 14:06:40 +01:00
Mike Brady df18e3a017 Add the ability to read and change the stuffing threshold 2018-08-13 14:05:14 +01:00
Mike Brady 25d02d183e Use CXXFLAGS etc. to ensure they can be overridden properly. Turn off ABI-changed warnings. 2018-08-13 14:04:22 +01:00
Mike BradyandGitHub b0445b143b Update RELEASENOTES.md 2018-08-08 09:36:17 +01:00
Mike Brady f2ab25d01a Fix a read-write mutex locking issue in the metadata hub, fix a libsoxr related dbus bug, switch over to better (we hope) timing measurement, giving smoother usage of interpolation. 2018-08-08 09:30:38 +01:00
Mike Brady 63c447582f Fix a read-write mutex locking issue in the metadata hub. 2018-08-08 09:28:34 +01:00
Mike Brady 4590b08e62 Fix a bug whereby libsoxr-required code wasn't included, causing soxr interpolation to be disabled. 2018-08-08 09:04:58 +01:00
Mike Brady 95bb10a6c3 Remove or comment out some extraneous code, quieten some debug messages. 2018-08-08 09:03:53 +01:00
Mike Brady 48d001591a Turn off "clobbering" warning, as it generates too many false positives at present. 2018-08-08 09:00:41 +01:00
Mike Brady 8b0889ea5d Remove bogus possibly uninitialised variable warning. 2018-08-06 17:57:42 +01:00
Mike Brady 3dbea79962 Merge branch 'development' of https://github.com/mikebrady/shairport-sync into development
Forgot the documentation update.
2018-08-06 12:34:27 +01:00
Mike Brady 51283d2e07 Update some debug messages 2018-08-06 12:33:45 +01:00
Mike Brady 78f1cd614c Allow for different output rates in the new calculations 2018-08-06 09:48:36 +01:00
Mike Brady 3870195cf9 Begin to use a unified and more accurate scheme for translating between local time and rtp timestamp, taking clock drift and actualt source rate into account if available. Not dealing with highes output rates yet. 2018-08-05 17:23:07 +01:00
Mike BradyandGitHub e8de38546a Update RELEASENOTES.md 2018-08-01 09:49:34 +01:00
Mike Brady e90f172254 Forgot documentation updates.
Merge branch 'development' of https://github.com/mikebrady/shairport-sync into development
2018-08-01 09:37:06 +01:00
Mike Brady 3a0fb4c919 Change calculation order to prevent overflow after about 26 hours at 44,100 fps in the frame rate calculations. Calculate frame rates whether statistcs are requested or not. Clean up some fps rate availability flags. 2018-08-01 09:36:28 +01:00
Mike Brady 3888125a24 Change calculation order to prevent overflow after about 26 hours at 44,100 fps in the frame rate calculations. Calculate frame rates whether statistcs are requested or not. Clean up some fps rate availability flags. 2018-08-01 09:35:28 +01:00
Mike BradyandGitHub db5a38b31e Update RELEASENOTES.md 2018-07-30 22:13:56 +01:00
Mike BradyandGitHub acc1c5d6df Update RELEASENOTES.md 2018-07-30 14:23:41 +01:00
Mike BradyandGitHub 7c182afcd7 Update RELEASENOTES.md 2018-07-30 14:20:28 +01:00
Mike Brady f6b3c420c7 Enable input frame rate calculation to handle a pause/resume correctly. 2018-07-30 14:07:39 +01:00
Mike Brady 1b1bf44cc2 Merge branch 'development' of https://github.com/mikebrady/shairport-sync into development
Forgot changes.
2018-07-30 13:40:14 +01:00
Mike Brady b75c82d14a Add input frame rate calculation. 2018-07-30 13:39:38 +01:00
Mike BradyandGitHub b01389c27b Update RELEASENOTES.md 2018-07-30 12:23:55 +01:00
Mike BradyandGitHub d3838bf390 Update RELEASENOTES.md 2018-07-30 12:17:32 +01:00
Mike BradyandGitHub 78ae53d2dc Update RELEASENOTES.md 2018-07-30 11:29:52 +01:00
Mike BradyandGitHub 15c80b7a93 Update RELEASENOTES.md 2018-07-30 11:29:28 +01:00
Mike Brady a5dd76d223 Stop using SIGUSR1 for cancelling threads, use pthread_cancel and friends instead, fix some memory leaks, add accurate ouput rate calculation to statistics, add "quit" verb to MPRIS and native d-bus interfaces. Remove incorrect warning, quiten some debug messages. 2018-07-30 10:31:21 +01:00
Mike Brady ac8afe0ab2 Remove an incorrect warning about using the "general" "statistics" setting. 2018-07-30 10:30:00 +01:00
Mike Brady 76c5dd9285 Stop using SIGUSR1 for cancelling threads, use pthread_cancel and friends instead, fix some memory leaks, add accurate ouput rate calculation to statistics, add "quit" verb to MPRIS and native d-bus interfaces. Probably still buggy. 2018-07-30 10:07:11 +01:00
Mike Brady 4ea9de7b8b Move car setup alternative to an issue thread 2018-07-30 08:57:42 +01:00
Mike Brady 6c7b26a633 Add debug message to try to understand a weird negagive memory request. 2018-07-29 15:33:42 +01:00
Mike Brady ea20840d6c Make the play function return a status (ignored for the present). Clean up audio_alsa by removing all the die calls and placing the alsa_mutex calls in pthread cleanup routines. 2018-07-29 13:45:42 +01:00
Mike Brady c91a991edd Prevent arithmetic overflow after 2^32 microseconds, i.e. about one hoour and 11 minutes... 2018-07-29 10:45:55 +01:00
Mike Brady 17793bd000 Change measurement of frames and timing to mimimise effects of paging, cache loading, asynchronous access to the DAC. 2018-07-29 09:47:53 +01:00
Mike Brady c03f6d8133 Ensure flush resets everything. 2018-07-29 08:35:06 +01:00
Mike Brady c85e7e05d1 Add a frames per second output. This should be exact if the machine is connected up to, say, an NTP time service. It uses CLOCK_MONOTONIC time. 2018-07-28 19:02:02 +01:00
Mike Brady 577449dffa Remove use of SIGUSR1 and pthread_kill to stop threads. Not debugged! 2018-07-27 10:58:36 +01:00
Mike Brady aa13fd9849 Remove hack to try to avoid whitespace removal by rsyslogd. It turns out that this has been fixed in recent versions of rsyslogd. Not on Raspbian Stretch yet though... 2018-07-23 17:37:43 +01:00
Mike Brady a30c254bb6 Quieten some debug messages. 2018-07-23 14:26:48 +01:00
Mike Brady dc4e577d8f Improve some debug messages. 2018-07-23 13:56:54 +01:00
Mike Brady 865c71b1d0 Remove an unwanted debug messages 2018-07-22 16:29:36 +01:00
Mike Brady f153a1f570 Remove some unwanted debug messages 2018-07-22 16:26:47 +01:00
Mike Brady 703ab8e556 Quieten a few debug messages 2018-07-22 16:13:49 +01:00
Mike Brady 5f750ba9b7 Fix a few memory leaks. 2018-07-22 16:12:52 +01:00