wasapi: added client option for selecting shared/exclusive mode

This commit is contained in:
Stijn Van der Borght 2020-04-03 22:55:01 +01:00 committed by Johannes Pohl
parent 95a369be79
commit 9737c1ac44
5 changed files with 70 additions and 28 deletions

View file

@ -27,6 +27,14 @@
struct ClientSettings
{
#ifdef HAS_WASAPI
enum class WasapiMode
{
SHARED,
EXCLUSIVE
};
#endif
struct ServerSettings
{
std::string host{""};
@ -39,6 +47,9 @@ struct ClientSettings
int latency{0};
PcmDevice pcm_device;
SampleFormat sample_format;
#ifdef HAS_WASAPI
WasapiMode wasapi_mode{ WasapiMode::SHARED };
#endif
};
struct LoggingSettings