Commit Graph
409 Commits
Author SHA1 Message Date
Mike Brady 4729e325e0 Wait up to 10 seconds for NQPTP to come online at startup. 2022-07-20 18:05:07 +01:00
Mike Brady 4705be9bf2 Iterate through all formats, if any, the codec advertises that it can process, stopping if the AV_SAMPLE_FMT_FLTP is found. 2022-06-09 08:00:12 -07:00
Mike Brady e1228c4fa9 Less hacky check for the need to use avcodec_register_all 2022-06-08 09:52:13 -07:00
Mike Brady 38c43f07af Do avcodec_register_all() if necessary. Re-enable AAC fltp check. Fix a bug in not auto-selecting soxr on a very fast computer. 2022-06-08 06:52:51 -07:00
Mike Brady b817acb661 Once again, disable the AAC decoder check. Something strange is going on -- see #1477 2022-05-30 15:20:32 +02:00
Mike Brady 0dc34a4617 Get rid of the -u option -- too confusing -- and instead add a --log-to-syslog option for use when starting as a daemon. Modify the startup scripts accordingly. 2022-05-25 15:56:17 +01:00
Mike Brady ebd4e35b5a Minor formatting adjustments. 2022-05-25 11:59:40 +01:00
Mike Brady a551b3a3d6 Minor formatting adjustments. 2022-05-25 11:54:04 +01:00
Mike Brady 6583132204 Minor formatting adjustments. 2022-05-25 11:52:44 +01:00
Mike Brady 58fdb13568 Re-enable the check for a suitable AAC decoder for AP2 operation. Includes a web reference for more information. 2022-05-25 11:43:43 +01:00
Mike Brady 0c169208ff Remove the second fplt check, duh. 2022-05-24 15:32:18 +01:00
Mike Brady 1e2a933e17 Fix some terminology and abbreviation issues. 2022-05-24 15:21:33 +01:00
Mike Brady 645e17749e Turn off AAC decoder checker. 2022-05-24 13:31:28 +01:00
Mike Brady 6c23d14cf3 Fix an odd bug that could arise while exiting the program, causing it to crash on exit. 2022-05-23 17:12:21 +01:00
Mike Brady 69cd95e9c1 Open the codec context before checking if the codec can support fltp format. 2022-05-22 22:18:39 +01:00
Mike Brady 6088c2442d Temporarily disable the AAC checker. 2022-05-22 21:34:26 +01:00
Mike Brady ed629037d4 Check for the appropriate AAC decoder at startup and in the help section. 2022-05-22 16:22:23 +01:00
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