Commit Graph
426 Commits
Author SHA1 Message Date
Mike Brady c318796e55 Add an uncancellable usleep timer. Make the player and UDP thread cleanups uncancellable. 2018-11-29 11:37:56 +00:00
Mike Brady 22f3e3e318 Move watchdog to cover connection from start, not just from start of play. Start investigating UDP port allocation. Tidy up handling or RTSP write errors -- remove the pselect code from before a write. 2018-11-28 17:18:03 +00:00
Mike Brady eaa98ea7d9 Quieten a few debug messages. 2018-11-27 17:40:07 +00:00
Mike Brady 76ee6d5e43 Add new watchdog thread for the player -- should be more reliable than the existing code. 2018-11-26 19:33:22 +00:00
Mike Brady 998e7cea2c clang-format 2018-11-24 11:16:57 +00:00
Mike Brady d93aeec50a Quieten a few debug messages. 2018-11-23 15:11:04 +00:00
Mike Brady ae1453f8aa Stop going to verbosity level 3 on occasion. It's not so useful now. 2018-11-23 13:57:34 +00:00
Mike Brady 093bf1dd46 Rotate usage of UDP ports if a session is interrupted. Avoids out-of-date packets landing in a new session. 2018-11-23 13:29:09 +00:00
Mike Brady 0e6835589c Try making dropping and closing the DAC un-cancelable to stop the bcm DMA problem. Add some diagnostics. 2018-11-22 21:57:54 +00:00
Mike Brady 303a85c3b5 Add back in the ability to interrupt a session. Clean up a few debug messages. 2018-11-21 21:32:18 +00:00
Mike Brady ccc4fe09af Tidy up the formats. 2018-11-20 22:56:53 +00:00
Mike Brady 8f34c181e1 Remove inner flush loop from get_buffer. Use flush for fixing large positive error. 2018-11-20 22:41:23 +00:00
Mike Brady 6e6c8213e6 Put in a cancellation point explicitly in the player_thread main loop. Tidy up some debug messages. 2018-11-20 14:18:33 +00:00
Mike Brady ec7d46bc32 Double check debug is not a cancellation point and move the dacp monitor initialisation code to after the subsidiary session threads are created. 2018-11-20 12:06:13 +00:00
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