Max Kellermann
|
980ef82216
|
output/wasapi: move SetEventHandle() call to thread constructor
|
2021-03-08 17:52:44 +01:00 |
Max Kellermann
|
84a06a72df
|
output/wasapi: fix coding style
|
2021-03-08 17:52:43 +01:00 |
Max Kellermann
|
4833d0891d
|
output/wasapi: eliminate kErrorId
|
2021-03-08 17:47:07 +01:00 |
Max Kellermann
|
cd53ca22c6
|
output/wasapi: remove unused function SafeTry()
|
2021-03-08 17:43:36 +01:00 |
Max Kellermann
|
4d9af9a81b
|
test/run_{input,output,convert}: switch file descriptors to binary mode
Fixes those programs on Windows.
|
2021-03-08 17:27:23 +01:00 |
Max Kellermann
|
d61341c0e3
|
io/FileDescriptor: add method SetBinaryMode()
|
2021-03-08 17:25:36 +01:00 |
Max Kellermann
|
eff50b263a
|
test/run_output: use class StaticFifoBuffer
|
2021-03-08 17:01:48 +01:00 |
Max Kellermann
|
2bebc79363
|
test/run_convert: use std::byte
|
2021-03-08 16:58:43 +01:00 |
Max Kellermann
|
e777fb4edb
|
test/run_convert: pass FileDescriptor to RunConvert()
|
2021-03-08 16:51:57 +01:00 |
Max Kellermann
|
3fb25d4062
|
test/run_convert: move code to RunConvert()
|
2021-03-08 16:46:21 +01:00 |
Max Kellermann
|
e227596c20
|
test/run_output: pass FileDescriptor to run_output()
|
2021-03-08 16:44:15 +01:00 |
Max Kellermann
|
ec76583c33
|
win32/Com: add COINIT_DISABLE_OLE1DDE
MSDN documentation suggests always passing this flag to reduce
overhead for an "obsolete technology".
|
2021-03-08 14:03:33 +01:00 |
Max Kellermann
|
927f1e03a3
|
win32/Com: make COINIT_APARTMENTTHREADED the default constructor
|
2021-03-08 14:02:49 +01:00 |
Max Kellermann
|
f2c679cfec
|
win32/Com: remove the unused COINIT_MULTITHREADED constructor
|
2021-03-08 14:02:49 +01:00 |
Max Kellermann
|
6a75c48dba
|
win32/HResult: add MakeHResultError()
None of the current FormatHResultError() callers need the format string.
|
2021-03-08 13:46:36 +01:00 |
Max Kellermann
|
48bdd09f64
|
win32/ComWorker: fold class COMWorkerThread into class COMWorker
|
2021-03-07 18:22:59 +01:00 |
Max Kellermann
|
cf108c389f
|
win32/ComWorker: remove parameter passing from Async()
Parameters should better be captured. This removes some complexity
from Async().
|
2021-03-07 18:20:59 +01:00 |
Max Kellermann
|
90d97053a8
|
win32/ComWorker: make COMWorker a real class, no static members
|
2021-03-06 20:46:29 +01:00 |
Shen-Ta Hsieh
|
e1fe9ebcd6
|
output/wasapi: Add dop support for WASAPI
Closes https://github.com/MusicPlayerDaemon/MPD/issues/1102
|
2021-03-05 19:40:32 +01:00 |
Max Kellermann
|
93016ac6ab
|
output/wasapi: check AUDCLNT_E_EXCLUSIVE_MODE_NOT_ALLOWED
Stop early, don't try more formats if it is clear that we have no
chance.
|
2021-03-05 19:33:38 +01:00 |
Max Kellermann
|
fc20a1f10a
|
output/wasapi: EnumerateDevices() logs, no std::vector
|
2021-03-05 19:27:52 +01:00 |
Max Kellermann
|
a4257e51d5
|
output/wasapi: reimplement SearchDevice() without EnumerateDevices()
|
2021-03-05 19:25:42 +01:00 |
Max Kellermann
|
2f2b3f1cdc
|
output/wasapi: SearchDevice() returns IMMDevice
|
2021-03-05 19:25:42 +01:00 |
Max Kellermann
|
2ff6a9ad2b
|
output/wasapi: GetDevice() returns IMMDevice
|
2021-03-05 19:25:42 +01:00 |
Max Kellermann
|
17d4873b60
|
output/wasapi: use default device only if none was configured
|
2021-03-05 19:25:42 +01:00 |
Max Kellermann
|
8b41c4f384
|
output/wasapi: release the COMWorker if OpenDevice() fails
Fixes assertion failure in the Thread destructor.
|
2021-03-05 19:25:42 +01:00 |
Max Kellermann
|
17f7098e27
|
output/wasapi: SafeTry() catches all exceptions
Fixes crash due to std::stoul() throwing std::invalid_argument.
|
2021-03-05 19:12:22 +01:00 |
Max Kellermann
|
9ff790b7bb
|
output/wasapi: move COM utilities to separate headers
|
2021-03-05 18:33:31 +01:00 |
Max Kellermann
|
ebc1fe2821
|
win32/ComPtr: operator*() returns reference
|
2021-03-05 17:39:48 +01:00 |
Max Kellermann
|
bc2988144e
|
test/run_output: use OptionParser, add option "--verbose"
|
2021-03-05 17:39:48 +01:00 |
Max Kellermann
|
b1a9958c66
|
test/run_output: add struct CommandLine
|
2021-03-05 17:39:48 +01:00 |
Max Kellermann
|
e6a81bb95c
|
output/wasapi: split the header
Reduce header dependencies.
|
2021-03-05 16:43:44 +01:00 |
Max Kellermann
|
9521c1ad58
|
output/wasapi: use forward declarations in the header
|
2021-03-05 16:42:38 +01:00 |
Max Kellermann
|
6d65cc48d7
|
output/wasapi: use [[gnu::pure]]
|
2021-03-05 16:42:15 +01:00 |
Max Kellermann
|
681956a963
|
output/wasapi: include cleanup
|
2021-03-05 16:42:14 +01:00 |
Max Kellermann
|
052f64d648
|
output/wasapi: include config.h for ENABLE_DSD
|
2021-03-05 16:35:21 +01:00 |
Max Kellermann
|
afe621c25c
|
output/wasapi: move to separate directory
|
2021-03-05 16:28:36 +01:00 |
Max Kellermann
|
637cf8a039
|
win32/WinEvent: add default value to Wait()
|
2021-03-05 16:05:32 +01:00 |
Max Kellermann
|
2011a6e2ee
|
win32/WinEvent: un-inline the constructor
Reduce header dependencies.
|
2021-03-05 16:01:23 +01:00 |
Max Kellermann
|
d54830de12
|
thread/WindowsFuture: include cleanup
|
2021-03-05 13:50:16 +01:00 |
Max Kellermann
|
a7e7312cca
|
win32/HResult: un-inline HResultCategory::message()
|
2021-03-05 13:40:40 +01:00 |
Max Kellermann
|
6b83fc6b57
|
win32/HResult: un-inline FormatHResultError()
Reduce header dependencies.
|
2021-03-05 13:40:38 +01:00 |
Max Kellermann
|
74f9e07151
|
win32/HResult: include cleanup
|
2021-03-05 13:40:37 +01:00 |
Max Kellermann
|
82a61ab3be
|
win32/meson.build: fix syntax error
|
2021-03-05 13:40:34 +01:00 |
Max Kellermann
|
54c1794cee
|
win32: build static library
Fixes linker failure on test/run_output.exe
|
2021-03-05 13:32:58 +01:00 |
Max Kellermann
|
c962a6be76
|
test/run_convert: fix Windows compiler errors
|
2021-03-05 13:24:28 +01:00 |
Max Kellermann
|
922c4bf3f0
|
test/TestLookupFile: fix Windows compiler errors
|
2021-03-05 13:22:34 +01:00 |
Max Kellermann
|
932756efce
|
win32/ComWorker: fix the FormatHResultError() return type
Casting to std::runtime_error loses information (and prevents RVO).
|
2021-03-05 13:17:40 +01:00 |
Max Kellermann
|
7838265482
|
win32/ComWorker: remove debug log messages
|
2021-03-05 13:16:09 +01:00 |
Max Kellermann
|
b14b0e5634
|
win32/ComWorker: reorder includes
|
2021-03-05 13:15:45 +01:00 |