Commit Graph
100 Commits
Author SHA1 Message Date
Mike Brady c8b0be30b4 find . \( -name \*.cpp -or -name \*.h -or -name \*.c \) -exec clang-format -i -style='{BasedOnStyle: llvm, IndentWidth: 2, ColumnLimit: 100}' '{}' \; 2019-06-19 19:06:54 +01:00
Mike BradyandGitHub 7fc977d8d3 Change comments for use_precision_timing 2019-06-17 22:44:12 +01:00
Mike BradyandGitHub 55488ad24c Update RELEASENOTES-DEVELOPMENT.md 2019-06-17 22:30:44 +01:00
Mike BradyandGitHub 34b96729a2 Refine the precision timing code
Only allow it if the output device is a hardware device
2019-06-17 22:27:03 +01:00
Mike BradyandGitHub 1ca9226242 Update audio_alsa.c 2019-06-17 22:25:47 +01:00
Mike Brady 7013b0cc3d refine the selection of precision timing to be allowed only if the device is a real hardware device 2019-06-17 19:43:23 +01:00
Mike Brady 9199bf24dd fix the detection of the availability of precision timing information -- actuall, renable it 2019-06-17 10:38:20 +01:00
Mike Brady a46c761aa6 make snd_pcm_recover silent when the debug level is 0, not the other way around, duh. 2019-06-17 10:04:23 +01:00
Mike Brady 65abca2562 change the threshold for turning off disable standby mode to more than 40 underruns in the first 100 writes. 2019-06-17 09:47:56 +01:00
Mike Brady cd9982c43b if disable_standby_mode is enabled, disable if if more than 20 underruns occur for 50 silence buffers at the start. 2019-06-17 09:39:04 +01:00
Mike Brady dbea82c212 restore full code for checking for precise timing but stop making it necessary for disable standby mode. 2019-06-17 07:54:04 +01:00
Mike Brady 9af4895f33 Update note about Arch Linux. 2019-06-16 12:18:58 +01:00
Mike BradyandGitHub 3b2efad6ff Update README.md 2019-06-09 15:05:05 +01:00
Mike BradyandGitHub 2c4b485a56 Update README.md 2019-06-09 15:04:20 +01:00
Mike Brady b41c9863f3 bring in small changes from 3.3.2 master branch 2019-06-07 17:52:20 +01:00
Mike Brady 413df6d063 Correct a compilation error in Alpine Linux 2019-06-07 17:48:45 +01:00
Mike BradyandGitHub 3615b99f5e Update RELEASENOTES.md 2019-06-05 15:31:50 +01:00
Mike BradyandGitHub 9d624e40c5 Update RELEASENOTES-DEVELOPMENT.md 2019-06-05 15:31:08 +01:00
Mike BradyandGitHub fb6d65d715 Update shairport-sync.spec 2019-06-05 15:28:15 +01:00
Mike BradyandGitHub 15cb5479c2 Update RELEASENOTES.md 2019-06-05 15:26:16 +01:00
Mike Brady 9c54bfa991 *Bug Fixes*
* Fix a bug in the MQTT documentation and add sanity checking for the port chosen.
* Fix a bug that caused manual format and rate setting to be ignored.
* Add missing support for format settings S24_LE, S24_BE, S32_LE and S32_BE.
* Fix a bug that caused dither to be too loud.
* Fix error message for invalid standby mode choice.
2019-06-05 15:05:54 +01:00
Mike Brady 1704916a47 Squashed commit of the following:
commit 85fae473bb
Merge: bf91d35 854942d
Author: Mike Brady <mikebrady@eircom.net>
Date:   Tue Jun 4 22:15:37 2019 +0100

    Merge pull request #860 from joerg-krause/patch-2

    Debug requested period size value

commit 854942df92
Author: Jörg Krause <joerg.krause@embedded.rocks>
Date:   Tue Jun 4 20:47:43 2019 +0200

    Debug requested period size value

commit bf91d35bfb
Author: Mike Brady <mikebrady@eircom.net>
Date:   Tue Jun 4 15:33:30 2019 +0100

    Update RELEASENOTES-DEVELOPMENT.md

commit 3ca3408255
Author: Mike Brady <mikebrady@eircom.net>
Date:   Tue Jun 4 15:32:10 2019 +0100

    Fix error message for invalid standby mode choice

commit 4bafe1c982
Author: Mike Brady <mikebrady@eircom.net>
Date:   Mon Jun 3 10:03:54 2019 +0100

    quieten a compilation warning

commit 9d96906402
Author: Mike Brady <mikebrady@eircom.net>
Date:   Sun Jun 2 18:05:40 2019 +0100

    Update configure.ac

commit 0c5c4bfe3f
Author: Mike Brady <mikebrady@eircom.net>
Date:   Sun Jun 2 18:04:51 2019 +0100

    Update RELEASENOTES-DEVELOPMENT.md

commit 85cc1bdd97
Author: Mike Brady <mikebrady@eircom.net>
Date:   Sun Jun 2 17:56:47 2019 +0100

    Fix the dither calculation -- it was 12 dB too high, really noticable on the U8 setting.

commit 25f0fbc24d
Author: Mike Brady <mikebrady@eircom.net>
Date:   Sun Jun 2 13:42:19 2019 +0100

    Update INSTALL.md

commit d91e41d976
Author: Mike Brady <mikebrady@eircom.net>
Date:   Wed May 29 17:26:44 2019 +0100

    Add missing support for S32_LE, S32_BE, S24_LE and S24_LE formats.

commit 7f2e6b1aac
Author: Mike Brady <mikebrady@eircom.net>
Date:   Wed May 29 16:18:51 2019 +0100

    Add support for S32_LE, S32_BE, S24_LE and S24_BE wqhen generating frames of dithered silence

commit 76ad4e6a73
Author: Mike Brady <mikebrady@eircom.net>
Date:   Wed May 29 16:00:47 2019 +0100

    enable specification of specific formats and/or speeds to turn off automatic format/speed selection, fixing a bug. Clarify some of the warnings. Fix a few typos in the configuration file sample.

commit a8222e3f85
Merge: c677006 19fbede
Author: Mike Brady <mikebrady@eircom.net>
Date:   Mon May 27 09:30:57 2019 +0100

    Merge pull request #855 from idcrook/conf_mqtt_port

    mqtt port config changes – fix error in the configuration file and check port number for sanity.
    Many thanks, David. It'll find it's easy into the next release.

commit 19fbededcf
Author: David Crook <idcrook@users.noreply.github.com>
Date:   Sat May 25 13:01:22 2019 -0600

    mqtt port config changes

    1. update example shairport-sync.conf file
    2. update config file mqtt port parsing

    Signed-off-by: David Crook <idcrook@users.noreply.github.com>

commit c677006541
Merge: 744c595 3c4a878
Author: Mike Brady <mikebrady@eircom.net>
Date:   Fri May 24 17:37:26 2019 +0100

    Bring into line with master 3.3
2019-06-05 15:02:26 +01:00
Mike BradyandGitHub 85fae473bb Merge pull request #860 from joerg-krause/patch-2
Debug requested period size value
2019-06-04 22:15:37 +01:00
Mike BradyandGitHub bf91d35bfb Update RELEASENOTES-DEVELOPMENT.md 2019-06-04 15:33:30 +01:00
Mike Brady 3ca3408255 Fix error message for invalid standby mode choice 2019-06-04 15:32:10 +01:00
Mike Brady 4bafe1c982 quieten a compilation warning 2019-06-03 10:03:54 +01:00
Mike BradyandGitHub 9d96906402 Update configure.ac 2019-06-02 18:05:40 +01:00
Mike BradyandGitHub 0c5c4bfe3f Update RELEASENOTES-DEVELOPMENT.md 2019-06-02 18:04:51 +01:00
Mike Brady 85cc1bdd97 Fix the dither calculation -- it was 12 dB too high, really noticable on the U8 setting. 2019-06-02 17:56:47 +01:00
Mike BradyandGitHub 25f0fbc24d Update INSTALL.md 2019-06-02 13:42:19 +01:00
Mike Brady d91e41d976 Add missing support for S32_LE, S32_BE, S24_LE and S24_LE formats. 2019-05-29 17:26:44 +01:00
Mike Brady 7f2e6b1aac Add support for S32_LE, S32_BE, S24_LE and S24_BE wqhen generating frames of dithered silence 2019-05-29 16:18:51 +01:00
Mike Brady 76ad4e6a73 enable specification of specific formats and/or speeds to turn off automatic format/speed selection, fixing a bug. Clarify some of the warnings. Fix a few typos in the configuration file sample. 2019-05-29 16:00:47 +01:00
Mike BradyandGitHub a8222e3f85 Merge pull request #855 from idcrook/conf_mqtt_port
mqtt port config changes – fix error in the configuration file and check port number for sanity.
Many thanks, David. It'll find it's easy into the next release.
2019-05-27 09:30:57 +01:00
Mike Brady c677006541 Bring into line with master 3.3 2019-05-24 17:37:26 +01:00
Mike BradyandGitHub 3c4a878ad9 Merge pull request #853 from mikebrady/development
Update README.md
2019-05-24 17:22:30 +01:00
Mike BradyandGitHub 744c595540 Update README.md 2019-05-24 17:20:42 +01:00
Mike Brady 13fcd259c3 Merge branch 'development' 3.3rc7+ to 'master' 2019-05-24 16:42:23 +01:00
Mike BradyandGitHub 57f0b710f8 Update RELEASENOTES.md 2019-05-24 10:53:34 +01:00
Mike BradyandGitHub 1f41c58db8 Update README.md 2019-05-23 17:38:52 +01:00
Mike BradyandGitHub 529dd3320f Update RELEASENOTES.md 2019-05-23 17:27:22 +01:00
Mike BradyandGitHub 37f67f5ae6 Update README.md 2019-05-23 16:37:45 +01:00
Mike BradyandGitHub fc304f1ab6 Update README.md 2019-05-23 16:37:25 +01:00
Mike BradyandGitHub d0b14fd644 Create README-DEVELOPMENT.md 2019-05-23 16:35:55 +01:00
Mike BradyandGitHub 2d06a4bb84 Update RELEASENOTES.md 2019-05-23 16:34:15 +01:00
Mike BradyandGitHub ea5f509cfe Update RELEASENOTES-DEVELOPMENT.md 2019-05-23 16:31:39 +01:00
Mike BradyandGitHub 0d973bde07 Create RELEASENOTES-DEVELOPMENT.md 2019-05-23 16:28:46 +01:00
Mike Brady f96a04ae1b quieten the soxr_oneshot timer 2019-05-22 13:25:44 +01:00
Mike Brady b2c6b8f537 fix another harmless (?) possible divide by zero 2019-05-20 09:40:25 +01:00
Mike Brady 9fd4a39729 check for a couple of divide-by-zero possiblities. 2019-05-19 13:53:25 +01:00
Mike BradyandGitHub b6ef81a975 Update RELEASENOTES.md 2019-05-17 10:58:36 +01:00
Mike Brady d9168f4aa7 remove a strncpy truncation warning
update a timing setting in the settings file
list the alsa hardware devices in the -h message
2019-05-17 10:43:54 +01:00
Mike BradyandGitHub efda5c72ca Update FEDORA.md 2019-05-16 17:41:31 +01:00
Mike BradyandGitHub 2c6d0c4cbe Update README.md 2019-05-16 16:46:27 +01:00
Mike BradyandGitHub 036b879bf1 Update README.md 2019-05-16 16:43:53 +01:00
Mike BradyandGitHub 25bff50796 Update shairport-sync.spec 2019-05-16 15:38:20 +01:00
Mike BradyandGitHub 503b4ce522 Update UPDATING.md 2019-05-16 15:36:02 +01:00
Mike BradyandGitHub 57b96d505a Update FREEBSD.md 2019-05-16 09:12:55 +01:00
Mike BradyandGitHub 39eed125a7 Update CAR INSTALL.md 2019-05-15 22:19:26 +01:00
Mike BradyandGitHub 0096f40dd1 Update INSTALL.md 2019-05-15 22:18:13 +01:00
Mike BradyandGitHub 9b44d36509 Update INSTALL.md 2019-05-15 22:14:06 +01:00
Mike BradyandGitHub bfffe81807 Update CAR INSTALL.md 2019-05-15 22:10:59 +01:00
Mike BradyandGitHub 4da3bcba38 Update CAR INSTALL.md 2019-05-15 22:07:44 +01:00
Mike Brady 4aea4cc5c6 Always use /etc/dbus-1/system.d for dbus policy documents in Linux, but continue to use the top-level directory path specified by the sysconfdir variable for *BSD 2019-05-12 15:40:40 +01:00
Mike BradyandGitHub d36c5534b7 Update configure.ac 2019-05-11 11:01:46 +01:00
Mike BradyandGitHub 03e29af03b Update RELEASENOTES.md 2019-05-11 11:01:20 +01:00
Mike BradyandGitHub 7532f68697 Merge pull request #848 from tillz/development
MQTT Bug & usability improvements – many thanks.
2019-05-09 12:32:28 +01:00
Mike BradyandGitHub fd9948c5fa Update RELEASENOTES.md 2019-05-07 13:05:20 +01:00
Mike BradyandGitHub 0c6523636c Update RELEASENOTES.md 2019-05-07 12:28:49 +01:00
Mike Brady 47e36f228c Fix a stupid error in 3.3rc5. 2019-05-07 12:26:27 +01:00
Mike Brady f13f22d857 Fix stupid auto format error. 2019-05-07 12:22:23 +01:00
Mike BradyandGitHub 450bb8b7a7 Update RELEASENOTES.md 2019-05-07 10:50:54 +01:00
Mike BradyandGitHub 439dab8ae3 Update RELEASENOTES.md 2019-05-07 10:50:31 +01:00
Mike BradyandGitHub 1f64713bef Update RELEASENOTES.md 2019-05-07 10:49:35 +01:00
Mike Brady 154e315cd9 Automatic rate and speed selection for alsa output devices. Better support for big-endian CPUs. Change "while_active" setting for "auto" in "disable_standby_mode" 2019-05-07 10:35:32 +01:00
Mike Brady 83c0405d03 Add automatic bit depth and speed selection for alsa devices. Set rate and format to "auto" by default. Always look for the greatest bit depth, but the lowest multiple of 44,100.
Improve support for big-endian CPUs by adding support for explicit -endian formats, i.e. S16_LE, S16_BE, S24_LE, S24_BE, S32_LE, S32_BE.

For the "disable_standby_mode" setting, change "while_active" to "auto".
2019-05-07 10:19:04 +01:00
Mike BradyandGitHub 51c097cd12 Merge pull request #842 from griff/fix-macos-build
Fix the build on macOS – many thanks!
2019-05-03 02:10:47 +05:30
Mike BradyandGitHub f045553f62 Update RELEASENOTES.md 2019-05-01 11:33:09 +01:00
Mike Brady 1d32976d07 Improve support for bigendian devices. Add support for S16_LE, S16_BE, S24_LE, S24_BE, S32_LE and S32_BE formats. Make the default S16_LE. Allow precision timing only on alsa devices with names beginning with "hw:". Use snd_pcm_hw_params_is_monotonic() to see if clock is monotonic. 2019-05-01 11:01:15 +01:00
Mike Brady 848467a817 Add "auto" interpolation support to the dbus interface. 2019-04-28 21:39:42 +01:00
Mike BradyandGitHub b488a0ed6d Update RELEASENOTES.md 2019-04-28 21:02:42 +01:00
Mike Brady fc1418fcc2 RC4, and remove code that always adds the commit signature -- not ready for its close-up yet. 2019-04-28 20:48:03 +01:00
Mike Brady 19a1a28374 Add "auto" to interpolation settings. Time a few soxr_oneshots to get a figure for soxr_delay_index. Add a soxr_delay_threshold and in auto mode, select soxr if delay is below threshold. 2019-04-21 14:25:27 +01:00
Mike Brady 4c57ca08c4 Remove a few bogus warnings. 2019-04-20 10:01:42 +01:00
Mike Brady 7ad8907356 quieten a debug message 2019-04-17 16:43:18 +01:00
Mike Brady 8568b58b49 Tidy up some debug and information messages 2019-04-17 16:33:08 +01:00
Mike Brady a69aedf225 Take a fixed amount of time to check the soxr_delay_index, not a fixed number of iterations. 2019-04-16 23:11:30 +01:00
Mike Brady db8fc8057f Always include the up-to-date abbreviated git hash if we are in the git repository. 2019-04-16 22:45:45 +01:00
Mike Brady 9aa8f91c0e Add a new interpolation setting -- "auto" which will choose soxr if supported and the soxr delay is less or equal to the threshold of 30 (milliseconds). 2019-04-16 16:40:56 +01:00
Mike Brady ca8acb4a3f Move the soxr timer checker to run as soon as the system powers up. 2019-04-16 12:59:02 +01:00
Mike Brady d0917fc304 Add code to time soxr_oneshot without playing anything. It's in the wrong place, but it's a start. 2019-04-16 09:10:45 +01:00
Mike Brady 8cdb4dc70e a bit less noisy debug/timing of soxr! 2019-04-15 17:22:52 +01:00
Mike Brady 3a96a5a62d very noisy debug of soxr! 2019-04-15 17:16:30 +01:00
Mike Brady 6cbaa15bdd Turn on the configuration flag for building soxr support in when the pkg_config is not available. 2019-04-15 17:07:34 +01:00
Mike Brady 1b1348e1ac Add git commit and dirty status if available. Slightly reorder the debug messages at the start. 2019-04-15 16:27:44 +01:00
Mike Brady c985ee6059 Include build_details.h as part of Shairport Sync 2019-04-15 16:26:43 +01:00
Mike Brady 026d2114cc ignore build_details.h 2019-04-15 16:25:47 +01:00
Mike Brady 2dd184165a add soxr interpolation statistics gathering. 2019-04-15 11:52:01 +01:00
Mike Brady 16235071ee Default to "basic" stuffing even if soxr support is included. 2019-04-15 11:13:51 +01:00
Mike Brady 042dd0d036 Fix a warning about ending a funrtion without a return value. 2019-04-15 11:13:14 +01:00