Paul Lietar and James Laird
ffdde63ecc
Use line buffering on log files.
...
This makes sure the contents are written on the disk, so the user can
read the log.
2013-06-20 17:02:56 +10:00
Paul Lietar and James Laird
b70505fd58
Support log redirection to a file.
2013-06-20 17:02:56 +10:00
Paul Lietar and James Laird
dbe13e399a
Remove pid file when exiting.
2013-06-20 17:02:56 +10:00
Paul Lietar and James Laird
c404660122
Move daemon related code to a separate file.
2013-06-20 17:02:56 +10:00
Paul Lietar and James Laird
5249a6e1d8
Add support to write pid to pidfile when running in daemon mode.
2013-06-20 17:02:56 +10:00
James Laird
c7d93b363a
Revert "Fix pulse audio output driver in daemon mode."
...
This reverts commit 8045e00d4f .
Now, pulseaudio can be initialised at startup, thus detecting connection
errors early.
Conflicts:
audio_pulse.c
2013-06-20 01:51:25 +10:00
James Laird
cb14d56a5b
Merge pull request #223 from plietar/pulseaudio
...
Add a PulseAudio output driver, courtesy of Paul Lietar
2013-06-19 08:37:09 -07:00
James Laird
24d81c0450
daemonising: fork before doing any audio init
2013-06-20 01:06:45 +10:00
James Laird
a38a03ed7d
audio: update usage messages
2013-06-20 01:06:08 +10:00
James Laird
b8e8a22cc2
add long options, and update usage message
2013-06-20 00:48:20 +10:00
James Laird
d699d43551
getopt_long: neater errors
2013-06-20 00:28:17 +10:00
James Laird
3aa8bab70b
add getopt_long implementation and detection
2013-06-20 00:23:00 +10:00
Paul Lietar
64b6f47e84
pulseaudio: Make the application name configurable
...
If no name is specified, use the AirPlay access point name.
2013-06-19 10:57:44 +02:00
Paul Lietar
f1ee022fd0
pulseaudio: fix option parsing
2013-06-19 10:22:51 +02:00
James Laird
706e4d6518
ao, shairport: fix option parsing
...
- don't push unrecognised args to the audio driver
- get ao to parse from first argument
- ao checks for unrecognised options
2013-06-19 13:56:11 +10:00
James Laird
7f7dd51761
Merge pull request #224 from plietar/fix-libao-driver-check
...
Fix libao output driver.
2013-06-18 20:20:44 -07:00
Paul Lietar
8045e00d4f
Fix pulse audio output driver in daemon mode.
...
libpulse was initialized before the fork. This caused calls to libpulse
made after the fork fail.
Now initialize lib pulse when we need it, after the fork.
2013-06-11 16:47:41 +02:00
Paul Lietar
a69c5f20f5
Add a PulseAudio output driver.
...
It uses libpulse's synchronous API, to output to PulseAudio
without using libao.
2013-06-10 15:44:27 +02:00
Paul Lietar
e301306a35
Fix libao output driver.
...
The driver id returned by libao wasn't checked correctly.
When the driver did not exist, libao returns a negative number. The
libao output driver checked for a non zero id.
This caused shairport to refuse to use the first driver, and not fail
when using a non-existant driver.
2013-06-09 20:32:29 +02:00
James Laird
38799dc1b1
rtsp: track and join all RTSP threads
2013-06-07 11:32:14 +10:00
James Laird
f39b236a87
rtsp: do not race accept() and select()
2013-06-07 10:53:06 +10:00
James Laird
e15614d17e
rtp/rtsp: more debugging in verbose mode
2013-06-07 01:47:27 +10:00
James Laird
e1d6d19a20
configure: do not default openssl libs, cleanup messages
2013-06-07 00:48:01 +10:00
James Laird
f6eddb84fd
add native avahi-client support
...
requires extra packages on some systems, eg. libavahi-client-dev on
Debian/Ubuntu.
2013-06-04 01:31:46 +10:00
James Laird
8d04ac0a29
TODO updated
2013-06-04 00:30:17 +10:00
James Laird
8259ae60e8
die/warn functions now have implicit newline at the end
2013-06-04 00:30:17 +10:00
James Laird
0129db088f
add a pipe/FIFO audio backend
2013-06-04 00:30:17 +10:00
James Laird
57247db9d9
LICENSES updated w/ alac.c pointer
2013-06-04 00:30:17 +10:00
James Laird
3c8c9ed4b5
provide -B/-E for running shell commands on begin/end of playing
...
Implements functionality described by MaZderMind <github@mazdermind.de >
in issue #201 .
2013-06-04 00:27:15 +10:00
James Laird
c5b1f979e4
mdns: die iff the MDNS advertising process dies
...
and not if any other child does!
2013-06-04 00:26:55 +10:00
James Laird
d52125eca2
change default port to 5002
...
As in the previous version. Fixes #214 .
2013-06-03 21:47:17 +10:00
James Laird
98da1d2f66
whitespace fixes
2013-05-14 09:14:27 +10:00
James Laird
d5b17e2c23
rtsp: cleaner bind handling
...
- nicer debug messages
- arbitrary number of addresses, for multihomed hosts
- get rid of AI_ADDRCONFIG
2013-05-14 09:11:28 +10:00
James Laird
38969f2314
PKGBUILD: architecture armhf -> armv6h
2013-05-03 10:26:54 +10:00
James Laird
0e7f99a201
TODO updates
2013-04-14 20:22:10 +10:00
James Laird
9894b52b7b
restore '-d' (daemonise) flag
2013-04-14 20:17:40 +10:00
James Laird
a9c40871de
player: more robust seq_t handling
2013-04-09 08:38:40 +10:00
James Laird
9bfa48f100
player: remove redundant code path for fetch/play thread
...
conditional wait code was redundant since a contributed change that
plays silence if nothing is in the buffer. that also broke the buffer
fill estimator reset pathway.
2013-04-08 20:51:01 +10:00
James Laird
47853a05c5
rtsp: cleanup debug message
2013-04-08 19:58:58 +10:00
James Laird
9b9680819a
player: cleanups
...
should get rid of some sign issues in debug messages on ARM
2013-04-08 19:58:16 +10:00
James Laird
9a041f26ce
player: fix missing frame at stream startup
2013-04-08 19:56:59 +10:00
James Laird
92516596f0
scripts: add PKGBUILD and systemd service
2013-04-08 19:27:34 +10:00
James Laird
5f041a5adb
Makefile: create target directory if needs be
2013-04-08 18:58:38 +10:00
James Laird
0ee4efb002
Makefile: add install target
2013-04-08 18:54:39 +10:00
James Laird
dd23199752
cleanups
2013-04-04 08:57:00 +11:00
James Laird
ae3fcd1cc9
Merge pull request #200 from mrpippy/1.0-dev
...
Compile fixes for OpenBSD, and call freeaddrinfo() in rtp.c
2013-04-03 14:51:42 -07:00
Brendan Shanks
883d462192
Call freeaddrinfo() in rtp.c
...
Plug a (small) memory leak from getaddrinfo()
2013-04-03 08:53:53 -07:00
Brendan Shanks
66ccc1ef0e
Merge remote-tracking branch 'abrasive/1.0-dev' into 1.0-dev
2013-04-03 08:43:52 -07:00
James Laird
171e5d42ef
rtsp: safer buffer handling
2013-04-03 23:35:14 +11:00
James Laird
d3e89828c5
rtsp: handle volume messages
2013-04-03 23:34:58 +11:00