Mike Brady
|
46d117b69a
|
add a volume control mutex to serialise multiple attempts to change the volume
|
2019-02-01 21:07:35 +00:00 |
|
Mike Brady
|
08e84ece27
|
add a volume control mutex to serialise multiple attempts to change the volume
|
2019-02-01 21:07:13 +00:00 |
|
Mike Brady
|
bfc7b9b774
|
lengthen some mutex timeouts to allow valgrind to work okay on a Pi 3B. Make operations that open the mixer uncancellable until it's closed again to stop a few small memory leaks when a player is cancelled.
|
2019-02-01 16:19:27 +00:00 |
|
Mike Brady
|
02bc269a4a
|
Fix a situation where cancellation could lose a malloced buffer.
|
2019-02-01 16:17:53 +00:00 |
|
Mike Brady
|
0c5521488c
|
add a special mixer-only mutex, do make open/close mixer stuff safer and probably quicker, not waiting for the main alsa mutex.
|
2019-02-01 12:38:45 +00:00 |
|
Mike Brady
|
2c0250b32a
|
Don't do a hardware mute when doing a flush -- if disable_standby is true, the mode goes to connected and then if player goes back to play immediately, you might hear some of the sound still moving through the output buffer. This happens due to a bug in IOS player.
|
2019-01-31 17:11:33 +00:00 |
|
Mike Brady
|
60487c86b1
|
Make mute work only if not diconnected. Clewan up some debug messages.
|
2019-01-31 13:35:11 +00:00 |
|
Mike Brady
|
555bb97a39
|
Rebuild the hardware mute code -- clear up the logic. Needs to check if disconnected though.
|
2019-01-31 09:01:35 +00:00 |
|
Mike Brady
|
fd08511f1f
|
Make it work with deferred initialisation of the alsa device -- deferred to first use. Investigate hardware mute again.
|
2019-01-30 17:43:15 +00:00 |
|
Mike Brady
|
c5ff0dfed0
|
Rebuild the volume control calculations. Implement software mute. Try to delay alsa initialisation as long as possible.
|
2019-01-30 09:24:10 +00:00 |
|
Mike Brady
|
aa5698fce2
|
Remove the preflight call - don't seem to need it.
|
2019-01-27 15:53:36 +00:00 |
|
Mike Brady
|
90ed88dbc5
|
add hooks for active mode start and end and add in the timeout into the configuration file.
|
2019-01-27 15:15:05 +00:00 |
|
Mike Brady
|
abec863bcf
|
Add a few litte changes from thre transit branch.
|
2019-01-27 14:32:18 +00:00 |
|
Mike Brady
|
02955ecabd
|
bring up to date with unstable branch
|
2019-01-27 14:25:02 +00:00 |
|
Mike Brady
|
56bf886206
|
gracefully handle situation when the output device is already in use; release it properly when finished.
|
2019-01-27 14:19:39 +00:00 |
|
Mike Brady
|
94f68798c8
|
Merge branch 'unstable' of https://github.com/mikebrady/shairport-sync into unstable
Merging two unstable branchses that have diverged
|
2019-01-27 13:57:46 +00:00 |
|
Mike Brady
|
7639bfadbf
|
Fix a number of memory leaks and one #include error when using the OpenSSL library.
|
2019-01-27 13:52:21 +00:00 |
|
Mike Brady
|
ea770b2b13
|
Remove some unnecessary code "protecting" some use of the OpenSSL library.
|
2019-01-27 13:50:54 +00:00 |
|
Mike Brady
|
1f67f66735
|
use the correct label -- CONFIG_OPENSSL -- rather than the incorrect CONFIG_SSL for including code to create a filename using the OpenSSL library.
|
2019-01-27 13:49:39 +00:00 |
|
Mike Brady
|
4188eba571
|
Fix a cause of a memory leak using OpenSSL for Base 64 encoding.
|
2019-01-27 13:48:06 +00:00 |
|
Mike Brady
|
c998400f7c
|
restore includes of openssl/mbedtls/polarssl includes
|
2019-01-26 15:52:21 +00:00 |
|
Mike Brady
|
c807513422
|
quieten a few debug messages, bring a standard one forward.
|
2019-01-24 16:33:50 +00:00 |
|
 Mike BradyandGitHub
|
8a8b59ad8d
|
Update README.md
|
2019-01-24 09:23:51 +00:00 |
|
 Mike BradyandGitHub
|
c06586cb85
|
Update README.md
|
2019-01-24 09:20:11 +00:00 |
|
Mike Brady
|
7a4949b32f
|
quieten a returned error-code message.
|
2019-01-24 09:15:09 +00:00 |
|
Mike Brady
|
b02e5d9f20
|
Use returned codes from do_open() to control the state machine -- don't go to abm_connected unless, eh, connected.
|
2019-01-24 09:14:41 +00:00 |
|
Mike Brady
|
9fb37e4293
|
Reorganise code to make it respond dynamically to changes in settings.
|
2019-01-23 22:22:27 +00:00 |
|
Mike Brady
|
0697a40b08
|
fix crypto library flags
|
2019-01-23 22:21:43 +00:00 |
|
Mike Brady
|
bd81e733cd
|
Introduce a simple state machine into the alsa backend to keep track of the connected state of it. Needed to deal properly with disabling and enabling standby dynamically.
|
2019-01-23 16:44:02 +00:00 |
|
Mike Brady
|
dd1b85383d
|
move malloc_cleanup to common.c
|
2019-01-23 16:34:46 +00:00 |
|
Mike Brady
|
0a9063fafe
|
move malloc_cleanup to common.c
|
2019-01-23 16:34:34 +00:00 |
|
Mike Brady
|
0feb59eaa5
|
move malloc_cleanup to common.c
|
2019-01-23 16:34:05 +00:00 |
|
Mike Brady
|
eda674850f
|
Add an "active" mode that can time out after a period -- 10 seconds by default -- after play ends.
|
2019-01-21 21:44:22 +00:00 |
|
Mike Brady
|
2e4428538d
|
Add an "active" mode that can time out after a period -- 10 seconds by default -- after play ends.
|
2019-01-21 21:43:55 +00:00 |
|
Mike Brady
|
604ca8dee4
|
Hook up active mode stuff to metadata, add two four-char codes, improve external command calling.
|
2019-01-21 21:18:40 +00:00 |
|
Mike Brady
|
2e181f937f
|
add initial script-execution functionality to active mode. Make is possible to wait for start and stop scripts.
|
2019-01-21 18:20:39 +00:00 |
|
Mike Brady
|
a8639f6c40
|
Add an activity monitor -- can set an activity idle timeout.
|
2019-01-20 22:15:02 +00:00 |
|
Mike Brady
|
a40a48693f
|
make OpenSSL routines un-cancellable, in case there might be possible memory leaks on cancellation
|
2019-01-18 16:33:32 +00:00 |
|
Mike Brady
|
61c870bac1
|
make OpenSSL routines un-cancellable, in case there is a possible memory leak
|
2019-01-18 16:32:31 +00:00 |
|
Mike Brady
|
99fd6b85d0
|
make OpenSSL routines un-cancellable, in case there is a possible memory leak
|
2019-01-18 16:31:36 +00:00 |
|
Mike Brady
|
3566cf0caf
|
remove unnecessary file includes
|
2019-01-18 16:30:21 +00:00 |
|
Mike Brady
|
f6d6700d6e
|
Quieten a debug message.
|
2019-01-18 16:28:02 +00:00 |
|
Mike Brady
|
020a69dfb9
|
remove the cause of a CLANG warning
|
2019-01-18 16:27:29 +00:00 |
|
Mike Brady
|
4483037719
|
Block on command_execute for unfixable errors.
|
2019-01-15 08:30:00 +00:00 |
|
Mike Brady
|
68f20fe8db
|
Add an error message if an RTSP thread can not be created.
|
2019-01-13 13:14:39 +00:00 |
|
Mike Brady
|
6c912d6ce5
|
Revise the code for retaining and freeing rtsp message memory allocations. Be more careful about cleaning up a possible message allocation when the rtsp channel is closed. Watch for overreleasing a message.
|
2019-01-13 10:20:26 +00:00 |
|
Mike Brady
|
93cae8a5d1
|
Quieten the msg_ debug messages.
|
2019-01-13 10:17:34 +00:00 |
|
Mike Brady
|
6a27712e94
|
Quieten a debug message.
|
2019-01-13 10:00:11 +00:00 |
|
Mike Brady
|
9fbdc062b4
|
Change how rtsp_messages are memory managed. Add some diagnostics.
|
2019-01-12 21:44:52 +00:00 |
|
Mike Brady
|
ca72645cb8
|
If a message is dropped because the pc queue is busy, free any data that might be associated with it as well as just the rtsp message.
|
2019-01-12 19:17:43 +00:00 |
|