Commit Graph
612 Commits
Author SHA1 Message Date
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
Mike Brady 87d887f412 Remove the commas in the statistics logs -- easier to get into a spreadsheet. 2021-11-25 18:13:56 +00:00
Mike Brady 14bfba2724 Add code to check divisions and mods for a potrntial divide by zero problem. MAy cause SPS to terminate but leave a log message. 2021-11-21 21:47:32 +00:00
Mike Brady 881a5ca25e Don't display output FPS, as it's not clear how accurate it is... 2021-11-20 15:11:57 +00:00
Mike Brady 1797b4164b Check for the stats function before allowing expanded stats info. 2021-11-20 14:18:13 +00:00
Mike Brady cd9da86fc3 Add a 'stats' function to the audio back ends to replace the 'rate_info' function. Zero all except the alsa back end. 2021-11-20 13:59:16 +00:00
Mike Brady 5f8e6e3989 attempt to increase the precision of the FPS timing 2021-11-20 12:14:23 +00:00
Mike Brady c0a3dacf30 Working to check for divide / mod by 0's 2021-11-17 10:35:21 +00:00
Mike Brady 4729b3ea71 Merge branch 'development' of git.aillwee.com:base/shairport-sync into development
Merge independent changes.
2021-11-14 15:13:54 +00:00
Mike Brady 3f6f09328d Fix a bug by ensuring certain ap2 variables are initialised by the player thread. 2021-11-14 11:18:39 +00:00