Commit graph

124 commits

Author SHA1 Message Date
badaix
52af69618c Update aixlog to v1.2.5 2020-01-10 23:05:04 +01:00
badaix
7b268b83df Remove unused shared_from_this 2020-01-08 21:22:56 +01:00
badaix
4a802d73ba Switch to boost::process 2020-01-07 21:03:57 +01:00
badaix
e195298e74 Revert back to process from boost::process 2020-01-06 23:23:56 +01:00
badaix
062e46060c Fix crash during shutdown
In case there are multiple PosixStreams with the same name, the server crashed during shutdown
2020-01-06 18:50:57 +01:00
badaix
9496d51ccd Use boost::process::pipe instead of async_pipe
due to a bug in boost 1.72:
https://github.com/boostorg/process/issues/116
2020-01-05 22:28:01 +01:00
badaix
32ca5144a5 Use async_pipe for stderr reading 2020-01-05 22:15:12 +01:00
badaix
ad05e87f6d Replace process class with boost::process 2020-01-05 22:00:35 +01:00
badaix
d80c87351c Small fixes and reformats 2020-01-05 21:51:59 +01:00
badaix
9353c61d7b Use helper function for async_wait
PosixStream waits 100ms before reconnecting
2020-01-05 14:36:46 +01:00
badaix
9f2c256172 Airplay meta pipe reader uses asio event loop 2020-01-04 12:34:59 +01:00
badaix
8c6d703ec5 Update copyright dates 2020-01-04 01:03:48 +01:00
badaix
37829fea52 Fix dry out timer 2020-01-04 00:54:45 +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
badaix
8429c82091 Fix timestamp for first chunk 2019-12-29 21:07:04 +01:00
badaix
aa3ce3d5ab Rename stream parameter "read_ms" to "chunk_ms" 2019-12-07 14:58:19 +01:00
badaix
210ab80f71 Switch from deadline_timer to steady_timer 2019-12-05 23:01:18 +01:00
badaix
daf4591d55 Switch PipeStream to read from stream_descriptor 2019-12-03 00:21:32 +01:00
badaix
eb94867b57 Improve check for systime vs streamtime 2019-12-01 22:56:49 +01:00
badaix
f35efe568a Rename buffer parameter 2019-12-01 22:07:03 +01:00
badaix
0341174d5d Reformat code 2019-12-01 22:06:50 +01:00
badaix
a47849a571 Clean up AsioStream reader code 2019-12-01 11:38:55 +01:00
badaix
3cb9902bbe Rename experimental.tcp to tcp 2019-11-28 22:31:03 +01:00
badaix
fd616956cb Add client mode to TcpStream 2019-11-28 20:07:43 +01:00
badaix
43c58febd7 Add stream buffer to AsioStream 2019-11-28 20:05:54 +01:00
badaix
22262bd203 Delete UDP stream 2019-11-27 23:03:13 +01:00
badaix
40c910104b Path component in URI is optional 2019-11-27 22:59:12 +01:00
badaix
a625a5d806 Fix crash in TCP stream disconnect 2019-11-27 22:58:32 +01:00
badaix
5c1f35d6db Reintroduce player state 2019-11-27 21:33:25 +01:00
badaix
48e76ea58d Add abstract AsioStream class 2019-11-27 20:44:34 +01:00
badaix
b6a4ffa758 Server can run on a single thread
Number of threads can be configure in snapserver.conf:
[server]
threads = 1
2019-11-25 23:00:44 +01:00
badaix
0ad3f1a57d Fix compile error 2019-11-24 21:13:34 +01:00
badaix
646c7593c1 Add experimental TCP and UDP streams 2019-11-24 18:24:39 +01:00
badaix
6e138ff49f Pass io_context to stream readers 2019-11-23 12:09:23 +01:00
badaix
cdc5dd2bac remove unused function 2019-11-17 15:57:07 +01:00
badaix
07e8290ee4 Add namespace for encoder and decoder 2019-11-04 14:53:02 +01:00
badaix
08a0def6c5 rename spotify to librespot 2019-10-13 19:32:11 +02:00
badaix
7fda592d13 enable extra warnings 2019-10-13 19:01:56 +02:00
badaix
0b21a5daee rename files to snake_case 2019-10-13 18:43:32 +02:00
badaix
d3b8ad5aa5 fix includes 2019-10-13 13:18:24 +02:00
badaix
a30f548a31 rename files to snake_case 2019-10-12 18:28:29 +02:00
badaix
7cb595db28 move aixlog and popl to common 2019-10-09 22:11:43 +02:00
badaix
b2a48663c1 reformat code 2019-10-04 18:30:43 +02:00
Pablo I. Pousada Rial
b26d892950 merge 506de22 from master
Dynamic stream creation and deletion via JSON-RPC API #443
2019-10-03 18:28:08 +02:00
badaix
6b729ad61c reformat code 2019-09-25 19:07:23 +02:00
badaix
8b231c7cc6 modernize with clang-tidy 2019-09-25 19:02:33 +02:00
badaix
88b49ad2a0 reformat code 2019-09-24 22:52:31 +02:00
badaix
b20add3815 add clang-format file
reformat code
2019-09-24 22:42:36 +02:00
zteifel
b733f646ea Replace onstart and onstop with onevent
Update to replace onstart and onstop parameters with librespots onevent parameter.

https://github.com/librespot-org/librespot/issues/185
2019-09-23 19:45:39 +02:00