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

More sequencer stuff

parent 128a9af3
......@@ -120,6 +120,8 @@ void CVANetNetworkProtocol::ServerCallFunctionByMessageType( const int nMessageT
// Module interface
SERVER_FUNCTION_MAPPING( VA_NP_GET_MODULES, ServerGetModules() );
SERVER_FUNCTION_MAPPING( VA_NP_CALL_MODULE, ServerCallModule() );
SERVER_FUNCTION_MAPPING( VA_NP_GET_SEARCH_PATHS, ServerGetSearchPaths() );
SERVER_FUNCTION_MAPPING( VA_NP_FIND_FILE_PATH, ServerFindFilePath() );
// Event handling
SERVER_FUNCTION_MAPPING( VA_NP_ATTACH_EVENT_HANDLER, ServerAttachEventHandler( pConnection ) );
......@@ -152,6 +154,9 @@ void CVANetNetworkProtocol::ServerCallFunctionByMessageType( const int nMessageT
SERVER_FUNCTION_MAPPING( VA_NP_GET_SIGNAL_SOURCE_BUFFER_LOOPING, ServerGetSignalSourceBufferLooping() );
SERVER_FUNCTION_MAPPING( VA_NP_GET_SIGNALSOURCE_PARAMETERS, ServerGetSignalSourceParameters() );
SERVER_FUNCTION_MAPPING( VA_NP_SET_SIGNALSOURCE_PARAMETERS, ServerSetSignalSourceParameters() );
SERVER_FUNCTION_MAPPING( VA_NP_ADD_SIGNAL_SOURCE_SEQUENCER_SOUND_SAMPLE, ServerAddSignalSourceSequencerSample() );
SERVER_FUNCTION_MAPPING( VA_NP_ADD_SIGNAL_SOURCE_SEQUENCER_SOUND_PLAYBACK, ServerAddSignalSourceSequencerSoundPlayback() );
SERVER_FUNCTION_MAPPING( VA_NP_REMOVE_SIGNAL_SOURCE_SEQUENCER_SOUND_SAMPLE, ServerRemoveSignalSourceSequencerSoundSample() );
// Synchronization functions
SERVER_FUNCTION_MAPPING( VA_NP_LOCK_SCENE, ServerLockUpdate() );
......@@ -1177,6 +1182,49 @@ void CVANetNetworkProtocol::ServerGetSignalSourceParameters()
return;
}
int CVANetNetworkProtocol::ClientAddSignalSourceSequencerSample( const std::string& sSignalSourceID, const CVAStruct& oArgs )
{
}
void CVANetNetworkProtocol::ServerAddSignalSourceSequencerSample()
{
}
int CVANetNetworkProtocol::ClientAddSignalSourceSequencerSoundPlayback( const std::string& sSignalSourceID, const int iSoundID, const int iFlags, const double dTimeCode )
{
CVANetMessage* pMsg = ClientInitMessage( VA_NP_ADD_SIGNAL_SOURCE_SEQUENCER_SOUND_PLAYBACK, MESSAGE_WITH_ANSWER );
pMsg->WriteString( sSignalSourceID );
pMsg->WriteInt( iSoundID );
pMsg->WriteInt( iFlags );
pMsg->WriteDouble( dTimeCode );
ClientSendCommand( pMsg );
const int iRet = pMsg->ReadInt();
return iRet;
}
void CVANetNetworkProtocol::ServerAddSignalSourceSequencerSoundPlayback()
{
CVANetMessage* pMsg = ServerGetMessage();
const std::string sID = pMsg->ReadString();
const int iSoundID = pMsg->ReadInt();
const int iFlags = pMsg->ReadInt();
const double dTimeCode = pMsg->ReadDouble();
const int iRet = m_pRealCore->AddSignalSourceSequencerSoundPlayback( sID, iSoundID, iFlags, dTimeCode );
pMsg->WriteInt( iRet );
return;
}
void CVANetNetworkProtocol::ClientRemoveSignalSourceSequencerSoundSample( const std::string& sSignalSourceID, const int iSoundID )
{
}
void CVANetNetworkProtocol::ServerRemoveSignalSourceSequencerSoundSample()
{
}
void CVANetNetworkProtocol::ClientLockUpdate()
{
......
......@@ -104,8 +104,9 @@ public:
static const int VA_NP_SET_SIGNAL_SOURCE_BUFFER_LOOPING = 615;
static const int VA_NP_CREATE_SIGNAL_SOURCE_SEQUENCER = 620;
static const int VA_NP_SIGNAL_SOURCE_SEQUENCER_ADD_SOUND_PLAYBACK = 621;
static const int VA_NP_SIGNAL_SOURCE_SEQUENCER_REMOVE_SOUND_PLAYBACK = 622;
static const int VA_NP_ADD_SIGNAL_SOURCE_SEQUENCER_SOUND_SAMPLE = 621;
static const int VA_NP_ADD_SIGNAL_SOURCE_SEQUENCER_SOUND_PLAYBACK = 622;
static const int VA_NP_REMOVE_SIGNAL_SOURCE_SEQUENCER_SOUND_SAMPLE = 623;
static const int VA_NP_CREATE_SIGNAL_SOURCE_NETWORK_STREAM = 630;
......@@ -478,6 +479,12 @@ public:
CVAStruct ClientGetSignalSourceParameters( const std::string& sSignalSourceID, const CVAStruct& oParams );
void ServerGetSignalSourceParameters();
int ClientAddSignalSourceSequencerSample( const std::string& sSignalSourceID, const CVAStruct& oArgs );
void ServerAddSignalSourceSequencerSample();
int ClientAddSignalSourceSequencerSoundPlayback( const std::string& sSignalSourceID, const int iSoundID, const int iFlags, const double dTimeCode );
void ServerAddSignalSourceSequencerSoundPlayback();
void ClientRemoveSignalSourceSequencerSoundSample( const std::string& sSignalSourceID, const int iSoundID );
void ServerRemoveSignalSourceSequencerSoundSample();
void ClientLockUpdate();
void ServerLockUpdate();
......
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