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 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 * |
72 |
|
|
73 |
dmsg(1,("LinuxSampler %s\n", VERSION)); |
dmsg(1,("LinuxSampler %s\n", VERSION)); |
74 |
dmsg(1,("Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck\n")); |
dmsg(1,("Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck\n")); |
75 |
|
dmsg(1,("Copyright (C) 2005 Christian Schoenebeck\n")); |
76 |
|
|
77 |
if (tune) |
if (tune) |
78 |
{ |
{ |
142 |
std::map<uint,SamplerChannel*>::iterator iter = channels.begin(); |
std::map<uint,SamplerChannel*>::iterator iter = channels.begin(); |
143 |
for (; iter != channels.end(); iter++) { |
for (; iter != channels.end(); iter++) { |
144 |
SamplerChannel* pSamplerChannel = iter->second; |
SamplerChannel* pSamplerChannel = iter->second; |
145 |
Engine* pEngine = pSamplerChannel->GetEngine(); |
EngineChannel* pEngineChannel = pSamplerChannel->GetEngineChannel(); |
146 |
|
if (!pEngineChannel) continue; |
147 |
|
Engine* pEngine = pEngineChannel->GetEngine(); |
148 |
if (!pEngine) continue; |
if (!pEngine) continue; |
149 |
LSCPServer::SendLSCPNotify(LSCPEvent(LSCPEvent::event_voice_count, iter->first, pEngine->VoiceCount())); |
LSCPServer::SendLSCPNotify(LSCPEvent(LSCPEvent::event_voice_count, iter->first, pEngine->VoiceCount())); |
150 |
LSCPServer::SendLSCPNotify(LSCPEvent(LSCPEvent::event_stream_count, iter->first, pEngine->DiskStreamCount())); |
LSCPServer::SendLSCPNotify(LSCPEvent(LSCPEvent::event_stream_count, iter->first, pEngine->DiskStreamCount())); |
220 |
}; |
}; |
221 |
|
|
222 |
while (true) { |
while (true) { |
223 |
res = getopt_long_only(argc, argv, "", long_options, &option_index); |
/* |
224 |
|
Stephane Letz : letz@grame.fr |
225 |
|
getopt_long_only does not exist on OSX : replaced by getopt_long for now. |
226 |
|
*/ |
227 |
|
res = getopt_long(argc, argv, "", long_options, &option_index); |
228 |
if(res == -1) break; |
if(res == -1) break; |
229 |
if (res == 0) { |
if (res == 0) { |
230 |
switch(option_index) { |
switch(option_index) { |