Commit graph

62 commits

Author SHA1 Message Date
badaix
61de7fab5d Fix compiler warning 2020-03-01 19:07:22 +01:00
badaix
63ad64dfff Pass encoded chunks as shared_ptr 2020-02-29 21:48:12 +01:00
badaix
d9d403d729 Fix crash during shutdown 2020-02-29 19:59:01 +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
1bc8f74c41 Change SampleFormat variables to getters 2020-02-18 22:47:04 +01:00
badaix
549fcba40f Use realloc to avoid memleak 2020-02-14 08:42:10 +01:00
badaix
3a7f1573f2 Less debug logging 2020-01-28 00:06:54 +01:00
badaix
0a40d8de63 Fix memory leak in ogg encoder 2020-01-12 15:46:16 +01:00
badaix
8c6d703ec5 Update copyright dates 2020-01-04 01:03:48 +01:00
badaix
3b9c2db79b EncoderFactory returns a unique_ptr 2019-12-29 21:06:02 +01:00
badaix
0b94a56fe5 Fix compile error if u_char is not defined 2019-11-22 18:26:59 +01:00
badaix
810c65773c Fix HAS_VORBIS_ENC define 2019-11-21 22:23:34 +01:00
badaix
b8be0e5349 Opus encoder handles arbitrary chunk sizes 2019-11-17 15:17:10 +01:00
badaix
07e8290ee4 Add namespace for encoder and decoder 2019-11-04 14:53:02 +01:00
badaix
7dffa6ed65 Opus improve error handling 2019-11-03 20:23:54 +01:00
badaix
6cd3b7df67 opus add pseudo header and configurable options 2019-11-03 17:37:04 +01:00
badaix
3fea89a60b move assign function into implementation 2019-11-03 12:41:08 +01:00
badaix
258bab4f65 WIP opus is working, some values are hard coded 2019-11-02 13:19:55 +01:00
badaix
0c7691756c merge PR#4 2019-11-01 23:07:32 +01: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
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
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
cb1
c8dd119cb8
encoderFactory.cpp: Fix HAS_VORBIS_ENC
Change HAS_VORBIS_ENC to HAS_VORBISENC
2018-12-19 15:09:07 +01:00
badaix
54a8ca824f move message dir into common 2018-03-16 00:19:52 +01:00
badaix
44046821c1 update date in copyright 2018-02-19 20:04:28 +01:00
badaix
39b880e650 fix compile errors 2018-02-03 21:55:54 +01:00
Jörg Krause
9abeac8365 Allow building server and client without FLAC support
Allows building the server and the client without FLAC support:

```
readelf -d ./bin/snapserver | grep NEEDED
 0x00000001 (NEEDED)                     Shared library: [libjsonrpcpp.so]
 0x00000001 (NEEDED)                     Shared library: [libavahi-common.so.3]
 0x00000001 (NEEDED)                     Shared library: [libavahi-client.so.3]
 0x00000001 (NEEDED)                     Shared library: [libstdc++.so.6]
 0x00000001 (NEEDED)                     Shared library: [libgcc_s.so.1]
 0x00000001 (NEEDED)                     Shared library: [libc.so]
```

Note, that the current client and server Makefiles always enable FLAC
support.
2018-02-03 21:29:45 +01:00
Jörg Krause
a5ffa356fe Allow buidling server without Ogg support
Allow to build an Ogg-less snapserver:

```
 0x00000001 (NEEDED)                     Shared library: [libjsonrpcpp.so]
 0x00000001 (NEEDED)                     Shared library: [libFLAC.so.8]
 0x00000001 (NEEDED)                     Shared library: [libavahi-common.so.3]
 0x00000001 (NEEDED)                     Shared library: [libavahi-client.so.3]
 0x00000001 (NEEDED)                     Shared library: [libstdc++.so.6]
 0x00000001 (NEEDED)                     Shared library: [libgcc_s.so.1]
 0x00000001 (NEEDED)                     Shared library: [libc.so]
```
2018-02-03 21:29:00 +01:00
Jörg Krause
0489221d7f Include ogg header file 2018-02-03 21:27:12 +01:00
badaix
0ea51d95f3 switch to AixLog 2017-09-16 16:53:37 +02:00
badaix
ce55f15c02 update logger 2017-07-24 18:59:49 +02:00
badaix
fa3f78b08d move string utils in namespace utils::string 2017-06-05 12:48:59 +02:00
badaix
fdb292edb4 2017 2017-02-04 11:56:40 +01:00
badaix
043f76e35e removed trailing whitespaces 2016-11-14 22:48:07 +01:00
Johannes Pohl
d9ee0c1f52 reformatted code 2016-10-20 11:00:24 +02:00
badaix
21b4c6b982 removed nullptr check 2016-07-02 15:14:02 +02:00
badaix
16ea1a5d71 ogg: support different sample formats 2016-05-03 21:28:55 +02:00
badaix
16be4f53b8 FLAC: support different sample formats 2016-05-03 08:02:07 +02:00
badaix
1c3fd27256 spaces 2016-05-01 13:17:35 +02:00
badaix
e1a47b3b98 fixed clang warnings (CXX = /usr/bin/clang++) 2016-04-27 21:44:51 +02:00
badaix
f11a7055a1 string compat functions throw 2016-04-25 19:27:21 +02:00
badaix
efb592d495 replaced MapMessage with JsonMessage 2016-04-05 22:39:39 +02:00
badaix
41db245efc server runs on OpenWrt 2016-04-02 23:20:45 +02:00
badaix
212c9c1c6b server compiles under OpenWrt 2016-04-02 19:12:38 +02:00
badaix
d44232114a encoder header is shared ptr 2016-02-03 23:05:28 +01:00