Rename WasapiMode to SharingMode

The mode is more general and will be applied
in a second step also to other audio devices
This commit is contained in:
badaix 2020-04-10 10:15:58 +02:00
parent 5cc37f98f4
commit 30753f9f61
5 changed files with 17 additions and 21 deletions

View file

@ -27,13 +27,11 @@
struct ClientSettings
{
#ifdef HAS_WASAPI
enum class WasapiMode
enum class SharingMode
{
SHARED,
EXCLUSIVE
exclusive,
shared
};
#endif
struct ServerSettings
{
@ -47,9 +45,7 @@ struct ClientSettings
int latency{0};
PcmDevice pcm_device;
SampleFormat sample_format;
#ifdef HAS_WASAPI
WasapiMode wasapi_mode{WasapiMode::SHARED};
#endif
SharingMode sharing_mode{SharingMode::shared};
};
struct LoggingSettings