Commit fecd8508 authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

Adding signal source prototype from parameters creation implementation

parent 94237513
...@@ -244,6 +244,13 @@ public: ...@@ -244,6 +244,13 @@ public:
return m_pProtocol->ClientCreateSignalSourceBufferFromParameters( oParams, sName ); 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 = "" ) inline std::string CreateSignalSourceTextToSpeech( const std::string& sName = "" )
{ {
VA_REQUIRE_CONNECTED; VA_REQUIRE_CONNECTED;
......
...@@ -147,6 +147,7 @@ void CVANetNetworkProtocol::ServerCallFunctionByMessageType( const int nMessageT ...@@ -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_NETWORK_STREAM, ServerCreateNetworkStreamSignalSource() );
SERVER_FUNCTION_MAPPING( VA_NP_CREATE_SIGNAL_SOURCE_ENGINE, ServerCreateEngineSignalSource() ); 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_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_DELETE_SIGNALSOURCE, ServerDeleteSignalSource() );
SERVER_FUNCTION_MAPPING( VA_NP_GET_SIGNALSOURCE_INFO, ServerGetSignalSourceInfo() ); SERVER_FUNCTION_MAPPING( VA_NP_GET_SIGNALSOURCE_INFO, ServerGetSignalSourceInfo() );
SERVER_FUNCTION_MAPPING( VA_NP_GET_SIGNALSOURCE_INFOS, ServerGetSignalSourceInfos() ); SERVER_FUNCTION_MAPPING( VA_NP_GET_SIGNALSOURCE_INFOS, ServerGetSignalSourceInfos() );
...@@ -1028,6 +1029,25 @@ void CVANetNetworkProtocol::ServerCreateSignalSourceBufferFromParameters() ...@@ -1028,6 +1029,25 @@ void CVANetNetworkProtocol::ServerCreateSignalSourceBufferFromParameters()
pMsg->WriteString( sID ); 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 ) std::string CVANetNetworkProtocol::ClientCreateTextToSpeechSignalSource( const std::string& sName )
{ {
CVANetMessage* pMsg = ClientInitMessage( VA_NP_CREATE_SIGNAL_SOURCE_TEXT_TO_SPEECH, MESSAGE_WITH_ANSWER ); CVANetMessage* pMsg = ClientInitMessage( VA_NP_CREATE_SIGNAL_SOURCE_TEXT_TO_SPEECH, MESSAGE_WITH_ANSWER );
......
...@@ -119,6 +119,8 @@ public: ...@@ -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_TEXT_TO_SPEECH = 660;
static const int VA_NP_CREATE_SIGNAL_SOURCE_PROTOTYPE_FROM_PARAMETERS = 670;
// Synchronization functions // Synchronization functions
static const int VA_NP_LOCK_UPDATE = 700; static const int VA_NP_LOCK_UPDATE = 700;
static const int VA_NP_UNLOCK_UPDATE = 701; static const int VA_NP_UNLOCK_UPDATE = 701;
...@@ -453,6 +455,9 @@ public: ...@@ -453,6 +455,9 @@ public:
std::string ClientCreateSignalSourceBufferFromParameters( const CVAStruct& oParams, const std::string& sName = "" ); std::string ClientCreateSignalSourceBufferFromParameters( const CVAStruct& oParams, const std::string& sName = "" );
void ServerCreateSignalSourceBufferFromParameters(); void ServerCreateSignalSourceBufferFromParameters();
std::string ClientCreateSignalSourcePrototypeFromParameters( const CVAStruct& oParams, const std::string& sName = "" );
void ServerCreateSignalSourcePrototypeFromParameters();
std::string ClientCreateTextToSpeechSignalSource( const std::string& sName = "" ); std::string ClientCreateTextToSpeechSignalSource( const std::string& sName = "" );
void ServerCreateTextToSpeechSignalSource(); 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