Commit graph

59 commits

Author SHA1 Message Date
badaix
e1c8250876 Reformat code 2022-12-29 19:10:38 +01:00
badaix
9e3c0fdf55 Add "mute" to stream API 2022-07-13 17:35:49 +02:00
badaix
60dc1aa48a Add support for controlscriptparams 2022-07-13 14:14:00 +02:00
badaix
bdc6299523 io_context cleanups 2022-04-03 15:27:28 +02:00
badaix
4f29f000de Use namespace "boost::asio" instead of "net" 2022-01-30 22:07:13 +01:00
badaix
b4a41e0fd7 Fix access to a non existsing optional 2022-01-04 19:27:06 +01:00
badaix
36044237ce lower log level 2021-12-19 14:56:47 +01:00
badaix
8d8061a946 Change control parameters to lower case 2021-12-17 18:43:10 +01:00
badaix
636b24a074 canControl must be true for property requests 2021-12-17 09:15:39 +01:00
badaix
d326252268 Rename PcmListener to PcmStream::Listener
Reorganize include order
2021-12-12 12:19:46 +01:00
badaix
8e1f92acb1 Rename MetaTags to MetaData 2021-12-09 22:09:32 +01:00
badaix
ee158b521d Fix thread races 2021-09-21 08:16:33 +02:00
badaix
2efd00d8ef Clean up mutexes 2021-09-18 13:42:43 +02:00
badaix
12aeb5859c Use strand executors 2021-09-18 11:11:34 +02:00
badaix
befc8da440 Add support for cover raw images 2021-09-06 22:19:35 +02:00
badaix
004ea21e3f Make metadata part of the properties 2021-09-01 18:18:36 +02:00
badaix
077a6fc1a4 Add control functions to PcmStream
-move json parsing to Server class
-improve error handling with the new ErrorCode object
2021-07-04 21:33:45 +02:00
badaix
41833d63fa Use recursive mutex 2021-06-29 08:44:54 +02:00
badaix
3120a18326 Forward metadata and properties in meta stream 2021-06-27 13:00:35 +02:00
badaix
880ed00604 Use seconds for seek, make TrackId optional 2021-06-24 14:39:04 +02:00
badaix
0853c7c701 Make metadata thread safe, poll properties 2021-06-23 20:48:25 +02:00
badaix
1f51befbad Move StreamCtrl into separate file 2021-06-22 19:49:06 +02:00
badaix
f817602a50 Rename "meta" to "metadata" 2021-06-22 14:35:38 +02:00
badaix
4c2636f358 Return the streams response to "SetProperty" 2021-06-17 12:24:03 +02:00
badaix
0807641984 Fix update of swapped props/meta data 2021-06-10 11:59:26 +02:00
badaix
149c2ae9a2 Rename jsron RPC commands, add "Ready" and "Log" 2021-06-10 08:56:43 +02:00
badaix
de9e3496df Send control command as parameter 2021-06-07 23:50:20 +02:00
badaix
5c28809b43 Add reponse handlers for requests 2021-06-06 22:31:08 +02:00
badaix
bba3968f50 Change Stream.SetProperties to Stream.SetProperty 2021-06-05 23:00:12 +02:00
badaix
53e27e0d8b Comment out stream_tags 2021-06-04 10:32:33 +02:00
badaix
5a3559e8e4 Add properties to Stream info 2021-06-03 22:57:45 +02:00
badaix
7c11cb7559 Add support for Player.Properties 2021-05-30 22:20:49 +02:00
badaix
283c3d2c9b Add mpd status mapping 2021-05-28 09:06:23 +02:00
badaix
6e6b63ec26 Communicate via stdin/stdout with ctrl script 2021-05-26 23:57:59 +02:00
badaix
91ea368121 Add RPC "Stream.Control" command 2021-05-24 22:36:16 +02:00
badaix
2e64d81f79 Add control_script to stream sources
New parameter "control_script", starting a script on stream start.
Parameters "--snapcast-port" and "--stream" are passed to the script
2021-05-23 12:39:47 +02:00
badaix
1725cffc6e Log stream state as string 2021-05-04 23:51:57 +02:00
badaix
f5d4fcaf43 Tidy up 2021-02-10 18:36:40 +01:00
badaix
3ac9245d00 Reformat code with clang 10 2020-11-27 21:29:34 +01:00
badaix
876f424bae Add null encoder for use with meta streams 2020-09-27 12:55:32 +02:00
badaix
27a9e710a2 Add meta stream source 2020-09-26 12:44:33 +02:00
badaix
dec7306a84 Replace some pointers with references 2020-08-18 23:36:17 +02:00
badaix
9c01849a64 Change some log levels 2020-08-16 14:44:22 +02:00
badaix
ed0521a1d2 Rename onChunkRead to onNewChunk 2020-07-11 19:39:58 +02:00
badaix
424487a48e Add sharing mode for Oboe, log device settings 2020-05-05 21:46:21 +02:00
badaix
2b14641704 Makre resync more tolerant 2020-03-01 18:54:00 +01:00
badaix
63ad64dfff Pass encoded chunks as shared_ptr 2020-02-29 21:48:12 +01:00
badaix
a8998997e9 Change stream reader to use actual chunk duration
e.g. a configured chunk_ms of 11 will read a 44.1kHz stream in chunks of 485 frames (=10.9977ms)
2020-02-29 19:24:47 +01:00
badaix
6d7e25e9af Switch stream readers to use asio event loop 2020-01-03 22:40:34 +01:00
badaix
7da35880e8 EncoderFactory returns a unique_ptr 2019-12-29 21:10:40 +01:00