Commit Graph
612 Commits
Author SHA1 Message Date
Mike Brady 95f0f0121a Stop logging an error if the pthread_cond_wait times out. 2018-11-19 20:28:02 +00:00
Mike Brady 58a66ebb0e Make debuglev volatile, over player_vol past the cleanup push, add some temporary diagnostics. 2018-11-19 14:24:24 +00:00
Mike Brady 45c1c566ae Fix a logical error in buffer_get_frame that could cause an endless loop if an unready frame occurred during a flush. 2018-11-18 15:25:06 +00:00
Mike Brady 67083665ad Get more diagnostic messages when a TuneBlade-induced error occurs. 2018-11-13 11:00:05 +00:00
Mike Brady 06c45c4970 Remove a few unused functions. 2018-11-01 11:28:22 +00:00
Mike Brady 4faa654ba9 Remove a signed/unsigned comparison warning 2018-10-28 14:20:22 +00:00
Mike Brady 3ae8c4e9bc Quieten an unnecessary debug message. 2018-10-23 12:15:00 +01:00
Mike Brady 3cb359c747 Tighten up integer promotion checks to calculate large delays properly. Fix input rate calculation restarting. 2018-10-23 10:26:08 +00:00
Mike Brady 77176ec4e0 See where a weird large negative delay is being calculated. 2018-10-22 20:53:44 +00:00
Mike Brady ab139ffc8c Fix calculation of filler length. 2018-10-21 22:52:06 +01:00
Mike Brady 8914b68b42 Calculate silence memory requirements properly. Remove some alarming messages. 2018-10-21 21:24:38 +01:00
Mike Brady 7c35f64746 Fix a reporting error, allow a larger time window for legitimate flush requests. 2018-10-21 18:32:18 +01:00
Mike Brady e0a4e5cde8 Format tidy-up 2018-10-21 17:10:23 +01:00
Mike Brady e5259e8764 Remove a few compiler warnings. 2018-10-21 17:00:56 +01:00
Mike Brady d2dba7cdba Seems to work for higher rates 2018-10-19 22:14:23 +01:00
Mike Brady b53fc39dd2 Replace a mutex unlock deleted by accident. 2018-10-19 14:04:30 +01:00
Mike Brady de071aeffc Try to fix modulo calculations 2018-10-18 17:44:50 +01:00
Mike Brady b122763a9b quieten a debug message 2018-10-14 15:28:51 +01:00
Mike Brady c2d1da2e5c Generate error messages if there is a problem with getting the delay, and pay attention to it in the player thread. 2018-10-14 15:15:15 +01:00
Mike Brady ed4f439910 Add a debug message... 2018-10-13 15:23:14 +00:00
Mike Brady 1b18f45fac Clang Format Cleanup 2018-09-09 20:43:01 +01:00
Mike Brady c9b3d2a2f4 Many changes to compilation and linking flags. Stop using HAVE_* flags except where necessary, use CONFIG_* for optional stuff, use HAS_* for immediate definitions, use USE_* for AM definitions. Probably introduced bgs, sigh. 2018-09-09 20:41:31 +01:00
Mike Brady 69642bb7de Partly clean up use of automake, autoconfig and compiler flags. Works but still not consistent. 2018-09-09 14:12:20 +01:00
Mike Brady 959aa08b8f Clean up the jack backend and add a few options. 2018-08-31 21:41:25 +01:00
Mike Brady 6bad1b3b8c remove some now-redundant code 2018-08-31 12:46:48 +01:00
Mike Brady 8cabb16f25 Initial very rough attempt at a jackaudio backend. 2018-08-31 12:39:18 +01:00
Mike Brady 44c61835b8 Include a few fixes for FreeBSD warnings and quieten some debug messages 2018-08-22 15:10:38 +01:00
Mike Brady d2f6a446e1 Bring up to date with 3.3d2 from the raspberry pi 2018-08-22 14:41:03 +01:00
Mike Brady 754155ce0f clang format 2018-08-22 13:07:04 +01:00
Mike Brady 1ee806a53a Fix display of drift -- the sign is correct now. All timing is relative to the local clock. Add a rough estimate of the correction necessary. Use the most recent 128 timing samples. 2018-08-22 13:02:42 +01:00
Mike Brady d5197081ef Fix a stupid divide-by-zero error and remove unrecognised warning options for FreeBSD 2018-08-20 19:53:16 +01:00
Mike Brady c101d5adf6 Quieten some error messages 2018-08-15 15:58:13 +01:00
Mike Brady 3adcf000a0 Quieten a debug message 2018-08-15 12:41:19 +01:00
Mike Brady 9a005c8ec4 Quieten a debug message 2018-08-15 10:36:29 +01:00
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 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 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 Brady f6b3c420c7 Enable input frame rate calculation to handle a pause/resume correctly. 2018-07-30 14:07:39 +01:00
Mike Brady b75c82d14a Add input frame rate calculation. 2018-07-30 13:39:38 +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 6c7b26a633 Add debug message to try to understand a weird negagive memory request. 2018-07-29 15:33: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 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