Commit Graph
621 Commits
Author SHA1 Message Date
Mike Brady fd880056fb Squashed commit of the following:
Add three parameters to the backend play() function call -- (1) a flag indicating whether the samples are timed or not. If timed, (2) the timestamp and (3) the local time at which the first frame should be heard.
    Update missing pipewire library message.
    Makefile.am fix.
    Update the SHM version and fix the SHM name so that it works with FreeBSD.
    Remove redundant (?) AC_HEADER_STDC check.
    Fix compilation and installation under FreeBSD -- changes to allow building in a separate directory broke the FreeBSD build process.
    Add AC_CHECK_LIB for gcrypt in case PKG_CHECK_MODULES fails to find it.
    Find gcrypt using pkg-config
    Add code to detect when the RTSP channel goes idle for a period, and use it to reset clocks and timings, etc. so that SPS resumes correctly where the source has gone to sleep while playing a realtime stream and has subsequently woken up.
    Don't exit if a UDP Clock Control packet is empty. Also check minimum packet size.
    Remove some very experimental code which may cause memory and port leaks.
    Strip file path from the filename used in debug messages, information messages, warnings and fatal error messages.
    BB fix to Makefile.am -- overwriting the DBUS stuff with MPRIS definitions, duh.
    Fix some problems building on FreeBSD and tidy up the use of the "sed" editor.
    Fix some problems building on picore.
    Fix an uninitialised variable
    start using the "nqptp" SMI
2022-09-12 15:19:52 +01:00
Mike Brady 5f92164c4c Quieten a bogus warning. 2022-08-19 12:25:36 +01:00
Mike Brady 174556f054 Remove a few causes of "possibly uninitialised" warnings. 2022-08-16 09:26:35 +01:00
Mike Brady 05dfcdfd6a Merge other enhancements. 2022-08-09 14:18:53 +01:00
Mike Brady f61278278a Quieten a noisy debug message. 2022-08-09 12:39:23 +01:00
Mike Brady a238842385 Simplify use of an initial volume figure. 2022-08-06 19:19:43 +01:00
Mike Brady a72b5d7ca2 Quieten a debug message. 2022-08-05 14:24:03 +01:00
Mike Brady 1ca2487b1c Reset first_packet_timestamp if buffer goes empty. Reset anchor information if a clock control signal doesn't arrive in time in a realtime play. 2022-08-03 12:54:46 +01:00
Mike Brady 6a2ba5fd0f Minor debug message update. 2022-07-31 13:08:54 +01:00
Mike Brady 129343c165 Don't quit if the ALSA output device is or becomes busy and resume when it becomes available again. 2022-07-20 18:04:42 +01:00
Mike Brady 6911212775 Stop clipping when mono mixing is selected (32-bit) as well. 2022-07-01 13:53:59 +01:00
Mike Brady 2ab4895f16 Stop clipping when mono mixing is selected. 2022-07-01 13:32:20 +01:00
Mike Brady 97ecff93bd Modify a player_volume_without_notification to show sw and hw attenuation in dB. 2022-06-29 17:28:00 +01:00
Mike Brady d194561ab4 Don't set the initial volume to 0.0 (full volume) if ignore_volume_control is selected -- bad idea! 2022-06-25 10:54:27 +01:00
Mike Brady f551274a2e Set the initial volume to 0.0 (full volume) if ignore_volume_control is selected. Add some code to explore remote_control. Still not even close to working. 2022-06-25 10:47:18 +01:00
Mike Brady 2260853ebc Clean up a long comment about the ALAC data structures. 2022-06-19 13:04:05 +01:00
Mike Brady a1dabd79a7 Remove check for AAC decoder. 2022-05-24 10:17:01 +01:00
Mike Brady cdb4d384d3 Fix a stupid bug in the selection of timebases. 2022-05-23 20:34:37 +01:00
Mike Brady 95a43c9c1f Remove non sensible input_rate message. 2022-05-23 14:07:48 +01:00
Mike Brady 432b56c656 Remove stats function from audio_sndio backend, as it's too inaccurate. Also remove non-sensible infput frame rate from summary. 2022-05-23 14:00:28 +01:00
Mike Brady e4cadfc1e7 Put visual divider pipe characters between the column headings in statistics. 2022-05-23 13:38:39 +01:00
Mike Brady 0df6e18b86 Only disply the fps stuff if we have a stats function in the backend 2022-05-23 13:31:22 +01:00
Mike Brady 1d2288702a If statistics are enabled, log when a play starts and what type the stream is. 2022-05-18 11:05:28 +01:00
Mike Brady f06524cfa0 Ensure the AP2 Buffered Stream buffer size is hidden when playing an AP1 stream in AP2 mode. 2022-05-18 10:03:01 +01:00
Mike Brady 1115ec4f19 Small cosmetic changes. 2022-05-17 16:39:13 +01:00
Mike Brady b4d676fe04 Small alterations in how play time is calculated. Debug and format changes. 2022-05-14 18:56:35 +10:00
Mike Brady e7098c4529 List the total number of frames sent to DAC and current DAC delay to diagnostics when a large sync error occurs. Stop listing the total number of packets in statistics. 2022-03-16 10:21:54 +11:00
Mike Brady a382ac6672 Clang Format 2022-03-14 11:56:43 +11:00
Mike Brady 08afa822f5 Add buffer size to statistcs information for a Buffered Audio stream. 2022-03-13 12:33:53 +11:00
Mike Brady f135d857c0 Ensure that when ignore_volume_control is true, the volume metadata has the current, max and min values of the [now ignored] attenuator set to 0.0. 2022-02-01 15:44:43 +00:00
Mike Brady deb11654ab Add some sanity checking of latency-affecting settings. 2022-01-24 10:17:07 +01:00
Mike Brady 703717a58a Reset the realtime clock information when a realtimne stream play terminates. 2022-01-23 10:04:04 +01:00
Mike Brady 73eec0a1be Add some code to investigate possible unclean teardowns in AP2 modes. Also add code which might obviate the problem! 2022-01-02 17:37:23 +00:00
Mike Brady 59d92db39f Improve a few debug messages. 2022-01-01 19:01:20 +00:00
Mike Brady 966d68bdec Begin to get SPS to give a unique shm interface name to nqptp. Also clang format 2021-12-27 12:19:01 +00:00
Mike Brady 30b9d15e36 Quieten a few debug mssages, slightly shorten the minimum lead time needed for good initial sync. 2021-12-22 13:47:49 +00:00
Mike Brady 8656149d68 Adjust the time needed to allow the clock to settle and the lead time. 2021-12-21 15:32:16 +00:00
Mike Brady fc736cd12f Look for 0.15 seconds of a lead time... 2021-12-21 15:18:14 +00:00
Mike Brady f0134387b9 Flush if the first packet is less than 100 ms in the future. 2021-12-21 15:04:15 +00:00
Mike Brady fd3d461a16 stop removing the play lock at the end of a play session. That's the job of the rtsp thread. 2021-12-07 15:09:05 +00:00
Mike Brady 3de7e9a5c5 Look for at least 0.1 seconds of leadtime, ensure a master clock is at least 0.275 seconds old before use, quieten a few debug messages. 2021-12-07 12:09:49 +00:00
Mike Brady 70821f8127 Clang Format 2021-12-06 18:45:25 +00:00
Mike Brady 41f55ac1cb Stop clearing the timing peer list and stop removing the anchor clock info. 2021-12-06 18:03:42 +00:00
Mike Brady 231d5242d7 clang format only 2021-12-02 11:19:52 +00:00
Mike Brady 60f830bc75 Tidy up the statistics printout table and stop outputting (non existent) nominal fps for AP2 Realtime Streams. 2021-12-02 11:16:00 +00:00
Mike Brady 7b8e293f8b Change behaviour after an unrecoverable error -- if not handled, exit Shairport Sync. 2021-12-01 09:01:31 +00:00
Mike Brady 56bef8e7dd Use CLOCK_MONOLITHIC_RAW to avoid NTP effects, report raw and corrected timing from audio_alsa. Clean up statistics. Stop watchdog timing out AP2 sessions. CLean up some debug messages. 2021-11-28 16:08:48 +00:00
Mike Brady dc5b8f1a11 Clang format 2021-11-26 18:02:23 +00:00
Mike Brady 7890188dcf Quieten some debug messages. 2021-11-26 18:01:36 +00:00
Mike Brady b9d3abfa24 Add some debug messages to help check the output rate calculations. 2021-11-26 15:18:27 +00:00