72 |
LSCPEvent::RegisterEvent(LSCPEvent::event_buffer_fill, "BUFFER_FILL"); |
LSCPEvent::RegisterEvent(LSCPEvent::event_buffer_fill, "BUFFER_FILL"); |
73 |
LSCPEvent::RegisterEvent(LSCPEvent::event_channel_info, "CHANNEL_INFO"); |
LSCPEvent::RegisterEvent(LSCPEvent::event_channel_info, "CHANNEL_INFO"); |
74 |
LSCPEvent::RegisterEvent(LSCPEvent::event_misc, "MISCELLANEOUS"); |
LSCPEvent::RegisterEvent(LSCPEvent::event_misc, "MISCELLANEOUS"); |
75 |
|
LSCPEvent::RegisterEvent(LSCPEvent::event_total_voice_count, "TOTAL_VOICE_COUNT"); |
76 |
hSocket = -1; |
hSocket = -1; |
77 |
} |
} |
78 |
|
|
1546 |
return result.Produce(); |
return result.Produce(); |
1547 |
} |
} |
1548 |
|
|
1549 |
|
/** |
1550 |
|
* Will be called by the parser to return the current number of all active voices. |
1551 |
|
*/ |
1552 |
|
String LSCPServer::GetTotalVoiceCount() { |
1553 |
|
dmsg(2,("LSCPServer: GetTotalVoiceCount()\n")); |
1554 |
|
LSCPResultSet result; |
1555 |
|
result.Add(pSampler->GetVoiceCount()); |
1556 |
|
return result.Produce(); |
1557 |
|
} |
1558 |
|
|
1559 |
|
/** |
1560 |
|
* Will be called by the parser to return the maximum number of voices. |
1561 |
|
*/ |
1562 |
|
String LSCPServer::GetTotalVoiceCountMax() { |
1563 |
|
dmsg(2,("LSCPServer: GetTotalVoiceCountMax()\n")); |
1564 |
|
LSCPResultSet result; |
1565 |
|
result.Add(EngineFactory::EngineInstances().size() * CONFIG_MAX_VOICES); |
1566 |
|
return result.Produce(); |
1567 |
|
} |
1568 |
|
|
1569 |
/** |
/** |
1570 |
* Will be called by the parser to subscribe a client (frontend) on the |
* Will be called by the parser to subscribe a client (frontend) on the |
1571 |
* server for receiving event messages. |
* server for receiving event messages. |