Refactoring

parent 80626278
......@@ -307,11 +307,11 @@ void setVerboseMode( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]
// ------------------------------------------------------------
REGISTER_PRIVATE_FUNCTION( isConnected );
REGISTER_PRIVATE_FUNCTION( get_connected );
#if VAMATLAB_INTEGRATED == 1
void isConnected(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) {
void get_connected(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) {
REQUIRE_INPUT_ARGS(1);
......@@ -320,7 +320,7 @@ void isConnected(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) {
#else // VAMATLAB_INTEGRATED
void isConnected( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
void get_connected( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
REQUIRE_INPUT_ARGS( 1 );
......@@ -515,12 +515,12 @@ void disconnect( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
// ------------------------------------------------------------
REGISTER_PUBLIC_FUNCTION( getServerAddress, "Returns for an opened connection the server it is connected to", "" );
DECLARE_FUNCTION_OUTARG( getServerAddress, addr, "string", "Server address" );
REGISTER_PUBLIC_FUNCTION( get_server_address, "Returns for an opened connection the server it is connected to", "" );
DECLARE_FUNCTION_OUTARG( get_server_address, addr, "string", "Server address" );
#if VAMATLAB_INTEGRATED == 1
void getServerAddress(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) {
void get_server_address(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) {
REQUIRE_INPUT_ARGS(1);
......@@ -531,7 +531,7 @@ void getServerAddress(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]
#else // VAMATLAB_INTEGRATED
void getServerAddress( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
void get_server_address( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
REQUIRE_INPUT_ARGS( 1 );
......@@ -546,10 +546,10 @@ void getServerAddress( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[
// -------------------------- TRACKER ----------------------------------
REGISTER_PRIVATE_FUNCTION( ConnectTracker );
DECLARE_FUNCTION_OPTIONAL_INARG( ConnectTracker, serverIP, "string", "Server IP", "''" );
DECLARE_FUNCTION_OPTIONAL_INARG( ConnectTracker, localIP, "string", "Local IP", "''" );
void ConnectTracker( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
REGISTER_PRIVATE_FUNCTION( connect_tracker );
DECLARE_FUNCTION_OPTIONAL_INARG( connect_tracker, serverIP, "string", "Server IP", "''" );
DECLARE_FUNCTION_OPTIONAL_INARG( connect_tracker, localIP, "string", "Local IP", "''" );
void connect_tracker( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
{
if( nrhs == 0 )
VA_EXCEPT2( INVALID_PARAMETER, "Missing VA connection handle in ConnectTracker" );
......@@ -571,8 +571,8 @@ void ConnectTracker( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]
+ "' and local adress '" + sLocalAdress + "'" );
}
REGISTER_PRIVATE_FUNCTION( DisconnectTracker );
void DisconnectTracker( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
REGISTER_PRIVATE_FUNCTION( disconnect_tracker );
void disconnect_tracker( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
{
REQUIRE_INPUT_ARGS( 1 );
......@@ -585,9 +585,9 @@ void DisconnectTracker( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs
pConnection->pVAMatlabTracker->Reset();
}
REGISTER_PRIVATE_FUNCTION( IsTrackerConnected );
DECLARE_FUNCTION_OUTARG( IsTrackerConnected, connected, "logical scalar", "True if a tracker connection is established" );
void IsTrackerConnected( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
REGISTER_PRIVATE_FUNCTION( get_tracker_connected );
DECLARE_FUNCTION_OUTARG( get_tracker_connected, connected, "logical scalar", "True if a tracker connection is established" );
void get_tracker_connected( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
{
REQUIRE_INPUT_ARGS( 1 );
......@@ -615,9 +615,9 @@ void IsTrackerConnected( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prh
// Tracked listener
REGISTER_PRIVATE_FUNCTION( SetTrackedListener );
DECLARE_FUNCTION_REQUIRED_INARG( SetTrackedListener, soundreceiverID, "scalar number", "Tracked listener ID" );
void SetTrackedListener( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
REGISTER_PRIVATE_FUNCTION( set_tracked_sound_receiver );
DECLARE_FUNCTION_REQUIRED_INARG( set_tracked_sound_receiver, soundreceiverID, "scalar number", "Tracked listener ID" );
void set_tracked_sound_receiver( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
{
REQUIRE_INPUT_ARGS( 2 );
......@@ -628,9 +628,9 @@ void SetTrackedListener( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prh
pConnection->pVAMatlabTracker->iTrackedSoundReceiverID = isoundreceiverID;
}
REGISTER_PRIVATE_FUNCTION( SetTrackedListenerRigidBodyIndex );
DECLARE_FUNCTION_REQUIRED_INARG( SetTrackedListenerRigidBodyIndex, index, "scalar number", "Tracked listener rigid body index (default is 1)" );
void SetTrackedListenerRigidBodyIndex( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
REGISTER_PRIVATE_FUNCTION( set_tracked_sound_receiver_rigid_body_index );
DECLARE_FUNCTION_REQUIRED_INARG( set_tracked_sound_receiver_rigid_body_index, index, "scalar number", "Tracked listener rigid body index (default is 1)" );
void set_tracked_sound_receiver_rigid_body_index( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
{
REQUIRE_INPUT_ARGS( 2 );
......@@ -642,9 +642,9 @@ void SetTrackedListenerRigidBodyIndex( int nlhs, mxArray *plhs[], int nrhs, cons
pConnection->pVAMatlabTracker->iTrackedListenerRigidBodyIndex = iTrackedRigidBodyIndex;
}
REGISTER_PRIVATE_FUNCTION( SetTrackedListenerRigidBodyTranslation );
DECLARE_FUNCTION_REQUIRED_INARG( SetTrackedListenerRigidBodyTranslation, offset, "real 1x3", "Tracked listener rigid body position offset" );
void SetTrackedListenerRigidBodyTranslation( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
REGISTER_PRIVATE_FUNCTION( set_tracked_sound_receiver_rigid_body_translation );
DECLARE_FUNCTION_REQUIRED_INARG( set_tracked_sound_receiver_rigid_body_translation, offset, "real 1x3", "Tracked listener rigid body position offset" );
void set_tracked_sound_receiver_rigid_body_translation( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
{
REQUIRE_INPUT_ARGS( 2 );
......@@ -654,12 +654,12 @@ void SetTrackedListenerRigidBodyTranslation( int nlhs, mxArray *plhs[], int nrhs
VAVec3 v3Pos;
matlabGetRealVector3( prhs[ 1 ], "offset", v3Pos );
pConnection->pVAMatlabTracker->vTrackedListenerTranslation = VistaVector3D( v3Pos.x, v3Pos.y, v3Pos.z );
pConnection->pVAMatlabTracker->vTrackedSoundReceiverTranslation = VistaVector3D( v3Pos.x, v3Pos.y, v3Pos.z );
}
REGISTER_PRIVATE_FUNCTION( SetTrackedListenerRigidBodyRotation );
DECLARE_FUNCTION_REQUIRED_INARG( SetTrackedListenerRigidBodyRotation, rotation, "real 1x4", "Tracked listener rigid body rotation (quaternion values with w (real), i, j, k)" );
void SetTrackedListenerRigidBodyRotation( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
REGISTER_PRIVATE_FUNCTION( set_tracked_sound_receiver_rigid_body_rotation );
DECLARE_FUNCTION_REQUIRED_INARG( set_tracked_sound_receiver_rigid_body_rotation, rotation, "real 1x4", "Tracked listener rigid body rotation (quaternion values with w (real), i, j, k)" );
void set_tracked_sound_receiver_rigid_body_rotation( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
{
REQUIRE_INPUT_ARGS( 2 );
......@@ -674,9 +674,9 @@ void SetTrackedListenerRigidBodyRotation( int nlhs, mxArray *plhs[], int nrhs, c
// Tracked real-world listener
REGISTER_PRIVATE_FUNCTION( SetTrackedRealWorldListener );
DECLARE_FUNCTION_REQUIRED_INARG( SetTrackedRealWorldListener, realworldsoundreceiverID, "scalar number", "Tracked real-world sound receiver ID" );
void SetTrackedRealWorldListener( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
REGISTER_PRIVATE_FUNCTION( set_tracked_real_world_sound_receiver );
DECLARE_FUNCTION_REQUIRED_INARG( set_tracked_real_world_sound_receiver, realworldsoundreceiverID, "scalar number", "Tracked real-world sound receiver ID" );
void set_tracked_real_world_sound_receiver( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
{
REQUIRE_INPUT_ARGS( 2 );
......@@ -688,9 +688,9 @@ void SetTrackedRealWorldListener( int nlhs, mxArray *plhs[], int nrhs, const mxA
pConnection->pVAMatlabTracker->iTrackedRealWorldSoundReceiverID = iRealWorldsoundreceiverID;
}
REGISTER_PRIVATE_FUNCTION( SetTrackedRealWorldListenerRigidBodyIndex );
DECLARE_FUNCTION_REQUIRED_INARG( SetTrackedRealWorldListenerRigidBodyIndex, index, "scalar number", "Tracked real-world sound receiver rigid body index (default is 1)" );
void SetTrackedRealWorldListenerRigidBodyIndex( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
REGISTER_PRIVATE_FUNCTION( set_tracked_real_world_listener_rigid_body_index );
DECLARE_FUNCTION_REQUIRED_INARG( set_tracked_real_world_listener_rigid_body_index, index, "scalar number", "Tracked real-world sound receiver rigid body index (default is 1)" );
void set_tracked_real_world_listener_rigid_body_index( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
{
REQUIRE_INPUT_ARGS( 2 );
......@@ -702,9 +702,9 @@ void SetTrackedRealWorldListenerRigidBodyIndex( int nlhs, mxArray *plhs[], int n
pConnection->pVAMatlabTracker->iTrackedRealWorldListenerRigidBodyIndex = iTrackedRigidBodyIndex;
}
REGISTER_PRIVATE_FUNCTION( SetTrackedRealWorldListenerRigidBodyTranslation );
DECLARE_FUNCTION_REQUIRED_INARG( SetTrackedRealWorldListenerRigidBodyTranslation, offset, "real 1x3", "Tracked real-world listener rigid body position offset" );
void SetTrackedRealWorldListenerRigidBodyTranslation( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
REGISTER_PRIVATE_FUNCTION( set_tracked_real_world_listener_rigid_body_translation );
DECLARE_FUNCTION_REQUIRED_INARG( set_tracked_real_world_listener_rigid_body_translation, offset, "real 1x3", "Tracked real-world listener rigid body position offset" );
void set_tracked_real_world_listener_rigid_body_translation( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
{
REQUIRE_INPUT_ARGS( 2 );
......@@ -717,9 +717,9 @@ void SetTrackedRealWorldListenerRigidBodyTranslation( int nlhs, mxArray *plhs[],
pConnection->pVAMatlabTracker->vTrackedRealWorldListenerTranslation = VistaVector3D( v3Pos.x, v3Pos.y, v3Pos.z );
}
REGISTER_PRIVATE_FUNCTION( SetTrackedRealWorldListenerRigidBodyRotation );
DECLARE_FUNCTION_REQUIRED_INARG( SetTrackedRealWorldListenerRigidBodyRotation, rotation, "real 1x4", "Tracked real-world sound receiver rigid body rotation (quaternion values with w (real), i, j, k)" );
void SetTrackedRealWorldListenerRigidBodyRotation( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
REGISTER_PRIVATE_FUNCTION( set_tracked_real_world_listener_rigid_body_rotation );
DECLARE_FUNCTION_REQUIRED_INARG( set_tracked_real_world_listener_rigid_body_rotation, rotation, "real 1x4", "Tracked real-world sound receiver rigid body rotation (quaternion values with w (real), i, j, k)" );
void set_tracked_real_world_listener_rigid_body_rotation( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
{
REQUIRE_INPUT_ARGS( 2 );
......@@ -734,9 +734,9 @@ void SetTrackedRealWorldListenerRigidBodyRotation( int nlhs, mxArray *plhs[], in
// Tracked source
REGISTER_PRIVATE_FUNCTION( SetTrackedSource );
DECLARE_FUNCTION_REQUIRED_INARG( SetTrackedSource, sourceID, "scalar number", "Tracked source ID" );
void SetTrackedSource( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
REGISTER_PRIVATE_FUNCTION( set_tracked_sound_source );
DECLARE_FUNCTION_REQUIRED_INARG( set_tracked_sound_source, sourceID, "scalar number", "Tracked source ID" );
void set_tracked_sound_source( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
{
REQUIRE_INPUT_ARGS( 2 );
......@@ -748,9 +748,9 @@ void SetTrackedSource( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[
pConnection->pVAMatlabTracker->iTrackedSourceID = iSourceID;
}
REGISTER_PRIVATE_FUNCTION( SetTrackedSourceRigidBodyIndex );
DECLARE_FUNCTION_REQUIRED_INARG( SetTrackedSourceRigidBodyIndex, index, "scalar number", "Tracked source rigid body index (default is 1)" );
void SetTrackedSourceRigidBodyIndex( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
REGISTER_PRIVATE_FUNCTION( set_tracked_sound_source_rigid_body_index );
DECLARE_FUNCTION_REQUIRED_INARG( set_tracked_sound_source_rigid_body_index, index, "scalar number", "Tracked source rigid body index (default is 1)" );
void set_tracked_sound_source_rigid_body_index( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
{
REQUIRE_INPUT_ARGS( 2 );
......@@ -762,9 +762,9 @@ void SetTrackedSourceRigidBodyIndex( int nlhs, mxArray *plhs[], int nrhs, const
pConnection->pVAMatlabTracker->iTrackedSourceRigidBodyIndex = iTrackedRigidBodyIndex;
}
REGISTER_PRIVATE_FUNCTION( SetTrackedSourceRigidBodyTranslation );
DECLARE_FUNCTION_REQUIRED_INARG( SetTrackedSourceRigidBodyTranslation, offset, "real 1x3", "Tracked source rigid body position offset" );
void SetTrackedSourceRigidBodyTranslation( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
REGISTER_PRIVATE_FUNCTION( set_tracked_sound_source_rigid_body_translation );
DECLARE_FUNCTION_REQUIRED_INARG( set_tracked_sound_source_rigid_body_translation, offset, "real 1x3", "Tracked source rigid body position offset" );
void set_tracked_sound_source_rigid_body_translation( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
{
REQUIRE_INPUT_ARGS( 2 );
......@@ -799,9 +799,9 @@ void set_tracked_sound_source_rigid_body_rotation( int nlhs, mxArray *plhs[], in
* | | *
* +----------------------------------------------------------+ */
REGISTER_PRIVATE_FUNCTION( getServerState );
REGISTER_PRIVATE_FUNCTION( get_server_state );
void getServerState( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
void get_server_state( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
REQUIRE_INPUT_ARGS( 1 );
......@@ -848,9 +848,9 @@ void reset( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
* | | *
* +----------------------------------------------------------+ */
REGISTER_PUBLIC_FUNCTION( enumerateModules, "Enumerates internal modules of the VA server", "" );
DECLARE_FUNCTION_OUTARG( enumerateModules, modules, "cell-array of struct-1x1", "Module informations (names, descriptions, etc.)" );
void enumerateModules( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
REGISTER_PUBLIC_FUNCTION( get_modules, "Enumerates internal modules of the VA server", "" );
DECLARE_FUNCTION_OUTARG( get_modules, modules, "cell-array of struct-1x1", "Module informations (names, descriptions, etc.)" );
void get_modules( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
{
REQUIRE_INPUT_ARGS( 1 );
......@@ -877,11 +877,11 @@ void enumerateModules( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[
// ------------------------------------------------------------
REGISTER_PUBLIC_FUNCTION( callModule, "Calls an internal module of the VA server", "" );
DECLARE_FUNCTION_REQUIRED_INARG( callModule, module, "string", "Module name" );
DECLARE_FUNCTION_REQUIRED_INARG( callModule, mstruct, "struct", "Matlab structure with key-value content" );
DECLARE_FUNCTION_OUTARG( callModule, ret, "struct-1x1", "Struct containing the return values" );
void callModule( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
REGISTER_PUBLIC_FUNCTION( call_module, "Calls an internal module of the VA server", "" );
DECLARE_FUNCTION_REQUIRED_INARG( call_module, module, "string", "Module name" );
DECLARE_FUNCTION_REQUIRED_INARG( call_module, mstruct, "struct", "Matlab structure with key-value content" );
DECLARE_FUNCTION_OUTARG( call_module, ret, "struct-1x1", "Struct containing the return values" );
void call_module( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
{
if( nrhs != 3 )
VA_EXCEPT2( INVALID_PARAMETER, "This function takes three arguments (connection, module, params)" );
......@@ -912,10 +912,10 @@ void callModule( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
return;
}
REGISTER_PUBLIC_FUNCTION( addSearchPath, "adds a search path at core side", "" );
DECLARE_FUNCTION_REQUIRED_INARG( addSearchPath, path, "string", "Relative or absolute path" );
DECLARE_FUNCTION_OUTARG( addSearchPath, valid, "logical scalar", "True, if path at core side valid" );
void addSearchPath( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
REGISTER_PUBLIC_FUNCTION( add_search_path, "adds a search path at core side", "" );
DECLARE_FUNCTION_REQUIRED_INARG( add_search_path, path, "string", "Relative or absolute path" );
DECLARE_FUNCTION_OUTARG( add_search_path, valid, "logical scalar", "True, if path at core side valid" );
void add_search_path( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
{
REQUIRE_INPUT_ARGS( 2 );
......@@ -977,11 +977,11 @@ void delete_directivity( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prh
// ------------------------------------------------------------
REGISTER_PUBLIC_FUNCTION( getDirectivityInfo, "Returns information on a loaded directivity", "" );
DECLARE_FUNCTION_REQUIRED_INARG( getDirectivityInfo, directivityID, "integer-1x1", "Directivity ID" );
DECLARE_FUNCTION_OUTARG( getDirectivityInfo, info, "struct-1x1", "Information struct (name, filename, resolution, etc.)" );
REGISTER_PUBLIC_FUNCTION( get_directivity_info, "Returns information on a loaded directivity", "" );
DECLARE_FUNCTION_REQUIRED_INARG( get_directivity_info, directivityID, "integer-1x1", "Directivity ID" );
DECLARE_FUNCTION_OUTARG( get_directivity_info, info, "struct-1x1", "Information struct (name, filename, resolution, etc.)" );
void getDirectivityInfo( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
void get_directivity_info( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
REQUIRE_INPUT_ARGS( 2 );
......@@ -995,10 +995,10 @@ void getDirectivityInfo( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prh
// ------------------------------------------------------------
REGISTER_PUBLIC_FUNCTION( getDirectivityInfos, "Returns information on all loaded directivities", "" );
DECLARE_FUNCTION_OUTARG( getDirectivityInfos, info, "cell-array of struct-1x1", "Information structs (name, filename, resolution, etc.)" );
REGISTER_PUBLIC_FUNCTION( get_directivity_infos, "Returns information on all loaded directivities", "" );
DECLARE_FUNCTION_OUTARG( get_directivity_infos, info, "cell-array of struct-1x1", "Information structs (name, filename, resolution, etc.)" );
void getDirectivityInfos( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
void get_directivity_infos( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
REQUIRE_INPUT_ARGS( 1 );
......@@ -1101,11 +1101,11 @@ void create_signal_source_engine( int nlhs, mxArray *plhs[], int nrhs, const mxA
// ------------------------------------------------------------
REGISTER_PUBLIC_FUNCTION( createSequencerSignalSource, "Creates a sequencer signal source", "" );
DECLARE_FUNCTION_OPTIONAL_INARG( createSequencerSignalSource, name, "string", "Displayed name", "''" );
DECLARE_FUNCTION_OUTARG( createSequencerSignalSource, signalSourceID, "string", "Signal source ID" );
REGISTER_PUBLIC_FUNCTION( create_signal_source_sequencer, "Creates a sequencer signal source", "" );
DECLARE_FUNCTION_OPTIONAL_INARG( create_signal_source_sequencer, name, "string", "Displayed name", "''" );
DECLARE_FUNCTION_OUTARG( create_signal_source_sequencer, signalSourceID, "string", "Signal source ID" );
void createSequencerSignalSource( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
void create_signal_source_sequencer( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
REQUIRE_INPUT_ARGS( 2 );
......@@ -1120,13 +1120,13 @@ void createSequencerSignalSource( int nlhs, mxArray *plhs[], int nrhs, const mxA
// ------------------------------------------------------------
REGISTER_PUBLIC_FUNCTION( createNetworkStreamSignalSource, "Creates a signal source which receives audio samples via network", "" );
DECLARE_FUNCTION_REQUIRED_INARG( createNetworkStreamSignalSource, address, "string", "Hostname or IP address of the audio streaming server" );
DECLARE_FUNCTION_REQUIRED_INARG( createNetworkStreamSignalSource, port, "integer-1x1", "Server port" );
DECLARE_FUNCTION_OPTIONAL_INARG( createNetworkStreamSignalSource, name, "string", "Displayed name", "''" );
DECLARE_FUNCTION_OUTARG( createNetworkStreamSignalSource, signalSourceID, "string", "Signal source ID" );
REGISTER_PUBLIC_FUNCTION( create_signal_source_network_stream, "Creates a signal source which receives audio samples via network", "" );
DECLARE_FUNCTION_REQUIRED_INARG( create_signal_source_network_stream, address, "string", "Hostname or IP address of the audio streaming server" );
DECLARE_FUNCTION_REQUIRED_INARG( create_signal_source_network_stream, port, "integer-1x1", "Server port" );
DECLARE_FUNCTION_OPTIONAL_INARG( create_signal_source_network_stream, name, "string", "Displayed name", "''" );
DECLARE_FUNCTION_OUTARG( create_signal_source_network_stream, signalSourceID, "string", "Signal source ID" );
void createNetworkStreamSignalSource( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
void create_signal_source_network_stream( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
REQUIRE_INPUT_ARGS( 4 );
......@@ -1143,11 +1143,11 @@ void createNetworkStreamSignalSource( int nlhs, mxArray *plhs[], int nrhs, const
// ------------------------------------------------------------
REGISTER_PUBLIC_FUNCTION( deleteSignalSource, "Deletes a signal source", "A signal source can only be deleted, if it is not in use." );
DECLARE_FUNCTION_REQUIRED_INARG( deleteSignalSource, signalSourceID, "string", "Signal source ID" );
DECLARE_FUNCTION_OUTARG( deleteSignalSource, result, "logical-1x1", "Signal source deleted?" );
REGISTER_PUBLIC_FUNCTION( delete_signal_source, "Deletes a signal source", "A signal source can only be deleted, if it is not in use." );
DECLARE_FUNCTION_REQUIRED_INARG( delete_signal_source, signalSourceID, "string", "Signal source ID" );
DECLARE_FUNCTION_OUTARG( delete_signal_source, result, "logical-1x1", "Signal source deleted?" );
void deleteSignalSource( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
void delete_signal_source( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
REQUIRE_INPUT_ARGS( 2 );
......@@ -1162,11 +1162,11 @@ void deleteSignalSource( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prh
// ------------------------------------------------------------
REGISTER_PUBLIC_FUNCTION( getSignalSourceInfo, "Returns information on signal source", "" );
DECLARE_FUNCTION_REQUIRED_INARG( getSignalSourceInfo, signalSourceID, "string", "Signal source ID" );
DECLARE_FUNCTION_OUTARG( getSignalSourceInfo, info, "struct-1x1", "Information structs (id, name, type, etc.)" );
REGISTER_PUBLIC_FUNCTION( get_signal_source_info, "Returns information on signal source", "" );
DECLARE_FUNCTION_REQUIRED_INARG( get_signal_source_info, signalSourceID, "string", "Signal source ID" );
DECLARE_FUNCTION_OUTARG( get_signal_source_info, info, "struct-1x1", "Information structs (id, name, type, etc.)" );
void getSignalSourceInfo( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
void get_signal_source_info( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
REQUIRE_INPUT_ARGS( 2 );
......@@ -1180,10 +1180,10 @@ void getSignalSourceInfo( int nlhs, mxArray *plhs[], int nrhs, const mxArray *pr
// ------------------------------------------------------------
REGISTER_PUBLIC_FUNCTION( getSignalSourceInfos, "Returns information on all existing signal sources", "" );
DECLARE_FUNCTION_OUTARG( getSignalSourceInfos, info, "cell-array of struct-1x1", "Information structs (id, name, type, etc.)" );
REGISTER_PUBLIC_FUNCTION( get_signal_source_infos, "Returns information on all existing signal sources", "" );
DECLARE_FUNCTION_OUTARG( get_signal_source_infos, info, "cell-array of struct-1x1", "Information structs (id, name, type, etc.)" );
void getSignalSourceInfos( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
void get_signal_source_infos( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
REQUIRE_INPUT_ARGS( 1 );
......@@ -1378,10 +1378,10 @@ void unlock_update( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
* | | *
* +----------------------------------------------------------+ */
REGISTER_PUBLIC_FUNCTION( getSoundSourceIDs, "Returns the IDs of all sound sources in the scene", "" );
DECLARE_FUNCTION_OUTARG( getSoundSourceIDs, ids, "integer-1xN", "Vector containing the IDs" );
REGISTER_PUBLIC_FUNCTION( get_sound_source_ids, "Returns the IDs of all sound sources in the scene", "" );
DECLARE_FUNCTION_OUTARG( get_sound_source_ids, ids, "integer-1xN", "Vector containing the IDs" );
void getSoundSourceIDs( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
void get_sound_source_ids( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
REQUIRE_INPUT_ARGS( 1 );
......@@ -1469,11 +1469,11 @@ void get_sound_source_name( int nlhs, mxArray *plhs[], int nrhs, const mxArray *
// ------------------------------------------------------------
REGISTER_PUBLIC_FUNCTION( setSoundSourceName, "Name", "" );
DECLARE_FUNCTION_REQUIRED_INARG( setSoundSourceName, soundSourceID, "integer-1x1", "Sound source ID" );
DECLARE_FUNCTION_REQUIRED_INARG( setSoundSourceName, name, "string", "Displayed name" );
REGISTER_PUBLIC_FUNCTION( get_sound_source_name, "Name", "" );
DECLARE_FUNCTION_REQUIRED_INARG( get_sound_source_name, soundSourceID, "integer-1x1", "Sound source ID" );
DECLARE_FUNCTION_REQUIRED_INARG( get_sound_source_name, name, "string", "Displayed name" );
void setSoundSourceName( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
void get_sound_source_name( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
REQUIRE_INPUT_ARGS( 3 );
......@@ -1488,11 +1488,11 @@ void setSoundSourceName( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prh
// ------------------------------------------------------------
REGISTER_PUBLIC_FUNCTION( getSoundSourceSignalSource, "Returns for a sound source, the attached signal source", "Note: This function returns an empty string, if no signal source is attached." );
DECLARE_FUNCTION_REQUIRED_INARG( getSoundSourceSignalSource, soundSourceID, "integer-1x1", "Sound source ID" );
DECLARE_FUNCTION_OUTARG( getSoundSourceSignalSource, signalSourceID, "string", "Signal source ID" );
REGISTER_PUBLIC_FUNCTION( get_sound_source_signal_source, "Returns for a sound source, the attached signal source", "Note: This function returns an empty string, if no signal source is attached." );
DECLARE_FUNCTION_REQUIRED_INARG( get_sound_source_signal_source, soundSourceID, "integer-1x1", "Sound source ID" );
DECLARE_FUNCTION_OUTARG( get_sound_source_signal_source, signalSourceID, "string", "Signal source ID" );
void getSoundSourceSignalSource( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
void get_sound_source_signal_source( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
REQUIRE_INPUT_ARGS( 2 );
......@@ -1507,12 +1507,12 @@ void getSoundSourceSignalSource( int nlhs, mxArray *plhs[], int nrhs, const mxAr
// ------------------------------------------------------------
REGISTER_PUBLIC_FUNCTION( setSoundSourceSignalSource, "Sets the signal source of a sound source", "Note: Passing an empty string removes the signal source" );
DECLARE_FUNCTION_REQUIRED_INARG( setSoundSourceSignalSource, soundSourceID, "integer-1x1", "Sound source ID" );
DECLARE_FUNCTION_REQUIRED_INARG( setSoundSourceSignalSource, signalSourceID, "string", "Signal Source ID" );
void setSoundSourceSignalSource( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
REGISTER_PUBLIC_FUNCTION( set_sound_source_signal_source, "Sets the signal source of a sound source", "Note: Passing an empty string removes the signal source" );
DECLARE_FUNCTION_REQUIRED_INARG( set_sound_source_signal_source, soundSourceID, "integer-1x1", "Sound source ID" );
DECLARE_FUNCTION_REQUIRED_INARG( set_sound_source_signal_source, signalSourceID, "string", "Signal Source ID" );
void set_sound_source_signal_source( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
{
REQUIRE_INPUT_ARGS( 3 );
ConnectionHandle hHandle = GetConnectionHandle( prhs[ 0 ] );
......@@ -1526,9 +1526,9 @@ void setSoundSourceSignalSource( int nlhs, mxArray *plhs[], int nrhs, const mxAr
// ------------------------------------------------------------
REGISTER_PUBLIC_FUNCTION( removeSoundSourceSignalSource, "Removes the signal source of a sound source", "Note: will note remove the signal source from manager" );
DECLARE_FUNCTION_REQUIRED_INARG( removeSoundSourceSignalSource, ID, "integer-1x1", "Sound source identifier" );
void removeSoundSourceSignalSource( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
REGISTER_PUBLIC_FUNCTION( remove_sound_source_signal_source, "Removes the signal source of a sound source", "Note: will note remove the signal source from manager" );
DECLARE_FUNCTION_REQUIRED_INARG( remove_sound_source_signal_source, ID, "integer-1x1", "Sound source identifier" );
void remove_sound_source_signal_source( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
{
REQUIRE_INPUT_ARGS( 2 );
ConnectionHandle hHandle = GetConnectionHandle( prhs[ 0 ] );
......@@ -1539,11 +1539,11 @@ void removeSoundSourceSignalSource( int nlhs, mxArray *plhs[], int nrhs, const m
// ------------------------------------------------------------
REGISTER_PUBLIC_FUNCTION( getSoundSourceAuralizationMode, "Returns the auralization mode of a sound source", "" );
DECLARE_FUNCTION_REQUIRED_INARG( getSoundSourceAuralizationMode, soundSourceID, "integer-1x1", "Sound source ID" );
DECLARE_FUNCTION_OUTARG( getSoundSourceAuralizationMode, auralizationMode, "string", "Auralization mode" );
REGISTER_PUBLIC_FUNCTION( get_sound_source_auralization_mode, "Returns the auralization mode of a sound source", "" );
DECLARE_FUNCTION_REQUIRED_INARG( get_sound_source_auralization_mode, soundSourceID, "integer-1x1", "Sound source ID" );
DECLARE_FUNCTION_OUTARG( get_sound_source_auralization_mode, auralizationMode, "string", "Auralization mode" );
void getSoundSourceAuralizationMode( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
void get_sound_source_auralization_mode( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
REQUIRE_INPUT_ARGS( 2 );
......@@ -1557,11 +1557,11 @@ void getSoundSourceAuralizationMode( int nlhs, mxArray *plhs[], int nrhs, const
// ------------------------------------------------------------
REGISTER_PUBLIC_FUNCTION( setSoundSourceAuralizationMode, "Returns the auralization mode of a sound source", "" );
DECLARE_FUNCTION_REQUIRED_INARG( setSoundSourceAuralizationMode, soundSourceID, "integer-1x1", "Sound source ID" );
DECLARE_FUNCTION_REQUIRED_INARG( setSoundSourceAuralizationMode, auralizationMode, "string", "Auralization mode" );
REGISTER_PUBLIC_FUNCTION( set_sound_source_auralization_mode, "Returns the auralization mode of a sound source", "" );
DECLARE_FUNCTION_REQUIRED_INARG( set_sound_source_auralization_mode, soundSourceID, "integer-1x1", "Sound source ID" );
DECLARE_FUNCTION_REQUIRED_INARG( set_sound_source_auralization_mode, auralizationMode, "string", "Auralization mode" );
void setSoundSourceAuralizationMode( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
void set_sound_source_auralization_mode( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
REQUIRE_INPUT_ARGS( 3 );
......@@ -1580,11 +1580,11 @@ void setSoundSourceAuralizationMode( int nlhs, mxArray *plhs[], int nrhs, const
// ------------------------------------------------------------
REGISTER_PUBLIC_FUNCTION( getSoundSourceParameters, "Returns the current sound source parameters", "" );
DECLARE_FUNCTION_REQUIRED_INARG( getSoundSourceParameters, ID, "integer-1x1", "Sound source identifier" );
DECLARE_FUNCTION_REQUIRED_INARG( getSoundSourceParameters, args, "mstruct", "Requested parameters" );
DECLARE_FUNCTION_OUTARG( getSoundSourceParameters, params, "mstruct", "Parameters" );
void getSoundSourceParameters( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
REGISTER_PUBLIC_FUNCTION( get_sound_source_parameters, "Returns the current sound source parameters", "" );
DECLARE_FUNCTION_REQUIRED_INARG( get_sound_source_parameters, ID, "integer-1x1", "Sound source identifier" );
DECLARE_FUNCTION_REQUIRED_INARG( get_sound_source_parameters, args, "mstruct", "Requested parameters" );
DECLARE_FUNCTION_OUTARG( get_sound_source_parameters, params, "mstruct", "Parameters" );
void get_sound_source_parameters( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
{
REQUIRE_INPUT_ARGS( 3 );
......@@ -1599,10 +1599,10 @@ void getSoundSourceParameters( int nlhs, mxArray *plhs[], int nrhs, const mxArra
// ------------------------------------------------------------
REGISTER_PUBLIC_FUNCTION( setSoundSourceParameters, "Sets sound source parameters", "" );
DECLARE_FUNCTION_REQUIRED_INARG( setSoundSourceParameters, ID, "integer-1x1", "Sound source identifier" );
DECLARE_FUNCTION_REQUIRED_INARG( setSoundSourceParameters, params, "mstruct", "Parameters" );
void setSoundSourceParameters( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
REGISTER_PUBLIC_FUNCTION( set_sound_source_parameters, "Sets sound source parameters", "" );
DECLARE_FUNCTION_REQUIRED_INARG( set_sound_source_parameters, ID, "integer-1x1", "Sound source identifier" );
DECLARE_FUNCTION_REQUIRED_INARG( set_sound_source_parameters, params, "mstruct", "Parameters" );
void set_sound_source_parameters( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
{
REQUIRE_INPUT_ARGS( 3 );
......@@ -1616,11 +1616,11 @@ void setSoundSourceParameters( int nlhs, mxArray *plhs[], int nrhs, const mxArra
// ------------------------------------------------------------
REGISTER_PUBLIC_FUNCTION( getSoundSourceDirectivity, "Returns the directivity of a sound source", "Note: If the sound source is not assigned a directivity, the methods returns -1." );
DECLARE_FUNCTION_REQUIRED_INARG( getSoundSourceDirectivity, soundSourceID, "integer-1x1", "Sound source ID" );
DECLARE_FUNCTION_OUTARG( getSoundSourceDirectivity, directivityID, "integer-1x1", "Directivity ID" );
REGISTER_PUBLIC_FUNCTION( get_sound_source_directivity, "Returns the directivity of a sound source", "Note: If the sound source is not assigned a directivity, the methods returns -1." );
DECLARE_FUNCTION_REQUIRED_INARG( get_sound_source_directivity, soundSourceID, "integer-1x1", "Sound source ID" );
DECLARE_FUNCTION_OUTARG( get_sound_source_directivity, directivityID, "integer-1x1", "Directivity ID" );
void getSoundSourceDirectivity( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
void get_sound_source_directivity( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
REQUIRE_INPUT_ARGS( 2 );
......@@ -1635,11 +1635,11 @@ void getSoundSourceDirectivity( int nlhs, mxArray *plhs[], int nrhs, const mxArr
// ------------------------------------------------------------
REGISTER_PUBLIC_FUNCTION( setSoundSourceDirectivity, "Sets the directivity of a sound source", "Note: In order to set no directivity (omnidirectional source), you can pass -1 to the method." );
DECLARE_FUNCTION_REQUIRED_INARG( setSoundSourceDirectivity, soundSourceID, "integer-1x1", "Sound source ID" );
DECLARE_FUNCTION_REQUIRED_INARG( setSoundSourceDirectivity, directivityID, "integer-1x1", "Directivity ID" );
REGISTER_PUBLIC_FUNCTION( set_sound_source_directivity, "Sets the directivity of a sound source", "Note: In order to set no directivity (omnidirectional source), you can pass -1 to the method." );
DECLARE_FUNCTION_REQUIRED_INARG( set_sound_source_directivity, soundSourceID, "integer-1x1", "Sound source ID" );
DECLARE_FUNCTION_REQUIRED_INARG( set_sound_source_directivity, directivityID, "integer-1x1", "Directivity ID" );
void setSoundSourceDirectivity( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
void set_sound_source_directivity( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
REQUIRE_INPUT_ARGS( 3 );
......@@ -1731,11 +1731,11 @@ void set_sound_source_muted( int nlhs, mxArray *plhs[], int nrhs, const mxArray
// ------------------------------------------------------------
REGISTER_PUBLIC_FUNCTION( getSoundSourcePosition, "Returns the position of a sound source", "" );
DECLARE_FUNCTION_REQUIRED_INARG( getSoundSourcePosition, soundSourceID, "integer-1x1", "Sound source ID" );
DECLARE_FUNCTION_OUTARG( getSoundSourcePosition, pos, "double-3", "Position vector [x,y,z] (unit: meters)" );
REGISTER_PUBLIC_FUNCTION( get_sound_source_position, "Returns the position of a sound source", "" );
DECLARE_FUNCTION_REQUIRED_INARG( get_sound_source_position, soundSourceID, "integer-1x1", "Sound source ID" );
DECLARE_FUNCTION_OUTARG( get_sound_source_position, pos, "double-3", "Position vector [x,y,z] (unit: meters)" );
void getSoundSourcePosition( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
void get_sound_source_position( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
REQUIRE_INPUT_ARGS( 2 );
......@@ -1832,12 +1832,12 @@ void set_sound_source_position( int nlhs, mxArray *plhs[], int nrhs, const mxArr
// ------------------------------------------------------------
REGISTER_PUBLIC_FUNCTION( setSoundSourceOrientationYPR, "Sets the orientation of a sound source (in yaw-pitch-roll angles)", "" );
DECLARE_FUNCTION_REQUIRED_INARG( setSoundSourceOrientationYPR, soundSourceID, "integer-1x1", "Sound source ID" );
DECLARE_FUNCTION_REQUIRED_INARG( setSoundSourceOrientationYPR, orient, "double-4", "Rotation quaterion [w,x,y,z]" );
void setSoundSourceOrientationYPR( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
REGISTER_PUBLIC_FUNCTION( set_sound_source_orientation, "Sets the orientation of a sound source", "" );
DECLARE_FUNCTION_REQUIRED_INARG( set_sound_source_orientation, soundSourceID, "integer-1x1", "Sound source ID" );
DECLARE_FUNCTION_REQUIRED_INARG( set_sound_source_orientation, orient, "double-4", "Rotation quaterion [w,x,y,z]" );
void set_sound_source_orientation( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
{
REQUIRE_INPUT_ARGS( 3 );
ConnectionHandle hHandle = GetConnectionHandle( prhs[ 0 ] );
......@@ -1852,12 +1852,12 @@ void setSoundSourceOrientationYPR( int nlhs, mxArray *plhs[], int nrhs, const mx
// ------------------------------------------------------------
REGISTER_PUBLIC_FUNCTION( setSoundSourceOrientationVU, "Sets the orientation of a sound source (as view- and up-vector)", "Note: The view and up vector must be an orthonormal pair of vectors." );
DECLARE_FUNCTION_REQUIRED_INARG( setSoundSourceOrientationVU, soundSourceID, "integer-1x1", "Sound source ID" );
DECLARE_FUNCTION_REQUIRED_INARG( setSoundSourceOrientationVU, view, "double-3", "View vector" );
DECLARE_FUNCTION_REQUIRED_INARG( setSoundSourceOrientationVU, up, "double-3", "Up vector" );
REGISTER_PUBLIC_FUNCTION( set_sound_source_orientation_view_up, "Sets the orientation of a sound source (as view- and up-vector)", "Note: The view and up vector must be an orthonormal pair of vectors." );
DECLARE_FUNCTION_REQUIRED_INARG( set_sound_source_orientation_view_up, soundSourceID, "integer-1x1", "Sound source ID" );
DECLARE_FUNCTION_REQUIRED_INARG( set_sound_source_orientation_view_up, view, "double-3", "View vector" );
DECLARE_FUNCTION_REQUIRED_INARG( set_sound_source_orientation_view_up, up, "double-3", "Up vector" );
void setSoundSourceOrientationVU( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
void set_sound_source_orientation_view_up( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
REQUIRE_INPUT_ARGS( 4 );
......@@ -2038,11 +2038,11 @@ void set_sound_receiver_auralization_mode( int nlhs, mxArray *plhs[], int nrhs,
// ------------------------------------------------------------
REGISTER_PUBLIC_FUNCTION( getListenerParameters, "Returns the current listener parameters", "" );
DECLARE_FUNCTION_REQUIRED_INARG( getListenerParameters, ID, "integer-1x1", "Listener identifier" );
DECLARE_FUNCTION_REQUIRED_INARG( getListenerParameters, args, "mstruct", "Requested parameters" );
DECLARE_FUNCTION_OUTARG( getListenerParameters, params, "mstruct", "Parameters" );
void getListenerParameters( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
REGISTER_PUBLIC_FUNCTION( get_sound_receiver_parameters, "Returns the current listener parameters", "" );
DECLARE_FUNCTION_REQUIRED_INARG( get_sound_receiver_parameters, ID, "integer-1x1", "Listener identifier" );
DECLARE_FUNCTION_REQUIRED_INARG( get_sound_receiver_parameters, args, "mstruct", "Requested parameters" );
DECLARE_FUNCTION_OUTARG( get_sound_receiver_parameters, params, "mstruct", "Parameters" );
void get_sound_receiver_parameters( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
{
REQUIRE_INPUT_ARGS( 3 );
......@@ -2057,10 +2057,10 @@ void getListenerParameters( int nlhs, mxArray *plhs[], int nrhs, const mxArray *
// ------------------------------------------------------------
REGISTER_PUBLIC_FUNCTION( setListenerParameters, "Sets listener parameters", "" );
DECLARE_FUNCTION_REQUIRED_INARG( setListenerParameters, ID, "integer-1x1", "Listener identifier" );
DECLARE_FUNCTION_REQUIRED_INARG( setListenerParameters, params, "mstruct", "Parameters" );
void setListenerParameters( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
REGISTER_PUBLIC_FUNCTION( set_sound_receiver_parameters, "Sets listener parameters", "" );
DECLARE_FUNCTION_REQUIRED_INARG( set_sound_receiver_parameters, ID, "integer-1x1", "Listener identifier" );
DECLARE_FUNCTION_REQUIRED_INARG( set_sound_receiver_parameters, params, "mstruct", "Parameters" );
void set_sound_receiver_parameters( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
{
REQUIRE_INPUT_ARGS( 3 );
......@@ -2093,11 +2093,11 @@ void get_sound_receiver_directivity( int nlhs, mxArray *plhs[], int nrhs, const
// ------------------------------------------------------------
REGISTER_PUBLIC_FUNCTION( setListenerHRIRDataset, "Set the HRIR dataset of a listener", "Note: In order to set no HRIR dataset, you can pass -1 to the method. In this case the listener will be silent." );
DECLARE_FUNCTION_REQUIRED_INARG( setListenerHRIRDataset, soundreceiverID, "integer-1x1", "Sound receiver ID" );
DECLARE_FUNCTION_REQUIRED_INARG( setListenerHRIRDataset, directivityID, "integer-1x1", "HRIR dataset ID" );
REGISTER_PUBLIC_FUNCTION( set_sound_receiver_directivity, "Set the directivity of a listener", "Note: In order to set no HRIR dataset, you can pass -1 to the method. In this case the listener will be silent." );
DECLARE_FUNCTION_REQUIRED_INARG( set_sound_receiver_directivity, soundreceiverID, "integer-1x1", "Sound receiver ID" );
DECLARE_FUNCTION_REQUIRED_INARG( set_sound_receiver_directivity, directivityID, "integer-1x1", "HRIR dataset ID" );
void setListenerHRIRDataset( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {
void set_sound_receiver_directivity( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )