2 |
* * |
* * |
3 |
* LinuxSampler - modular, streaming capable sampler * |
* LinuxSampler - modular, streaming capable sampler * |
4 |
* * |
* * |
5 |
* Copyright (C) 2003-2004 by Benno Senoner and Christian Schoenebeck * |
* Copyright (C) 2003-2004 by Benno Senoner and Christian Schoenebeck * |
6 |
* Copyright (C) 2005-2007 Christian Schoenebeck * |
* Copyright (C) 2005-2008 Christian Schoenebeck * |
7 |
* * |
* * |
8 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
9 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
242 |
pSampler->fireVoiceCountChanged(iter->first, pEngineChannel->GetVoiceCount()); |
pSampler->fireVoiceCountChanged(iter->first, pEngineChannel->GetVoiceCount()); |
243 |
pSampler->fireStreamCountChanged(iter->first, pEngineChannel->GetDiskStreamCount()); |
pSampler->fireStreamCountChanged(iter->first, pEngineChannel->GetDiskStreamCount()); |
244 |
pSampler->fireBufferFillChanged(iter->first, pEngine->DiskStreamBufferFillPercentage()); |
pSampler->fireBufferFillChanged(iter->first, pEngine->DiskStreamBufferFillPercentage()); |
245 |
|
pSampler->fireTotalStreamCountChanged(pSampler->GetDiskStreamCount()); |
246 |
pSampler->fireTotalVoiceCountChanged(pSampler->GetVoiceCount()); |
pSampler->fireTotalVoiceCountChanged(pSampler->GetVoiceCount()); |
247 |
} |
} |
248 |
LSCPServer::UnlockRTNotify(); |
LSCPServer::UnlockRTNotify(); |
253 |
// destructor sends notifications to the lscpserver |
// destructor sends notifications to the lscpserver |
254 |
if (pSampler) delete pSampler; |
if (pSampler) delete pSampler; |
255 |
if (pLSCPServer) delete pLSCPServer; |
if (pLSCPServer) delete pLSCPServer; |
|
#if HAVE_SQLITE3 |
|
|
InstrumentsDb::Destroy(); |
|
|
#endif |
|
256 |
printf("LinuxSampler stopped due to SIGINT.\n"); |
printf("LinuxSampler stopped due to SIGINT.\n"); |
257 |
return EXIT_SUCCESS; |
return EXIT_SUCCESS; |
258 |
} |
} |
397 |
if (optarg) { |
if (optarg) { |
398 |
std::cout << "Creating instruments database..." << std::endl; |
std::cout << "Creating instruments database..." << std::endl; |
399 |
InstrumentsDb::CreateInstrumentsDb(String(optarg)); |
InstrumentsDb::CreateInstrumentsDb(String(optarg)); |
|
InstrumentsDb::Destroy(); |
|
400 |
std::cout << "Done" << std::endl; |
std::cout << "Done" << std::endl; |
401 |
} |
} |
402 |
} catch(Exception e) { |
} catch(Exception e) { |