mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-03 03:11:43 +02:00
wasapi: added client option for selecting shared/exclusive mode
This commit is contained in:
parent
95a369be79
commit
9737c1ac44
5 changed files with 70 additions and 28 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue