mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-19 20:16:15 +02:00
macOS support warning
This commit is contained in:
parent
7715f3bbd3
commit
eb021d84c2
3 changed files with 9 additions and 10 deletions
|
@ -67,7 +67,7 @@ PcmDevice getPcmDevice(const std::string& soundcard)
|
||||||
int main (int argc, char **argv)
|
int main (int argc, char **argv)
|
||||||
{
|
{
|
||||||
#ifdef MACOS
|
#ifdef MACOS
|
||||||
#pragma message "Warning: the Mac OS support is experimental and might not be maintained"
|
#pragma message "Warning: the macOS support is experimental and might not be maintained"
|
||||||
#endif
|
#endif
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
|
@ -72,13 +72,13 @@ PublishAvahi::~PublishAvahi()
|
||||||
active_ = false;
|
active_ = false;
|
||||||
pollThread_.join();
|
pollThread_.join();
|
||||||
|
|
||||||
if (client_)
|
if (client_)
|
||||||
avahi_client_free(client_);
|
avahi_client_free(client_);
|
||||||
|
|
||||||
if (simple_poll)
|
if (simple_poll)
|
||||||
avahi_simple_poll_free(simple_poll);
|
avahi_simple_poll_free(simple_poll);
|
||||||
|
|
||||||
avahi_free(name);
|
avahi_free(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -45,6 +45,9 @@ using namespace popl;
|
||||||
|
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
#ifdef MACOS
|
||||||
|
#pragma message "Warning: the macOS support is experimental and might not be maintained"
|
||||||
|
#endif
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
StreamServerSettings settings;
|
StreamServerSettings settings;
|
||||||
|
@ -181,7 +184,3 @@ int main(int argc, char* argv[])
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue