48 |
|
|
49 |
pSampler = new Sampler; |
pSampler = new Sampler; |
50 |
|
|
51 |
|
#if defined(__APPLE__) |
52 |
|
// AU plugin sometimes hangs if bound to loopback |
53 |
|
pLSCPServer = new LSCPServer(pSampler, htonl(INADDR_ANY), htons(LSCP_PORT)); |
54 |
|
#else |
55 |
// using LOOPBACK instead of ANY to prevent windows firewall |
// using LOOPBACK instead of ANY to prevent windows firewall |
56 |
// warnings |
// warnings |
57 |
pLSCPServer = new LSCPServer(pSampler, htonl(INADDR_LOOPBACK), |
pLSCPServer = new LSCPServer(pSampler, htonl(INADDR_LOOPBACK), htons(LSCP_PORT)); |
58 |
htons(LSCP_PORT)); |
#endif |
59 |
|
|
60 |
pLSCPServer->StartThread(); |
pLSCPServer->StartThread(); |
61 |
pLSCPServer->WaitUntilInitialized(); |
pLSCPServer->WaitUntilInitialized(); |
62 |
|
|