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
f13f22d857
Fix stupid auto format error.
2019-05-07 12:22:23 +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
1d32976d07
Improve support for bigendian devices. Add support for S16_LE, S16_BE, S24_LE, S24_BE, S32_LE and S32_BE formats. Make the default S16_LE. Allow precision timing only on alsa devices with names beginning with "hw:". Use snd_pcm_hw_params_is_monotonic() to see if clock is monotonic.
2019-05-01 11:01:15 +01:00
Mike Brady
9aa8f91c0e
Add a new interpolation setting -- "auto" which will choose soxr if supported and the soxr delay is less or equal to the threshold of 30 (milliseconds).
2019-04-16 16:40:56 +01:00
Mike Brady
aac57c9cdc
add standard timing -- more compatible -- and precision timing -- more precise. Add option reader but it's not connected up yet.
2019-04-09 10:23:23 +01:00
Mike Brady
1244bc49ba
Add check to see if precision delay is available -- if not, disable the disable_standby feature.
2019-03-27 10:01:20 +00:00
Mike Brady
042d940415
Remove the AUTO bit-depth setting. It's a hack and needs more consideration.
2019-02-28 14:21:05 +00: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
ca325d0459
Fix an error in non_blocking_write, expose a more general version of it, use it when writing an RTSP response with a three-second timeout.
2019-02-24 13:16:55 +00:00
Mike Brady and GitHub
ec84f0fd98
Merge pull request #809 from nettings/development
...
Modify audio_jack.c to use native jack lockless buffers and to offer auto connect facilities. Overall, the backend is now written more in the idiom of jack audio.
Many thanks to [Jörn Nettingsmeier](https://github.com/nettings ).
2019-02-19 11:12:03 +00:00
Mike Brady
fce6b5137e
Add a new command line option: -u to send logs to STDERR.
2019-02-16 19:32:13 +00:00
Jörn Nettingsmeier
bd5cfd3583
forgot to add new option autoconnect_pattern to default conf and common.h
2019-02-16 16:08:40 +00:00
Jörn Nettingsmeier
8c5e85c87c
Remove audio_client_disconnect option. This is not good behaviour for a JACK client, and adds nothing.
2019-02-15 23:14:31 +00:00
Jörn Nettingsmeier
edd699dfbc
Remove auto_client_open_interval option, always open JACK connection immediately or fail.
...
Remove client creation thread and wrapper function.
2019-02-15 23:08:04 +00:00
Jörn Nettingsmeier
0b589cbe6d
Remove option to configure port names. This is very unusual for a JACK client, nothing is gained by offering this, and it might confuse users.
2019-02-15 19:29:24 +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
8b589879be
fix a few minor compilation errors
2019-02-08 09:40:51 +00:00
Mike Brady
c86823c343
Starting to connect active mode with disable standby.
2019-02-08 09:04:33 +00:00
Mike Brady
e76cfa69fe
remove dependency on libdaemon -- leave it in by default, but allow the new configuration option --with-libdaemon.
2019-02-05 15:12:51 +00:00
Mike Brady
552218ab6e
Clean up audio help texts, add in the volume_range_hw_priority setting.
2019-02-05 11:26:54 +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
dd1b85383d
move malloc_cleanup to common.c
2019-01-23 16:34:46 +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
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
4483037719
Block on command_execute for unfixable errors.
2019-01-15 08:30:00 +00:00
Mike Brady
caf06c5aba
Add the idea of a preflight message to tell the backend that frames will be coming...
2019-01-07 17:34:50 +00:00
Mike Brady
80f15e1f57
clang format
2019-01-04 17:26:55 +00:00
Mike Brady
01dbf625fe
Add the interpolation threshold setting.
2019-01-04 17:09:37 +00:00
Mike Brady
6f8b35d121
Try out a new alsa delay routine. Could be very buggy!
2019-01-02 14:43:25 +00:00
Mike Brady
4ba0947ddb
Move the keep_dac_busy in to a configuration setting. Always start the keep_dac_busy thread and check if the keep_dac_busy is set. Don't dither is ignore volume control is set.
2018-12-15 15:36:44 +00:00
Mike Brady
7708ee3cdf
Bring in the "disable_standby_mode" feature on alsa to stop some DACs making popping noises. Fix dither generation.
2018-12-14 15:28:32 +00:00
Mike Brady
4046c0e73d
Fix dither, add dither to silences during lead-in, interpolatied frames and keeping out of standby, only if the output device doesn't use a mixer. Check configuration at initialisation.
2018-12-14 15:07:00 +00:00
Mike Brady
a8fe3bd13b
Remove connection with common.h -- works properly.
2018-12-12 22:07:55 +00:00
Mike Brady
b40b80247f
Fix a compilation error w.r.t. debuglev and fix a complation warning.
2018-12-12 21:21:54 +00:00
Mike Brady
45ce909214
Tidy up some debug messages and warnings, remove old diagnostic codes and settings.
2018-12-11 10:56:36 +00:00
Mike Brady
9d5ff22f2d
Connect up the stall response to the external command calling -- add a single argument to the unfixable error call.
2018-12-10 22:28:52 +00:00
Mike Brady
e5452e5172
Make the idle timeout on the RTSP link the same as the overall timeout -- 30 seconds is a bit short. Add checks to the alsa interface timing -- 15 ms to write a packet of frames, 1 ms to ask for the delay.
2018-12-08 14:12:33 +00:00
Mike Brady
277d401d24
Ensure watchdog always starts with the starting time of the thread. Add watchdog bark count. On the third bark, execute an unfixable error script if present.
2018-12-04 17:25:15 +00:00
Mike Brady
ca45d2ecbe
Clang formatted.
2018-11-29 12:18:07 +00:00
Mike Brady
c318796e55
Add an uncancellable usleep timer. Make the player and UDP thread cleanups uncancellable.
2018-11-29 11:37:56 +00:00
Mike Brady
093bf1dd46
Rotate usage of UDP ports if a session is interrupted. Avoids out-of-date packets landing in a new session.
2018-11-23 13:29:09 +00:00
Mike Brady
ccc4fe09af
Tidy up the formats.
2018-11-20 22:56:53 +00:00
Mike Brady
f7342a70df
Add the sort-of mutex name to the debug_mutex_lock and _unlock. Also, setting the debug level to 0 turns off the debug logging of them. Handy.
2018-11-19 20:12:57 +00:00
Mike Brady
58a66ebb0e
Make debuglev volatile, over player_vol past the cleanup push, add some temporary diagnostics.
2018-11-19 14:24:24 +00:00
Mike Brady
e0a4e5cde8
Format tidy-up
2018-10-21 17:10:23 +01:00
Mike Brady
de071aeffc
Try to fix modulo calculations
2018-10-18 17:44:50 +01:00
Maciej Wilczynski
947a0ca291
Add PA sink configuration option
2018-09-15 20:49:11 +02:00
Mike Brady
1b18f45fac
Clang Format Cleanup
2018-09-09 20:43:01 +01:00