Mike Brady
32c7a535a1
Make scanning for DACP port part of the dacp handler. Only emit 'clip' and 'svip' for a play connection, suppress 'pfls' until 'pffr' has been emitted
2018-03-31 17:34:59 +01:00
Mike Brady
69b3b5d776
Send rtsp events to the metadata thteread for handling. Begin to clean up signals.
2018-03-31 12:39:26 +01:00
Mike Brady
c36a7822a3
Tidy up using clang-format
2018-03-07 14:35:25 +00:00
Mike Brady
07e46565ca
Eliminate almost all warnings from -Wall
2018-03-07 14:29:14 +00:00
Mike Brady
370501117e
Change snd_pcm_drain to snd_pcm_drop, remove the blocking and unblocking code, so a little formatting.
2018-02-05 14:19:33 +00:00
Mike Brady
2efab6ee4d
Quieten a debug message.
2018-01-31 19:54:28 +00:00
Mike Brady
f83b86ec23
Add the option to use a flat volume control profile.
2018-01-29 22:28:22 +00:00
Mike Brady
e0aa75a80c
pretty-print after adding alsa volume-based mute capability
2018-01-13 20:15:27 +00:00
Mike Brady
6d792fa0ef
Quieten some debug messages.
2018-01-13 20:13:19 +00:00
Mike Brady
8a4bfb0378
Take advantage of the mute capability of a device that mutes at its lowest setting
2018-01-13 20:09:51 +00:00
Mike Brady
d343a851c0
Some spring cleaning using clang-format
2017-10-05 17:48:24 +01:00
Jakub Nabaglo
90f779dc74
Minor cleanup
2017-09-26 21:37:01 +10:00
Jakub Nabaglo
2915e6672c
Attempt to fix hardware volume bug on devices without a linear scale
2017-09-26 17:24:55 +10:00
Mike Brady
81a02221c1
Change default of using alsa mute switch to "no" for compatability with other audio players.
2017-09-02 17:17:11 +01:00
Mike Brady
e513e5330c
Tidy up source using clang-format
2017-07-31 11:57:57 +02:00
Mike Brady
5663858c63
Tidy up and/or suppress some debug messages
2017-07-22 18:09:39 +02:00
Mike Brady
b7864b4ecf
Move common audio backend settings like buffer size and offsets to the "general" settings stanza. Improve the resync code a little.
2017-07-21 12:29:03 +02:00
Mike Brady
d428585715
Add code to read audio_backend_silent_lead_in_time settings.
2017-07-06 19:13:10 +01:00
Mike Brady
c13ff31c82
Merge pull request #545 from ccutrer/dynamic_output_device
...
Read `stdout` from the on-start command to choose ALSA output device
Thanks for this. It looks well-implemented, but it also is very special-purpose. When a more general solution comes along that provides this functionality, I hope you won't mind if this code is removed...
2017-06-25 15:01:12 +01:00
Cody Cutrer
3e9e228564
read stdout from the on-start command to choose ALSA output device
...
refs GH-452
2017-06-24 19:46:03 -06:00
Mike Brady
f7077e7097
Some calls to the "die" function need to be preceded by unlocking the alsa mutex.
2017-06-24 18:22:55 +01:00
Mike Brady
b3ae05ea60
Initial very rough full-fat pulseaudio backend
2017-05-17 08:49:40 +01:00
Mike Brady
558a2ec767
Improve the logic of the interplay between the volume and mute controls, so that if muted due to volume levels, will not be unmuted
2017-05-04 16:30:12 +01:00
Mike Brady
721a624c53
Signal presence or absence of hardware volume and mute abilities properly. Fix software-only mute.
2017-05-04 14:06:24 +01:00
Mike Brady
eb1b7c3779
Open and close the hardware mixer when needed -- don't keep it open throughout the play session. This allows it to respond to external volume changes
2017-05-02 12:29:57 +01:00
Mike Brady
a0c8186b4d
Fix silly bug in volume adjust code
2017-05-01 08:35:56 +01:00
Mike Brady
2dea79fa41
Add alsa_use_playback_switch_for_mute to the configuration data structure, so visible for debug summary.
2017-04-30 18:56:56 +01:00
Mike Brady
fc492bea3a
Only set volume if it has been asked for externally. Clean up mute. Add ability do disable hardware mute
2017-04-30 15:29:22 +01:00
Mike Brady
a53b4c5c36
Fix some warnings from clang on FreeBSD. One was significant -- the randarray stuff didn't look right.
2017-04-16 16:52:43 +01:00
Mike Brady
b8700b3f1b
Fully release the hardware device on flush. Simplify flushing. Also improve some debug messages.
2017-04-07 18:31:47 +01:00
Mike Brady
9ebf247610
Don't die if you can't change the volume control -- just report it
2017-04-01 15:20:30 +01:00
Mike Brady
cf29625d2c
Clang Format
2017-02-11 12:12:07 +00:00
Mike Brady
5f61e30510
Recognise and use deprecated settings and issue warnings.
2017-01-30 18:23:49 +00:00
Mike Brady
b5ee350b3c
Add *untested* support for S24_3LE and S24_3BE output format.
2016-09-28 11:47:44 +01:00
Mike Brady
c6fc233476
Merge remote-tracking branch 'upstream/development' into development
...
Merging 3.0d to 2.8.4.8
2016-09-26 16:42:33 +01:00
Mike Brady
622549c7df
If sync disabled on the alsa device, don't keep asking for buffer length. Also emit sender IP number as metadata.
2016-09-21 20:57:33 +01:00
Mike Brady
b76e9ba4be
Add client IP metadata item -- the IP of the client, i.e. the sender of audio, is output when a pley session is about to start, as a 'ssnc' 'clip' string. Also, stop asking for buffer size if sync is disabled.
2016-09-20 15:17:28 +01:00
Mike Brady
c80d59b3c4
Tidy up source with clang-format
2016-09-18 13:08:36 +01:00
Mike Brady
5a8241c71a
Change names of drift, resync, alsa buffer offset and alsa buffer length to distinguish them from the old 44100-based settings. Add warning messages.
2016-09-18 12:56:22 +01:00
Mike Brady
43788faa96
Fix error checking of alsa latency and buffer legth settings.
2016-09-13 12:19:28 +01:00
Mike Brady
0499743bd9
Make endian-independent. Allow users to specify only U8/S8/S16/S24/S32
2016-09-12 22:01:57 +01:00
Mike Brady
064bd293c5
Tidy up with a clang-format
2016-09-11 10:35:53 +01:00
Mike Brady
9ae88ee16c
Add initial support for U8 and S8 formats
2016-09-10 18:59:53 +01:00
Mike Brady
ae84366e8d
Change over to times as opposed to frames for setting timing options
2016-09-04 19:37:22 +01:00
Mike Brady
01e5128507
Add ability to set output format and output rate
2016-08-19 12:51:15 +01:00
Mike Brady
c1e07b98d1
add ability to not use mmap
2016-08-17 19:59:26 +01:00
Mike Brady
991aae0601
Add a signal to say which kind of output is being used.
2016-07-07 13:31:04 +01:00
Yihui Xiong
8e847aa4a4
use alsa mmap feature if supported
2016-07-07 15:28:32 +08:00
Mike Brady
02651562a4
Only try to set volume at play if there's a mixer.
2016-05-09 11:28:37 +00:00
Mike Brady
1b7fceb7d1
Merge pull request #293 from joerg-krause/alsa-softvol
...
Add support for ALSA softvol plugin
2016-05-07 10:52:05 +01:00