Mike Brady
c8fdbbd5a4
Rephrase.
2015-06-03 20:21:45 +01:00
Mike Brady
84eac6c5c8
Big update – extra outputs, config files.
2015-06-03 20:20:44 +01:00
Mke Brady
a090a14ca8
Make dummy, pipe and stdout back ends optional compilations
2015-06-03 20:15:54 +01:00
Mike Brady
6de98c5bd9
Update RELEASENOTES.md
2015-06-03 19:43:24 +01:00
Mike Brady
07a4258f57
Merge pull request #80 from mikebrady/pipework
...
Flow control improvements and limited support for different backends. Formatted much of the source code.
2015-06-03 13:49:47 +01:00
Mike Brady
58a13cf800
Modify latency and buffer size limits, fix a few dying message bugs.
2015-06-02 13:18:07 +00:00
Mike Brady
60104d0ec9
Add sample and default settings for the back ends and update documentation a little.
2015-06-02 12:53:42 +00:00
Mike Brady
e810eb64ce
Modify the statistics output when synchronisation is disabled.
2015-06-02 12:52:40 +00:00
Mike Brady
c65211a205
Quieten some debug messages
2015-06-02 12:51:42 +00:00
Mike Brady
38281dd1c5
Add new auidio back end -- to stdout.
2015-06-02 11:59:56 +00:00
Mke Brady
87a0475c16
Reformat using clang-format.
2015-06-01 23:16:50 +01:00
Mke Brady
04e27cfe4f
Reduce the number of times the player thread asks for the delay in the audio back end -- halve it, mostly.
2015-06-01 22:08:31 +01:00
Mke Brady
54250f7552
Simplify init function, add defaults for latency offset and buffer size. Remove redundant timer stuff from audio_dummy.c.
2015-06-01 21:38:56 +01:00
Mke Brady
e91cddabed
Add support for latency offset and buffer length. Update comments.
2015-06-01 21:37:41 +01:00
Mke Brady
c56a9ee26e
Add support for settable buffer length and latency offset.
2015-06-01 21:36:18 +01:00
Mke Brady
8739c9a150
Add support for new config option and for modified config data structure.
2015-06-01 21:35:07 +01:00
Mke Brady
0be43c2690
Move backend settings to backend stanzas
2015-06-01 21:33:56 +01:00
Mke Brady
5395fbe00c
Add an extra parameter -- audio backend latency offset to allow for delays in audio back ends
2015-06-01 21:32:55 +01:00
Mke Brady
181d6d4395
Remove one parameter from the init function of audio back ends.
2015-06-01 21:31:41 +01:00
Mike Brady
94025d4939
Bump bug fix number
2015-05-28 16:44:36 +01:00
Mike Brady
7e403325bf
Update RELEASENOTES.md
2015-05-28 16:43:15 +01:00
Mike Brady
fc169382ed
Merge pull request #78 from joerg-krause/master
...
Fix segfault with musl libc – allocate the player thread enough stack space.
2015-05-28 16:38:05 +01:00
Jörg Krause
8a122426c6
Fix redirection of incorrect system headers
...
The POSIX correct header include is `<poll.h>` [1] and `<signal.h>`
The glibc silently redirects these incorrect includes, musl libc prints
a warning:
#warning redirecting incorrect #include <sys/poll.h> to <poll.h>
#warning redirecting incorrect #include <sys/signal.h> to <signal.h>
[1]
http://pubs.opengroup.org/onlinepubs/7908799/xsh/poll.h.html
[2]
http://pubs.opengroup.org/onlinepubs/7908799/xsh/signal.h.html
2015-05-28 09:54:46 +02:00
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