Adding signal source prototype from parameters creation implementation

parent 94237513
......@@ -244,6 +244,13 @@ public:
return m_pProtocol->ClientCreateSignalSourceBufferFromParameters( oParams, sName );
};
inline std::string CreateSignalSourcePrototypeFromParameters( const CVAStruct& oParams, const std::string& sName = "" )
{
VA_REQUIRE_CONNECTED;
VA_MUTAL_EXCLUDE;
return m_pProtocol->ClientCreateSignalSourcePrototypeFromParameters( oParams, sName );
};
inline std::string CreateSignalSourceTextToSpeech( const std::string& sName = "" )
{
VA_REQUIRE_CONNECTED;
......
......@@ -147,6 +147,7 @@ void CVANetNetworkProtocol::ServerCallFunctionByMessageType( const int nMessageT
SERVER_FUNCTION_MAPPING( VA_NP_CREATE_SIGNAL_SOURCE_NETWORK_STREAM, ServerCreateNetworkStreamSignalSource() );
SERVER_FUNCTION_MAPPING( VA_NP_CREATE_SIGNAL_SOURCE_ENGINE, ServerCreateEngineSignalSource() );
SERVER_FUNCTION_MAPPING( VA_NP_CREATE_SIGNAL_SOURCE_MACHINE, ServerCreateSignalSourceMachine() );
SERVER_FUNCTION_MAPPING( VA_NP_CREATE_SIGNAL_SOURCE_PROTOTYPE_FROM_PARAMETERS, ServerCreateSignalSourcePrototypeFromParameters() );
SERVER_FUNCTION_MAPPING( VA_NP_DELETE_SIGNALSOURCE, ServerDeleteSignalSource() );
SERVER_FUNCTION_MAPPING( VA_NP_GET_SIGNALSOURCE_INFO, ServerGetSignalSourceInfo() );
SERVER_FUNCTION_MAPPING( VA_NP_GET_SIGNALSOURCE_INFOS, ServerGetSignalSourceInfos() );
......@@ -1028,6 +1029,25 @@ void CVANetNetworkProtocol::ServerCreateSignalSourceBufferFromParameters()
pMsg->WriteString( sID );
}
std::string CVANetNetworkProtocol::ClientCreateSignalSourcePrototypeFromParameters( const CVAStruct& oParams, const std::string& sName )
{
CVANetMessage* pMsg = ClientInitMessage( VA_NP_CREATE_SIGNAL_SOURCE_PROTOTYPE_FROM_PARAMETERS, MESSAGE_WITH_ANSWER );
pMsg->WriteVAStruct( oParams );
pMsg->WriteString( sName );
ClientSendCommand( pMsg );
return pMsg->ReadString();
}
void CVANetNetworkProtocol::ServerCreateSignalSourcePrototypeFromParameters()
{
CVANetMessage* pMsg = ServerGetMessage();
CVAStruct oParams;
pMsg->ReadVAStruct( oParams );
const std::string sName = pMsg->ReadString();
const std::string sID = m_pRealCore->CreateSignalSourcePrototypeFromParameters( oParams, sName );
pMsg->WriteString( sID );
}
std::string CVANetNetworkProtocol::ClientCreateTextToSpeechSignalSource( const std::string& sName )
{
CVANetMessage* pMsg = ClientInitMessage( VA_NP_CREATE_SIGNAL_SOURCE_TEXT_TO_SPEECH, MESSAGE_WITH_ANSWER );
......
......@@ -119,6 +119,8 @@ public:
static const int VA_NP_CREATE_SIGNAL_SOURCE_TEXT_TO_SPEECH = 660;
static const int VA_NP_CREATE_SIGNAL_SOURCE_PROTOTYPE_FROM_PARAMETERS = 670;
// Synchronization functions
static const int VA_NP_LOCK_UPDATE = 700;
static const int VA_NP_UNLOCK_UPDATE = 701;
......@@ -453,6 +455,9 @@ public:
std::string ClientCreateSignalSourceBufferFromParameters( const CVAStruct& oParams, const std::string& sName = "" );
void ServerCreateSignalSourceBufferFromParameters();
std::string ClientCreateSignalSourcePrototypeFromParameters( const CVAStruct& oParams, const std::string& sName = "" );
void ServerCreateSignalSourcePrototypeFromParameters();
std::string ClientCreateTextToSpeechSignalSource( const std::string& sName = "" );
void ServerCreateTextToSpeechSignalSource();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment