Starint API adaption

parent 91cf8f0d
......@@ -11,7 +11,7 @@ import va
va.connect() # localhost
va.add_search_path( current_exec_dir ) # add current working path to find any file lying around here
signal_source_id = va.create_audio_file_signal_source( "Bauer.wav" ) # Provide this file or any other file
signal_source_id = va.create_signal_source_buffer_from_file( "Bauer.wav" ) # Provide this file or modify file name and use your own
dir_id = va.load_directivity( "${DefaultDir}" )
......@@ -20,13 +20,13 @@ va.set_sound_source_signal_source( sound_source_id, signal_source_id )
va.set_directivity( sound_source_id, dir_id )
va.set_sound_source_position( sound_source_id, ( 1, 1.2, -1 ) ) # OpenGL axes convention, direction is lower front-right from listener pos (s.b.)
hrir_id = va.load_hrir( "${DefaultHRIR}" )
hrir_id = va.load_directivity( "${DefaultHRIR}" )
listener_id = va.create_listener( "PyListener" )
va.set_listener_hrir( listener_id, hrir_id )
va.set_listener_position( listener_id, ( 0, 1.7, 0 ) ) # Ear height at 1.7m
sound_receiver_id = va.create_sound_receiver( "PyListener" )
va.set_sound_receiver_hrir( sound_receiver_id, hrir_id )
va.set_sound_receiver_position( sound_receiver_id, ( 0, 1.7, 0 ) ) # Ear height at 1.7m
va.set_audio_file_signal_source_is_looping( signal_source_id, true )
va.set_audio_file_signal_source_play_state( signal_source_id, "play" )
va.set_signal_source_buffer_looping( signal_source_id, true )
va.set_signal_source_buffer_playback_action( signal_source_id, "play" )
va.disconnect()
......@@ -236,12 +236,12 @@ static PyObject* va_reset( PyObject*, PyObject* )
VAPY_CATCH_RETURN;
};
static PyObject* va_enumerate_modules( PyObject*, PyObject* )
static PyObject* va_get_modules( PyObject*, PyObject* )
{
VAPY_REQUIRE_CONN_TRY;
std::vector< CVAModuleInfo > voModuleInfos;
g_pVANetClient->GetCoreInstance()->EnumerateModules( voModuleInfos );
g_pVANetClient->GetCoreInstance()->GetModules( voModuleInfos );
PyObject* pModuleList = PyList_New( voModuleInfos.size() );
......
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