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 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 Brady
848467a817
Add "auto" interpolation support to the dbus interface.
2019-04-28 21:39:42 +01:00
Mike Brady
f74e2c2c96
Revert some experimental changes made to explore problems with Cygwin D-Bus access.
2019-02-27 12:53:09 +00:00
Mike Brady
d3d86d6192
Try to get a private connection to the system D-Bus
2019-02-20 18:43:10 +00:00
Mike Brady
405a028f33
quieten some exiting debug messages
2019-02-16 19:44:25 +00:00
Mike Brady
5af6179875
use the term'state' rather than 'mode' when taling about the active state. Use 'while_active' rather than 'while active'
2019-02-12 15:47:10 +00:00
Mike Brady
97a4766e93
Add call to check if the dbus service is started.
2019-02-08 22:31:50 +00:00
Mike Brady
34351a99cb
Continue hooking up active mode and disable standby stuff
2019-02-08 16:57:39 +00:00
Mike Brady
2e4428538d
Add an "active" mode that can time out after a period -- 10 seconds by default -- after play ends.
2019-01-21 21:43:55 +00:00
Mike Brady
a74261bbd3
Add a D-Bus property "DisableStandby" to turn standby oo or off.
2019-01-11 14:48:00 +00: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
5141e2f5dc
Format tidy-up
2018-08-14 12:14:49 +01:00
Mike Brady
df18e3a017
Add the ability to read and change the stuffing threshold
2018-08-13 14:05:14 +01:00
Mike Brady
4590b08e62
Fix a bug whereby libsoxr-required code wasn't included, causing soxr interpolation to be disabled.
2018-08-08 09:04:58 +01:00
Mike Brady
c85e7e05d1
Add a frames per second output. This should be exact if the machine is connected up to, say, an NTP time service. It uses CLOCK_MONOTONIC time.
2018-07-28 19:02:02 +01:00
Mike Brady
f1d4503431
Try to add proper cancellation code to all threads -- not complete, buggy.
2018-07-20 13:50:38 +01:00
Mike Brady
c8c70b6016
Add quit commands to the MPRIS and native D-Bus command set. Not tested ecologically.
2018-07-18 15:32:07 +01:00
Mike Brady
a4eaace76b
Begin to try to get Shairport Sync to quit cleanly, relinquishing memory and ports etc. properly so that valgrind can be more useful.
2018-07-17 10:28:06 +01:00
Mike Brady
c2e3fa5aa7
Move ab_mutex, flow control CV and flush mutex initialisation and teardown out of the player thread. Thus remove need for player theread lock. Format some of the surce files.
2018-07-14 13:38:29 +01:00
Mike Brady
7d446832bf
Quieten some debug messages
2018-06-21 18:04:24 +01:00
Mike Brady
365843faa6
beginning to add a progress string item to the native dbus interface
2018-06-21 17:44:26 +01:00
Mike Brady
08a7d4ffb5
Use snprintf in place of sprintf.
2018-04-08 15:36:05 +01:00
Mike Brady
8bf83c149f
Modify latency detection to use the second word of a sync packet to decide whether to add an extra delay or not. Use all sync packets, not just one with the exception flag. Use 1024 buffers -- a bit profligate, but hey.
2018-04-02 16:42:46 +01:00
Mike Brady
cb69c1dd2e
Take in track metadata but discard it if it's invalid (i.e. has a given mper ID of 0.
2018-04-01 16:09:53 +01:00
Mike Brady
07b7e64a48
Fix some of the advanced remote code
2018-04-01 13:54:41 +01:00
Mike Brady
69b3b5d776
Send rtsp events to the metadata thteread for handling. Begin to clean up signals.
2018-03-31 12:39:26 +01:00
Mike Brady
8094bb4d6f
Remove unneeded check for initialisation.
2018-03-29 17:23:22 +01:00
Mike Brady
051326b488
Quieten some unnecessary D-Bus property-changed chatter
2018-03-29 17:17:50 +01:00
Mike Brady
cbbe84d8ba
Add some more D-Bus facilities. Countermand faulty D-Bus commands.
2018-03-24 17:48:32 +00:00
Mike Brady
03aefda050
Reorder stuff when the dbus interface is being initialised to hok up the responses before making any changes
2018-03-23 21:39:47 +00:00
Mike Brady
340e365a62
Format after adding a few new elements ot the native dbus interface
2018-03-23 21:29:38 +00:00
Mike Brady
6dc30c6ca9
Add a few new elements ot the native dbus interface
2018-03-23 21:28:28 +00:00
Mike Brady
8453778a13
Move DACP volume detection and control to a new Advanced Remote Control D-Bus stanza.
2018-03-21 22:37:35 +00:00
Mike Brady
49a9cb9dfc
Remove the work "basic" from descriptions of the remote control.
2018-03-20 17:00:50 +00:00
Mike Brady
d692fab9e4
Clean up native dbus interface files and associated changes to existing files.
2018-03-20 16:31:59 +00:00
Mike Brady
c0b1dc542a
Rationalise all the native dbus intefaces files down to just three.
2018-03-20 16:28:06 +00:00
Mike Brady
720a86630a
Begin to add a basic remote control interface corresponding to the set of commands AirPlay devices seem to obey.
2018-03-17 19:43:10 +00:00
Mike Brady
9d9b0a1824
Add a Shairport Sync Diagnostics DBus Onject, only part working
2018-03-10 17:01:42 +00:00
Mike Brady
39f159bf9e
Split volume function into read-only property and a method for setting it. Making the property read-write is too awkward and kludgy.
2018-03-10 13:56:44 +00:00
Mike Brady
5ba343bbf0
On receipt of a notify volume change, only send it to the dacp device if it's different to the posted volume -- stops loops
2018-03-09 16:27:20 +00:00
Mike Brady
47fff82dd2
Getting the volume properties to work without feedback -- not there yet...
2018-03-09 09:25:49 +00:00
Mike Brady
8991f3420c
Remove many causes of warnings at the -Wextra level
2018-03-07 20:48:21 +00:00
Mike Brady
c36a7822a3
Tidy up using clang-format
2018-03-07 14:35:25 +00:00
Mike Brady
73bf006c12
Add lots of debug messages, begin to use correctly sized PRId64 and friends in sprintf commands, begin to remove some simple causes of warnings.
2018-03-06 08:50:34 +00:00
Mike Brady
c025bf008e
Hook up the dbus metadata watcher and the dacp volume control stuff.
2018-03-04 17:43:43 +00:00
Mike Brady
f3ef6b5e05
Quieten some debug messages and make others a bit more informative
2018-02-19 20:55:35 +00:00
Mike Brady
a5862a9c08
Fix a few compilation errors
2018-02-18 16:54:30 +00:00
Mike Brady
1637a79dd6
Add tinyhttp code for sending and reading responses. Clean up some dacp routines. Most new and modified rooutines untested.
2017-12-18 18:50:01 +00:00