Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
VAMatlab
Commits
88576925
Commit
88576925
authored
May 15, 2017
by
Jonas Stienen
Browse files
Adding yet missing getter and setter for signal source parameters
parent
2f46f6fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/VAMatlabExecutable.cpp
View file @
88576925
...
...
@@ -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"
,
""
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment