Aufgrund einer Wartung wird GitLab am 28.09. zwischen 10:00 und 11:00 Uhr kurzzeitig nicht zur Verfügung stehen. / Due to maintenance, GitLab will be temporarily unavailable on 28.09. between 10:00 and 11:00 am.

Commit 88576925 authored by Jonas Stienen's avatar Jonas Stienen

Adding yet missing getter and setter for signal source parameters

parent 2f46f6fd
......@@ -1450,6 +1450,44 @@ void setAudiofileSignalSourcePlayPosition( int nlhs, mxArray *plhs[], int nrhs,
pConnection->pCoreInterface->SetAudiofileSignalSourcePlaybackPosition( sSignalSourceID, dPlaybackPosition );
}
// ------------------------------------------------------------
REGISTER_PUBLIC_FUNCTION( getSignalSourceParameters, "Returns the current signal source parameters", "" );
DECLARE_FUNCTION_REQUIRED_INARG( getSignalSourceParameters, ID, "string", "Signal source identifier" );
DECLARE_FUNCTION_REQUIRED_INARG( getSignalSourceParameters, args, "mstruct", "Requested parameters" );
DECLARE_FUNCTION_OUTARG( getSignalSourceParameters, params, "mstruct", "Parameters" );
void getSignalSourceParameters( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
{
REQUIRE_INPUT_ARGS( 3 );
ConnectionHandle hHandle = GetConnectionHandle( prhs[ 0 ] );
CVAMatlabConnection* pConnection = g_vpConnections[ hHandle ];
std::string sID = matlabGetString( prhs[ 1 ], "ID" );
CVAStruct oArgs = matlabGetStruct( prhs[ 2 ], "args" );
CVAStruct oRet = pConnection->pCoreInterface->GetSignalSourceParameters( sID, oArgs );
plhs[ 0 ] = matlabCreateStruct( oRet );
}
// ------------------------------------------------------------
REGISTER_PUBLIC_FUNCTION( setSignalSourceParameters, "Sets signal source parameters", "" );
DECLARE_FUNCTION_REQUIRED_INARG( setSignalSourceParameters, ID, "string", "Signal source identifier" );
DECLARE_FUNCTION_REQUIRED_INARG( setSignalSourceParameters, params, "mstruct", "Parameters" );
void setSignalSourceParameters( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
{
REQUIRE_INPUT_ARGS( 3 );
ConnectionHandle hHandle = GetConnectionHandle( prhs[ 0 ] );
CVAMatlabConnection* pConnection = g_vpConnections[ hHandle ];
std::string sID = matlabGetString( prhs[ 1 ], "ID" );
CVAStruct oParams = matlabGetStruct( prhs[ 2 ], "params" );
pConnection->pCoreInterface->SetSignalSourceParameters( sID, oParams );
}
// ------------------------------------------------------------
REGISTER_PUBLIC_FUNCTION( addSoundPlayback, "Adds a sound playback for a sequencer signal source", "" );
......
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