Commit graph

644 commits

Author SHA1 Message Date
badaix
ee1a8dbc38 Leave hw mixer open when there is no new pcm data 2020-05-31 17:43:37 +02:00
badaix
c1c521b260 Reformat code 2020-05-31 13:46:26 +02:00
badaix
7af8343650 Add file player for testing 2020-05-31 13:24:11 +02:00
badaix
ed81b90186 Alsa mute all hw channels 2020-05-29 10:29:14 +02:00
badaix
ed3d9e5ebc Send hello message as request 2020-05-15 08:54:15 +02:00
badaix
d9661f6267 Fix hw mixer issues 2020-05-14 20:38:19 +02:00
Szabolcs Hubai
91f392f483 uninitAlsa(): replace snd_pcm_drain(handle_); with snd_pcm_drop(handle_); 2020-05-13 17:46:42 +02:00
badaix
184254b35f Add some comments, clean ups 2020-05-10 21:52:19 +02:00
Stijn
d41289657e
Merge branch 'develop' into master 2020-05-10 13:49:24 +01:00
Stijn Van der Borght
7fd7c49538 wasapi: added listener for getting system volume 2020-05-10 13:26:32 +01:00
badaix
ba182db309 Apply volCorretion just in exclusive mode
as discussed here:
https://github.com/badaix/snapcast/issues/24#issuecomment-626193806
2020-05-10 13:40:30 +02:00
badaix
860c0e5c8f Cleanup WINDOWS and HAS_WASAPI usages 2020-05-07 22:38:25 +02:00
badaix
d7c39bf13b Fix compile error 2020-05-07 22:19:27 +02:00
badaix
2c7cbc0d75 Check if enough alsa frames are available 2020-05-07 22:01:04 +02:00
badaix
57aa683f93 Mixer can use a non-first audio device 2020-05-07 12:34:55 +02:00
badaix
9aa2f334eb Fix failed assertion in AlsaPlayer 2020-05-07 10:06:08 +02:00
badaix
4e5e54fd4d Fix compile error 2020-05-05 23:18:24 +02:00
badaix
052dbddb93 Disable compiler warnings for boost process 2020-05-05 22:45:36 +02:00
badaix
7294de5827 Remove unused variable 2020-05-05 21:50:13 +02:00
badaix
424487a48e Add sharing mode for Oboe, log device settings 2020-05-05 21:46:21 +02:00
badaix
ad2351a42b Fix Windows compile error 2020-05-04 16:25:38 +02:00
badaix
8de5a7a069 Windows uses std::system instead of bp::child 2020-05-04 15:43:14 +02:00
badaix
89679de108 Add boost-process to travis 2020-05-04 10:14:43 +02:00
badaix
3b3632474c Configurable base/exp for software mixer 2020-05-04 10:14:12 +02:00
badaix
ac02b827ff Fix warning 2020-05-03 20:18:01 +02:00
badaix
dd913acff9 Add mixer mode "none" 2020-05-03 20:10:01 +02:00
badaix
4a7b72773a Strip off "CARD=xxx" from the mixer device name 2020-05-03 11:07:00 +02:00
badaix
3ed76e2059 Add mixer command line option 2020-05-02 13:39:46 +02:00
badaix
38cddf6424 Fix data race with pending requests 2020-05-02 11:58:31 +02:00
badaix
bee9b2390c Fix compiler warning 2020-05-01 23:17:37 +02:00
badaix
ee59d047d1 Get and set hw volume in dB, fix event polling 2020-05-01 22:37:25 +02:00
badaix
94b829b910 Use dB scale in alsa hw volume, if available 2020-05-01 22:37:25 +02:00
badaix
f81c67e70e Fix crash in send 2020-05-01 22:37:25 +02:00
badaix
9b57dd21ba Add some more LOG_TAGs 2020-05-01 22:37:25 +02:00
badaix
ec6db408fa Handle Alsa hardware muting 2020-05-01 22:37:25 +02:00
badaix
47f7291d4f Rename msg::ClientSettings to msg::ClientInfo 2020-05-01 22:37:25 +02:00
badaix
e8bb8ecdba Send initial hardware mixer volume to the server 2020-05-01 22:37:25 +02:00
badaix
2217595c6b Fix crash when messages are queued 2020-05-01 22:37:25 +02:00
badaix
fa0dbfc808 Fix compiler warning 2020-05-01 22:37:25 +02:00
badaix
0996c04dca Change some log levels 2020-05-01 22:37:25 +02:00
badaix
9bb1c4a041 Make controller async, add client Mixer settings
Controller uses the asio io_context and thus uses one thread less.
This also fixes a lot of thread sanitizer issues.
2020-05-01 22:37:25 +02:00
badaix
4ce69d4bfb Hardware mixer for alsa 2020-05-01 22:37:25 +02:00
badaix
bfbd9e05a7 Speed up time sync after standby 2020-04-21 11:02:07 +02:00
badaix
bbdbe48cbc Fix compile error on Windows 2020-04-19 15:22:05 +02:00
badaix
827cfb7985 Fix client latency 2020-04-19 14:27:41 +02:00
badaix
a2311dfbfd Make logsink and filter configurable 2020-04-18 15:32:30 +02:00
badaix
ad8332345f Remove SLOG from logging 2020-04-16 09:01:09 +02:00
badaix
b27aee80e6 Retry to open alsa if handle is null 2020-04-16 08:34:38 +02:00
badaix
adfed6a1a8 Reenable Linux and MacOS travis builds 2020-04-10 13:51:02 +02:00
badaix
e5047f1aff Fix Windows warnings 2020-04-10 13:27:08 +02:00