Commit Graph
321 Commits
Author SHA1 Message Date
Mike Brady 8644cfb00a Put in a cancellation point explicitly in the player_thread main loop. Tidy up some debug messages. 2018-11-20 14:19:35 +00:00
Mike Brady 18497e6491 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:07:15 +00:00
Mike Brady d17df82df3 Add the sort-of mutex name to the debug_mutex_lock and _unlock. Also, setting the debug level to 0 turns off the debug logging of them. Handy. 2018-11-19 20:30:00 +00:00
Mike Brady a2681ba04c Try to make the debug stuff pthread_cancel-proof including the debug / warn / inform / die and debug_mutex calls. Tidy up usage of program_stop. 2018-11-19 18:26:42 +00:00
Mike Brady 7258b801c8 Add extra checks to look for a hang in TuneBlade 2018-11-19 15:35:47 +00:00
Mike Brady 66e1dde37c Use "/dev/urandom" instead of "/dev/random" to generate a nonce for AirPlay passwords. 2018-11-03 12:47:55 +00:00
Mike Brady ee6ffb54d5 Update configure.ac 2018-11-01 08:50:37 +00:00
Mike Brady b91df8ec73 Start using libraries to be able to compile other people's or automatically generated sources using standard compilation settings. 2018-10-30 19:49:32 +00:00
Mike Brady 06716b70a9 Improve handling of network delays and outages -- more robust error handling. 2018-10-23 10:29:09 +00:00
Mike Brady 63cae88aca Further improve the modulo 32 rtpstamp-based missing frames erro handling. 2018-10-21 18:33:47 +01:00
Mike Brady 6de64d5954 Replace the entire timestamp processing software -- preliminary attempt 2018-10-19 14:05:59 +01:00
Mike Brady 7462e14144 Take more notice of errors requesing delay times. Extend the latency offset range to +/- 1.75, but at the programmer's risk. 2018-10-14 15:30:26 +01:00
Mike Brady 3d4b1344e8 Allow for a change in the sync time of AirPlay on Mojave and iOS 12. 2018-10-11 15:35:43 +01:00
Mike Brady 98e05be703 Fix the volume-changed command caller. A space went missing. 2018-09-28 09:33:40 +01:00
Mike Brady aeb1e42c6b Revert previous change which was to unreference a stream prior to disconnection -- not needed. 2018-09-21 18:20:23 +01:00
Mike Brady 6eca829b75 Unreference the pa stream when finished with it, so that it the sink can go idle. 2018-09-21 17:48:40 +01:00
Mike Brady b890fc570b Update configure.ac
Add configuration option to specify PulseAudio output sink.
2018-09-21 16:59:40 +01:00
Mike Brady efe77a886d Ignore the latency of whatever is connected to Shairport Sync. It's inappropriate to try to compensate for the latency in the full jack chain. Don't mute when the latency is zero. 2018-09-17 19:15:14 +01:00
Mike Brady cda70644ee 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:43:19 +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 9adea74f45 Include a definition of HAVE_LIBSOXR with using pkg_config 2018-09-08 15:08:45 +01:00
Mike Brady cd6a99a7cf Include a definition of HAVE_LIBSOXR with using pkg_config 2018-09-08 15:06:18 +01:00
Mike Brady 89ec9fcd0e Stop requiring jack to be "rolling" 2018-09-07 12:09:20 +01:00
Mike Brady 8ff2b1bfb5 Add ability for the jack back end to automaticlly connect a client when the jack server comes up and to drop the client when a play session is finished. 2018-09-02 17:26:56 +01:00
Mike Brady 2528cedc6c Some confusion here, so 3.3d5 marks the introduction of a jack backend. 2018-08-31 12:50:05 +01:00
Mike Brady 5de2052256 Merge branch 'development' of https://github.com/mikebrady/shairport-sync into development
Forgot these changes.
2018-08-31 12:47:35 +01:00
Mike Brady e7dfecb1f2 Initial very rough attempt at a jackaudio backend. 2018-08-31 12:40:35 +01:00
Mike Brady 8cabb16f25 Initial very rough attempt at a jackaudio backend. 2018-08-31 12:39:18 +01:00
Mike Brady 19e572e94a Update configure.ac 2018-08-28 09:38:44 +01:00
Mike Brady 39c46dbc77 Sometimes libsoxr is built to rely on libavutil. If libavutil is detected, link to it when building libsoxr. Add pgk_config support to soxr selection. 2018-08-25 13:09:43 +01:00
Mike Brady 5101ab2d13 Sometimes libsoxr is built to rely on libavutil. If libavutil is detected, link to it when building libsoxr. Add pgk_config support to soxr selection. 2018-08-25 13:08:37 +01:00
Mike Brady de972c1d66 Include a few fixes for FreeBSD warnings and quieten some debug messages 2018-08-22 15:10:53 +01:00
Mike Brady f2ab25d01a Fix a read-write mutex locking issue in the metadata hub, fix a libsoxr related dbus bug, switch over to better (we hope) timing measurement, giving smoother usage of interpolation. 2018-08-08 09:30:38 +01:00
Mike Brady 3a0fb4c919 Change calculation order to prevent overflow after about 26 hours at 44,100 fps in the frame rate calculations. Calculate frame rates whether statistcs are requested or not. Clean up some fps rate availability flags. 2018-08-01 09:36:28 +01:00
Mike Brady a5dd76d223 Stop using SIGUSR1 for cancelling threads, use pthread_cancel and friends instead, fix some memory leaks, add accurate ouput rate calculation to statistics, add "quit" verb to MPRIS and native d-bus interfaces. Remove incorrect warning, quiten some debug messages. 2018-07-30 10:31:21 +01:00
Mike Brady b7e070e530 Update configure.ac 2018-07-11 21:04:31 +01:00
Mike Brady e4d2bf0033 3.2d66 corresponds to 3.2, with some extra features, e.g. mqtt 2018-07-10 13:29:03 +01:00
Mike Brady 8ae8fcbfba Reduce the rate at which resends are requests to make them less, uh, insistent 2018-06-29 22:59:42 +01:00
Mike Brady 820486ad95 Add a hint for the mosquitto library. 2018-06-26 22:07:13 +01:00
Mike Brady 63dbbd4812 Update configure.ac 2018-06-21 18:08:05 +01:00
Till Zimmermann c445510d5a minor improvements on the mqtt feature 2018-06-19 20:25:22 +02:00
Till Zimmermann 02694948f3 Initial MQTT Version 2018-06-19 19:40:08 +02:00
Mike Brady 7da3a02ac4 Modify the RTSP write response code to output the entire response in one go. 2018-06-11 20:18:38 +01:00
Mike Brady 86c9d0f6a7 Add a pthread_cancel cleanup routine to put_packet to unlock that rw thread when cancelled. 2018-06-05 19:07:40 +01:00
Mike Brady b5b1a69f91 Use shutdown() before close() and separate out the cancel requests for the timing, control and audio threads, see if we can see anything. 2018-06-03 19:59:54 +01:00
Mike Brady b127e1a769 Monitor and time mutex locks and unlocks, add a diagnostic into the get_buffer loop. 2018-06-01 11:27:47 +01:00
Mike Brady 1df8858f27 Add yet more debugging to the TEARDOWN sequence. 2018-05-30 15:29:58 +01:00
Mike Brady ad1f5b9fa2 Increase debugging temporarily for a TEARDOWN. 2018-05-29 22:13:16 +01:00
Mike Brady aed5ea2681 Treat volume-based muting the same as playback-switch-based muting and disable both by default. Rename the setting to "use_hardware_mute_if_available". Add a debug message for TEARDOWN 2018-05-25 09:43:19 +01:00