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 |
|
|
393 |
|
|
394 |
return true; |
return true; |
395 |
} |
} |
396 |
|
|
397 |
|
void Plugin::DestroyDevice(AudioOutputDevicePlugin* pDevice) { |
398 |
|
AudioOutputDeviceFactory::DestroyPrivate(pDevice); |
399 |
|
} |
400 |
|
|
401 |
|
void Plugin::DestroyDevice(MidiInputDevicePlugin* pDevice) { |
402 |
|
MidiInputDeviceFactory::DestroyPrivate(pDevice); |
403 |
|
} |
404 |
} |
} |