492 Commits
Author SHA1 Message Date
Mike Brady 27b9cd96f8 Only stop the activity monitor once, duh, and correct a debug message. 2022-05-19 18:08:45 +01:00
Mike Brady ace5537ad3 Quieten a few debug messages. 2022-03-16 12:51:00 +11:00
Mike Brady a382ac6672 Clang Format 2022-03-14 11:56:43 +11:00
Mike Brady b4cd4fbcc4 Fix a bug that caused a crash if an incorrect wait_for_completion option was chosen. Fixed a few similar bugs too. 2022-03-02 09:30:06 +11:00
Mike Brady e8fec7fa70 Wait for two seconds for the NQPTP service to appear. 2022-02-28 17:58:15 +11:00
Mike Brady 0aea810735 experiment with different startup regimes 2022-02-28 10:59:41 +11:00
Mike Brady 18ed1bda87 Add the opening of the shm interface to the startup process and die if it can't be done. Quieten some debug messages. 2022-02-27 21:23:14 +11:00
Mike Brady 322f07720a Require NQPTP to be running and create the SHM interface at startup. 2022-02-27 13:00:03 +11:00
Mike Brady c6fd0fbfdb Open the SHM instrface atstartup and close it on shutdown. 2022-02-26 08:27:45 +00:00
Mike Brady 3d720d65bf MQTT -- add code to deal with empty payloads by adding a dummy payload to empty messages by default. 2022-02-07 12:36:08 +00:00
Mike Brady 55c111cabb Lower the default starting volume bu 6dB. 2022-01-11 16:34:33 +00:00
Mike Brady f79222f71d BB. Fix a crash that occurred in AP2 mode if no configuration file was present, duh. 2022-01-04 18:06:16 +00:00
Mike Brady c849c1fcf0 clang-format 2022-01-01 12:13:43 +00:00
Mike Brady 7d350c3d08 Simplify validation of the mDNS interface setting, if any. 2021-12-31 10:07:00 +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 1997f16fba Allow the airplay_device_id to be varied either by adding an offset or by replacing it completely. 2021-12-24 11:03:19 +00:00
Mike Brady 1e588a2e2c Stop generating an airplay_device_id dynamically. Base it on a fixed MAC address (not necessarily the active one). 2021-12-24 10:13:25 +00:00
Mike Brady b413a29da6 Be more careful to create default file names based on the name of the app. Create the airplay_device_id in a way that includes the PID. 2021-12-23 19:17:34 +00:00
Mike Brady 5aa3324d3d Merge "openbsd corrections #1357" after resolving one conflict. 2021-12-09 14:16:37 +00:00
Mike Brady 7258a45bea Fix a few more memory leaks 2021-12-07 19:58:00 +00:00
Mike Brady 6a58eae314 Quieten a few debug messasges. 2021-12-07 17:37:16 +00:00
Mike Brady 3b9f2e1c53 Don't ask for cover art if not asking for metadata too. Duh. 2021-12-06 18:14:23 +00:00
Anton Lindqvist 3b91065c2a do not pass null to printf
OpenBSD issues a warning using syslog whenever NULL is passed as a variadic
argument to the printf-like family of functions.
2021-12-05 08:53:08 +01: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 c0a3dacf30 Working to check for divide / mod by 0's 2021-11-17 10:35:21 +00:00
Mike Brady 1032cad684 Update to the latest version of ejurgensen's pair_ap library. With thanks. 2021-11-14 14:13:31 +00:00
Mike Brady af6511007e Allow Shairport Sync to be build without including the metadata stuff. 2021-09-29 09:02:53 +01:00
Mike Brady 02734e58c2 Merge with the aillwee development branch 2021-09-16 17:54:47 +01:00
Mike Brady 2e4c391bf2 Change features flags in agreement with the metadata settings in the config file. 2021-09-10 17:42:47 +01:00
Mike Brady 7fb8b288f0 Stop initialising the airplay_gid. Now if it's NULL it means the group UUID is the same as the deviice's pi. Alos airplay_gid is moved to the conn. 2021-09-01 10:30:24 +01:00
Mike Brady f62ec66865 Make the features more like the APX2 2021-08-31 17:45:27 +01:00
Mike Brady 6d781c8c19 By default, log to daemonlog/stderr 2021-07-19 17:11:59 +01:00
ejurgensen 1a64a56c3f Add Homekit pairing methods (pair-add/list/remove + configure)
Also change the features flag to match airplay2-receiver
2021-07-15 23:23:08 +02:00
ejurgensen e4901d6be2 Add Homekit pairing methods (pair-add/list/remove + configure)
Also change the features flag to match airplay2-receiver
2021-07-13 23:43:57 +02:00
Mike Brady e925e196c8 Changes to allow it to compile in FreeBSD and fix a few issues that were picked up by clang 10. 2021-06-22 13:49:11 +01:00
Mike Brady a109b587ec Flush seems to be working properly and reliably. Some audio glitches removed too by dropping the first two AAC blocks of any passage. Crude. Flush diagnostic linked list stuff left in place. 2021-05-30 11:17:06 +01:00
Mike Brady e1034e1131 Advertise the _raop._tcp service as well as the _airplay._tcp service. Use a real MAC as the basis for the device ID. 2021-05-24 12:07:05 +01:00
Mike Brady 953ad8ac14 Move AP2 player termination code from handle_teardown into the player cleanup function so that cancelling the player thread cleans up properly. 2021-05-08 17:46:13 +01:00
ejurgensen f5cd4238f0 Announce the actual public key (pk) in Bonjour and GET /info
Same as other Airplay 2 devices do, even though it doesn't seem to be used
by any clients.
2021-05-07 19:26:48 +02:00
ejurgensen ba73111a6f Support for pair-verify 2021-05-04 20:38:35 +02:00
Mike Brady a68f28ac2b clang format 2021-05-01 14:09:38 +01:00
Mike Brady 6760bab493 Compile with AP2 flag set 2021-04-30 12:30:12 +01:00
Mike Brady 3a02b79a62 Update the mdns stuff to work with a string, update audio_alsa rtp.c, rtsp.c and shairport.c to build and work in AirPlay 1 but with AirPlay 2 code in place. Some of it is #defined out. 2021-04-30 09:29:30 +01:00
Mike Brady 106d0b327a This is 3.3.8rc3 2021-01-24 18:01:39 +00:00
Mike Brady 3fc9570489 Clang Format 2020-09-27 10:45:22 +01:00
Mike Brady 6857d06bd6 Handle active_remote_id as a string rather than an unsigned 32-bit number. It seems ROON uses a longer character sequence. Tidy up some error messages aboout which backend is selected. 2020-09-27 10:44:12 +01:00
Mike Brady ca56287254 Make the first output backend in the list of backends the default and make its name the default output_name. Clang-format everything 2020-09-03 09:53:13 +01:00
Mike Brady 77a5cf1e80 Ensure metadata and cover art are enabled if metadata support is included at compilation. Reword some misleading error messages, set convolution defaults even if no configuration file is found. 2020-07-13 10:47:10 +01:00
Mike Brady 05beeaab22 Use exit() instead of abort() when a fatal error occurs, but skip the cleanup before exit, as this can cause trouble. 2020-06-22 10:16:37 +01:00
Mike Brady 7e01da543c Fix the default audio_backend_buffer_desired_length and move the exit messages to debiug level 1 2020-06-21 15:36:56 +01:00