Mike Brady
d6536a8e79
Call the unfixable error if the output device can't be opened or disappears. Clang-format.
2022-12-30 18:36:33 +00:00
Mike Brady
37f060f48e
Add "FirstFramePostion" property set when first frame of a play session is sent.
2022-11-28 15:09:43 +00:00
Mike Brady
4044666897
clang format
2022-11-26 19:09:42 +00:00
Mike Brady
f3ac622321
Add handling of a frame_position_string handler for the 'phbt' metadata token.
2022-11-26 17:56:59 +00:00
Mike Brady
e8b8c6edb7
Clang cleanup
2022-11-18 18:14:50 +00:00
Mike Brady
d67909b837
Add new metadata item: sps:songdatakind, derived from the asdk metadata token. It seems to indicate a timed item (0) or an untimed stream (1). Add output format, output frame rate, stream type (Realtime/Buffered/Classic) properties. Update MQTT appropriately.
2022-11-12 16:42:25 +00:00
Mike Brady
3e4b67e97d
Add two new metadata items -- the player's service name, e.g. "Den Speakers" and the name of the current client, if any, e.g. "Joe's iPhone".
2022-11-07 11:33:05 +00:00
Mike Brady
bb4e9078a4
Fix a bug that would cause changes in metadata not to be passed on to the D-Bus / MPRIS / MQTT interfaces.
2022-10-23 15:10:31 +01:00
Mike Brady
04e28ee12b
Stop using the flush and data resumption as proxies for pause and resume. Add (true) pause and resume to buffered audio streams.
2022-10-18 12:13:07 +01:00
Mike Brady
3877acc79a
Remember to close() the coverart directory file when finished iterating through it to delete prior coverart files.
2022-03-22 09:12:35 +11: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
98005fd18f
quieten some debug messages
2020-06-21 13:50:21 +01:00
Mike Brady
4f0794d6cf
stop an uninitialised variable warning
2020-06-19 16:53:15 +01:00
Mike Brady
18b9116d97
Separate metadata multicast from metadata pipe.
2020-06-02 19:37:05 +01:00
Mike Brady
5decc1bb06
Make the pipe, hub and mqtt separate threads with their own metadata queues. If one blocks, no new metadata is sent to it and the others are unaffected.
2020-05-30 15:49:00 +01:00
Mike Brady
79c16c3236
debug mods
2020-05-28 17:14:34 +01:00
Mike Brady
f27c5aebff
debug mods
2020-05-28 17:01:26 +01:00
Mike Brady
0988ce536c
debug mods
2020-05-28 16:38:48 +01:00
Mike Brady
c099105a57
Add a really wacky debug message
2020-05-28 16:15:15 +01:00
Mike Brady
9ae649fa9a
change some debugging messages
2020-05-28 15:39:10 +01:00
Mike Brady
2d7ae4bce9
Add the beggings of a hacky check on the metadata modification lock.
2020-05-27 15:26:08 +01:00
Mike Brady
54d761ff7d
Clean up some of the wording and layout of the configuration file
...
Clean up and improve the way lead-in sillence is used to give a more accurate sync time to the first packet of audio.
Allow very good sync to occur with 0.3 seconds of lead-in silence.
Improve the use of the buffer offset.
Format some other files.
2020-05-18 16:55:09 +01:00
Mike Brady
1d0464adbc
removbe an extra declaration of a variable called "changed" which might allow it to be used uninitalised.
2020-02-18 16:45:37 +00:00
Mike Brady
789ba1ee5e
Treat the "mper" attribute as the 64-bit item that it is rather than a 32-bit item as hithereto. Output it as a hexadecimal number to correspond with the format of the track id obtained from AppleScript
2020-02-18 14:09:43 +00:00
Mike Brady
85ba78b619
More fixes to allow gcc-10 to compile without error
2020-02-13 17:57:30 +00:00
Mike Brady
1f75fe4e7a
Add or update some of the copyright notices
2019-12-27 14:37:01 +00:00
Mike Brady
6c57ce97d5
Add two cover_art control settings -- the cache directory to use, (or the empty string to prevent caching) and a flag to retain all art work
2019-10-20 15:43:31 +01:00
Mike Brady
e17a151f7a
quieten a debug message
2019-09-10 13:14:11 +01:00
Mike Brady
daab7a634c
Clean up the scanning code for detecting either a standard DACP server or an advanced DACP server.
2019-09-04 20:24:34 +01:00
Mike Brady
86b6d7bfff
Squashed commit of the following:
...
Fix Issue #890 -- https://github.com/mikebrady/shairport-sync/issues/890
Recognise situation where a track has no artwork properly.
Less likely to drop the 'availabile' property.
Always output the full metadata whenever any part of it has changed.
Metadata coming from dacp is now incorporated,
2019-08-29 11:47:49 +01:00
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
405a028f33
quieten some exiting debug messages
2019-02-16 19:44:25 +00:00
Mike Brady
79e22063ef
check that the systems are started before trying to stop them, duh.
2019-02-05 15:51:16 +00:00
Mike Brady
9239a7c56e
Include the mbedtls version.h file so that conditional compilation can be done right
2019-02-02 15:27:26 +00:00
Mike Brady
4fb88a3aa5
allow for updated or old mbedtls library
2019-02-02 15:03:27 +00:00
Mike Brady
cf03983694
Fix warnings about deprecated mbedtls API calls
2019-02-02 13:05:49 +00:00
Mike Brady
0697a40b08
fix crypto library flags
2019-01-23 22:21:43 +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
604ca8dee4
Hook up active mode stuff to metadata, add two four-char codes, improve external command calling.
2019-01-21 21:18:40 +00:00
Mike Brady
3566cf0caf
remove unnecessary file includes
2019-01-18 16:30:21 +00:00
Mike Brady
f5707d4f18
Stop dropping metadata with a zero id -- it's not infallible way of determining if the metadata is invalid.
2019-01-03 10:48:09 +00:00
Mike Brady
59b3abd965
quieten some dacp debug messages
2018-12-27 14:36:29 +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
63c447582f
Fix a read-write mutex locking issue in the metadata hub.
2018-08-08 09:28:34 +01:00
Mike Brady
76c5dd9285
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. Probably still buggy.
2018-07-30 10:07:11 +01:00
Mike Brady
2eaaa9cdb3
Fix a bug where the dacp notification handlers are called
2018-07-21 15:35:07 +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
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