Jörg Krause
e12d7ad23e
Fix segfault with musl libc
...
shairport-sync crashes on musl libc when accessing the `statistics` array in
`player_thread_func()`. This array is quite large (60128 bytes) and the data
for this thread exceed the the default stack size on musl libc of 80k [1].
Safe and portable programs should not depend upon the default stack limit, but
instead, explicitly allocate enough stack for each thread by using the
pthread_attr_setstacksize routine [2].
So, lets set the stack size for the `player_thread` to 128k. A follow-up patch
may set the stack sizes for the other threads, too. The difficulty here is to
decide how much memory to allocate for the stack.
[1]
http://wiki.musl-libc.org/wiki/Functional_differences_from_glibc#Thread_stack_size
[2]
https://computing.llnl.gov/tutorials/pthreads/#Stack
2015-05-28 09:10:59 +02:00
Mike Brady
6e7358c762
Simplify calculation of buffer timing. Rename dac_buffer_queue_desired_length
2015-05-27 16:36:31 +00:00
Mike Brady
46bf99858a
Uses the dac buffer size to offset the timing of the packets by a fixed amount
2015-05-22 17:08:57 +00:00
Mike Brady
5f00910693
Allow the pipe to be stdout, regluate timing better in the player thread. Rough, rough.
2015-05-21 16:12:37 +00:00
Mke Brady
c887aafdf0
Very broken player mod.
2015-05-21 09:09:37 +01:00
Mike Brady
4cd3f5c399
experiment with pipe backend.
2015-05-20 19:58:40 +00:00
Mike Brady
744214df54
Apply command line arguments _after_ sewttings from configuration file
2015-05-20 19:58:07 +00:00
Mike Brady
4b3151f84e
Update info about packages
2015-05-17 11:37:29 +01:00
Mike Brady
6bd14a6a09
Add note about switching to the development branch
2015-05-08 18:41:45 +01:00
Mike Brady
66b1495674
Remove development note from master branch, duh.
2015-05-08 18:40:58 +01:00
Mike Brady
921ebf0d79
Add note about switching to the development branch
2015-05-08 18:36:09 +01:00
Mike Brady
5786daf4f0
Update man link
2015-05-08 17:11:10 +01:00
Mike Brady
f3d84858bb
Update man link
2015-05-08 17:09:19 +01:00
Mike Brady
14f68c18ac
Typo
2015-05-08 17:00:53 +01:00
Mike Brady
d2e48f73ca
Allow -d option as part of the basic set of command line options. Fix a few documentation and help typos.
2015-05-08 09:47:34 +00:00
Mike Brady
65cdc5261e
Add -d option back in.
...
This is the right place for this, in a System V init script. Other startup systems don't use it.
2015-05-07 18:26:12 +01:00
Mike Brady
bce91e4013
Remove "daemonise" setting.
...
The daemonise option really belongs in on the command line.
2015-05-07 18:24:08 +01:00
Mike Brady
83f92b2255
Rephrase active branch stuff.
2015-05-06 18:39:18 +01:00
Mike Brady
e7c585b584
Rephrase active branch stuff.
2015-05-06 18:38:31 +01:00
Mike Brady
b0462cabb8
Update ref to Arch Linux package.
2015-05-06 18:36:57 +01:00
Mike Brady
3a304f976d
Update ref to Arch Linux package.
2015-05-06 18:36:17 +01:00
Mike Brady
b51d1544d7
Merge branch 'development' of github.com:mikebrady/shairport-sync into development
...
Forgot about the documnentation update. Again.
2015-05-06 17:30:00 +00:00
Mike Brady
511fc7fbce
Quieten a debug message.
2015-05-06 17:29:39 +00:00
Mike Brady
54f955b522
Typo
2015-05-06 14:59:35 +01:00
Mike Brady
460f844824
Add new option to set the desired DAC buffer length. Quieten a few debug messages.
2015-05-06 13:55:58 +00:00
Mike Brady
1da36de0e4
Merge branch 'development' of github.com:mikebrady/shairport-sync into development
...
Allow some documentation changes.
2015-05-05 16:49:54 +00:00
Mike Brady
62dc112a6d
Only read metadat settings if metadata support is included, duh.
2015-05-05 16:49:31 +00:00
Mike Brady
312b72e5b7
Update RELEASENOTES.md
2015-05-05 12:52:14 +01:00
Mike Brady
f29792d9ba
Add support for omitting installation of configuration files
2015-05-05 11:51:00 +01:00
Mike Brady
8f100e6810
Add support for choosing a configuration file
2015-05-05 11:50:19 +01:00
Mike Brady
fb0eab7c14
Add support for choosing a configuration file
2015-05-05 11:49:58 +01:00
Mike Brady
b0fd1ae23e
Add note about -c option
2015-05-05 11:49:00 +01:00
Mike Brady
9de5ee8197
Adjust some of the settings and comments
2015-05-04 23:14:17 +01:00
Mike Brady
282f79c95a
Add the option to selectively not use pkg-config during configuration - useful for OpenWrt
2015-05-04 17:45:30 +01:00
Mike Brady
9c94547b10
Update to reflect move to configuration files and extra features.
2015-05-04 17:27:29 +01:00
Mike Brady
e3f75d85ce
respond better to timeouts and print stats message when frames are totally missing.
2015-05-04 17:26:18 +01:00
Mike Brady
392c03b23b
Add support for configuration file, and use new config fields where appropriate.
2015-05-04 17:24:47 +01:00
Mike Brady
f68fe74caf
Allow volume control to be ignored, use new config fields in place of old ones.
2015-05-04 17:23:21 +01:00
Mike Brady
ff79745a60
Set up sample and default settings.
2015-05-04 17:21:54 +01:00
Mike Brady
99df6fe537
Use config.metadata_enabled in place of config.meta-dir.
2015-05-04 17:20:50 +01:00
Mike Brady
5743130086
Bump version number
2015-05-04 17:19:39 +01:00
Mike Brady
e4804a57e5
Pass in libconfig info during init.
2015-05-04 17:19:00 +01:00
Mike Brady
67aa54bd5b
Add extra config fields for metadata, ignore volume, allow interruption and checking timeout.
2015-05-04 17:18:23 +01:00
Mike Brady
df7a046b63
Pass in libconfig info during init.
2015-05-04 17:16:53 +01:00
Mike Brady
d1b06891af
Parse libconfig info during init.
2015-05-04 17:15:19 +01:00
Mike Brady
9cfc61790e
Pass in libconfig info during init.
2015-05-04 17:14:15 +01:00
Mike Brady
3a93b4ae06
Separate installin an initscript from installing configuration files.
2015-05-04 17:11:13 +01:00
Mke Brady
e02be8a6ae
Add atexit functionality, continue to add config file support.
2015-04-29 19:52:56 +01:00
Mike Brady
e73657d6ed
Add support for conditional compilation of support for command-line args and-or configuration files
2015-04-29 15:22:47 +01:00
Mike Brady
33d5215d73
Add install-exec-hook script to install /etc/shairport-sync.conf.example and shairport-sync.conf if it's not already there.
2015-04-27 16:51:04 +00:00