Mike Brady
d8bad42b64
FIx a misspelled comment
2022-03-02 09:29:09 +11:00
Mike Brady
56bef8e7dd
Use CLOCK_MONOLITHIC_RAW to avoid NTP effects, report raw and corrected timing from audio_alsa. Clean up statistics. Stop watchdog timing out AP2 sessions. CLean up some debug messages.
2021-11-28 16:08:48 +00:00
Mike Brady
c0a3dacf30
Working to check for divide / mod by 0's
2021-11-17 10:35:21 +00:00
Mike Brady
d33de05ae9
change some debug messages
2021-06-04 09:40:24 +01:00
Mike Brady
b3cec5c690
move over to clock_realtime from clock_monotonic. Seems to work.
2021-04-30 10:12:59 +01:00
minix1234 and GitHub
70f60fcd8a
Updated activity_monitor.c - metadata publishing wrong codes
...
Found that MQTT activity_start: abeg and activity_end: aend topics where never being published. instead immediately after a play session started a play_end: pend topic was sent. Also after the activity_timout a duplicate play_end was received.
This commit fixes those bugs.
2020-06-12 09:03:30 -04:00
Mike Brady
67e9b1b6cd
partial move to using a nanosecond-based system timer. More to come.
2020-02-24 19:40:44 +00:00
Chris Boot
b9cf91b2bb
More typo fixes across the tree
...
Previously I have made spelling changes as caught by Debian's lintian
tool, which has a short list of common misspellings that it tests for.
This time I decided to run codespell against the source and fix all the
obvious problems it came up with. It also uses a list of misspellings
but it's much larger than lintian's, but also has some false positives
so I went over the list by hand.
The command I used to do check the source was:
git ls-tree -rz --name-only HEAD | xargs -0 codespell -L minimise,errorstring
2019-07-27 00:05:38 -03:00
Mike Brady
c8b0be30b4
find . \( -name \*.cpp -or -name \*.h -or -name \*.c \) -exec clang-format -i -style='{BasedOnStyle: llvm, IndentWidth: 2, ColumnLimit: 100}' '{}' \;
2019-06-19 19:06:54 +01:00
Mike Brady
83c0405d03
Add automatic bit depth and speed selection for alsa devices. Set rate and format to "auto" by default. Always look for the greatest bit depth, but the lowest multiple of 44,100.
...
Improve support for big-endian CPUs by adding support for explicit -endian formats, i.e. S16_LE, S16_BE, S24_LE, S24_BE, S32_LE, S32_BE.
For the "disable_standby_mode" setting, change "while_active" to "auto".
2019-05-07 10:19:04 +01:00
Mike Brady
20967812ad
Fix a bug in the activity_monitor software that could lock up a player thread so that it couln't be cancelled. If a player was cancelled while performing an activity script, the activity_monitor_mutex would remain locked.
2019-02-26 15:23:11 +00:00
Mike Brady
405a028f33
quieten some exiting debug messages
2019-02-16 19:44:25 +00:00
Mike Brady
5af6179875
use the term'state' rather than 'mode' when taling about the active state. Use 'while_active' rather than 'while active'
2019-02-12 15:47:10 +00:00
Mike Brady
54bb627eff
Fix some errors and warnings from OpenBSD
2019-02-12 10:55:04 +00:00
Mike Brady
97a4766e93
Add call to check if the dbus service is started.
2019-02-08 22:31:50 +00:00
Mike Brady
58acd161cd
make including of reference to dbus-service conditional on CONFIG_DBUS_INTERFACE
2019-02-08 20:48:29 +00:00
Mike Brady
34351a99cb
Continue hooking up active mode and disable standby stuff
2019-02-08 16:57:39 +00:00
Mike Brady
c86823c343
Starting to connect active mode with disable standby.
2019-02-08 09:04:33 +00:00
Mike Brady
79e22063ef
check that the systems are started before trying to stop them, duh.
2019-02-05 15:51:16 +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