Commit e142126f authored by Philipp Schäfer's avatar Philipp Schäfer
Browse files

- Finished changing to new python parser method

parent 30621cd0
......@@ -23,184 +23,184 @@
static struct PyMethodDef va_methods[] =
{
{ "connect", ( PyCFunction ) connect, METH_FASTCALL, connect_doc },
{ "disconnect", ( PyCFunction ) disconnect, METH_FASTCALL, no_doc },
{ "is_connected", ( PyCFunction ) is_connected, METH_FASTCALL, no_doc },
{ "reset", ( PyCFunction ) reset, METH_FASTCALL, no_doc },
{ "get_version", ( PyCFunction ) get_version, METH_FASTCALL, no_doc },
{ "get_modules", ( PyCFunction ) get_modules, METH_FASTCALL, no_doc },
{ "call_module", ( PyCFunction ) call_module, METH_FASTCALL, no_doc },
{ "get_search_paths", ( PyCFunction ) get_search_paths, METH_FASTCALL, no_doc },
{ "add_search_path", ( PyCFunction ) add_search_path, METH_FASTCALL, no_doc },
{ "create_directivity_from_file", ( PyCFunction ) create_directivity_from_file, METH_FASTCALL, no_doc },
{ "delete_directivity", ( PyCFunction ) delete_directivity, METH_FASTCALL, no_doc },
{ "get_directivity_info", ( PyCFunction ) get_directivity_info, METH_FASTCALL, no_doc },
{ "get_directivity_infos", ( PyCFunction ) get_directivity_infos, METH_FASTCALL, no_doc },
{ "create_signal_source_buffer_from_file", (PyCFunction)create_signal_source_buffer_from_file, METH_FASTCALL, no_doc },
{ "create_signal_source_prototype_from_parameters", (PyCFunction)create_signal_source_prototype_from_parameters, METH_FASTCALL, no_doc },
{ "create_signal_source_text_to_speech", ( PyCFunction ) create_signal_source_text_to_speech, METH_FASTCALL, no_doc },
{ "create_signal_source_sequencer", ( PyCFunction ) create_signal_source_sequencer, METH_FASTCALL, no_doc },
{ "create_signal_source_network_stream", ( PyCFunction ) create_signal_source_network_stream, METH_FASTCALL, no_doc },
{ "create_signal_source_engine", ( PyCFunction ) create_signal_source_engine, METH_FASTCALL, no_doc },
{ "create_signal_source_machine", ( PyCFunction ) create_signal_source_machine, METH_FASTCALL, no_doc },
{ "delete_signal_source", ( PyCFunction ) delete_signal_source, METH_FASTCALL, no_doc },
{ "get_signal_source_info", ( PyCFunction ) get_signal_source_info, METH_FASTCALL, no_doc },
{ "get_signal_source_infos", ( PyCFunction ) get_signal_source_infos, METH_FASTCALL, no_doc },
{ "get_signal_source_buffer_playback_state", ( PyCFunction ) get_signal_source_buffer_playback_state, METH_FASTCALL, no_doc },
{ "get_signal_source_buffer_playback_state_str", ( PyCFunction ) get_signal_source_buffer_playback_state_str, METH_FASTCALL, no_doc },
{ "set_signal_source_buffer_playback_action", ( PyCFunction ) set_signal_source_buffer_playback_action, METH_FASTCALL, no_doc },
{ "set_signal_source_buffer_playback_action_str", ( PyCFunction ) set_signal_source_buffer_playback_action_str, METH_FASTCALL, no_doc },
{ "set_signal_source_buffer_playback_position", ( PyCFunction ) set_signal_source_buffer_playback_position, METH_FASTCALL, no_doc },
{ "get_signal_source_buffer_looping", ( PyCFunction ) get_signal_source_buffer_looping, METH_FASTCALL, no_doc },
{ "set_signal_source_buffer_looping", ( PyCFunction ) set_signal_source_buffer_looping, METH_FASTCALL, no_doc },
{ "set_signal_source_machine_start_machine", ( PyCFunction ) set_signal_source_machine_start_machine, METH_FASTCALL, no_doc },
{ "set_signal_source_machine_halt_machine", ( PyCFunction ) set_signal_source_machine_halt_machine, METH_FASTCALL, no_doc },
{ "get_signal_source_machine_state_str", ( PyCFunction ) get_signal_source_machine_state_str, METH_FASTCALL, no_doc },
{ "set_signal_source_machine_speed", ( PyCFunction ) set_signal_source_machine_speed, METH_FASTCALL, no_doc },
{ "get_signal_source_machine_speed", ( PyCFunction ) get_signal_source_machine_speed, METH_FASTCALL, no_doc },
{ "set_signal_source_machine_start_file", ( PyCFunction ) set_signal_source_machine_start_file, METH_FASTCALL, no_doc },
{ "set_signal_source_machine_idle_file", ( PyCFunction ) set_signal_source_machine_idle_file, METH_FASTCALL, no_doc },
{ "set_signal_source_machine_stop_file", ( PyCFunction ) set_signal_source_machine_stop_file, METH_FASTCALL, no_doc },
{ "set_signal_source_parameters", ( PyCFunction ) set_signal_source_parameters, METH_FASTCALL, no_doc },
{ "get_signal_source_parameters", ( PyCFunction ) get_signal_source_parameters, METH_FASTCALL, no_doc },
{ "get_sound_source_ids", ( PyCFunction ) get_sound_source_ids, METH_FASTCALL, no_doc },
{ "connect", ( PyCFunction ) connect, METH_VARARGS | METH_KEYWORDS, connect_doc },
{ "disconnect", ( PyCFunction ) disconnect, METH_NOARGS, no_doc },
{ "is_connected", ( PyCFunction ) is_connected, METH_NOARGS, no_doc },
{ "reset", ( PyCFunction ) reset, METH_NOARGS, no_doc },
{ "get_version", ( PyCFunction ) get_version, METH_NOARGS, no_doc },
{ "get_modules", ( PyCFunction ) get_modules, METH_NOARGS, no_doc },
{ "call_module", ( PyCFunction ) call_module, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_search_paths", ( PyCFunction ) get_search_paths, METH_NOARGS, no_doc },
{ "add_search_path", ( PyCFunction ) add_search_path, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "create_directivity_from_file", ( PyCFunction ) create_directivity_from_file, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "delete_directivity", ( PyCFunction ) delete_directivity, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_directivity_info", ( PyCFunction ) get_directivity_info, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_directivity_infos", ( PyCFunction ) get_directivity_infos, METH_NOARGS, no_doc },
{ "create_signal_source_buffer_from_file", (PyCFunction)create_signal_source_buffer_from_file, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "create_signal_source_prototype_from_parameters", (PyCFunction)create_signal_source_prototype_from_parameters, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "create_signal_source_text_to_speech", ( PyCFunction ) create_signal_source_text_to_speech, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "create_signal_source_sequencer", ( PyCFunction ) create_signal_source_sequencer, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "create_signal_source_network_stream", ( PyCFunction ) create_signal_source_network_stream, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "create_signal_source_engine", ( PyCFunction ) create_signal_source_engine, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "create_signal_source_machine", ( PyCFunction ) create_signal_source_machine, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "delete_signal_source", ( PyCFunction ) delete_signal_source, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_signal_source_info", ( PyCFunction ) get_signal_source_info, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_signal_source_infos", ( PyCFunction ) get_signal_source_infos, METH_NOARGS, no_doc },
{ "get_signal_source_buffer_playback_state", ( PyCFunction ) get_signal_source_buffer_playback_state, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_signal_source_buffer_playback_state_str", ( PyCFunction ) get_signal_source_buffer_playback_state_str, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_signal_source_buffer_playback_action", ( PyCFunction ) set_signal_source_buffer_playback_action, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_signal_source_buffer_playback_action_str", ( PyCFunction ) set_signal_source_buffer_playback_action_str, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_signal_source_buffer_playback_position", ( PyCFunction ) set_signal_source_buffer_playback_position, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_signal_source_buffer_looping", ( PyCFunction ) get_signal_source_buffer_looping, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_signal_source_buffer_looping", ( PyCFunction ) set_signal_source_buffer_looping, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_signal_source_machine_start_machine", ( PyCFunction ) set_signal_source_machine_start_machine, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_signal_source_machine_halt_machine", ( PyCFunction ) set_signal_source_machine_halt_machine, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_signal_source_machine_state_str", ( PyCFunction ) get_signal_source_machine_state_str, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_signal_source_machine_speed", ( PyCFunction ) set_signal_source_machine_speed, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_signal_source_machine_speed", ( PyCFunction ) get_signal_source_machine_speed, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_signal_source_machine_start_file", ( PyCFunction ) set_signal_source_machine_start_file, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_signal_source_machine_idle_file", ( PyCFunction ) set_signal_source_machine_idle_file, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_signal_source_machine_stop_file", ( PyCFunction ) set_signal_source_machine_stop_file, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_signal_source_parameters", ( PyCFunction ) set_signal_source_parameters, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_signal_source_parameters", ( PyCFunction ) get_signal_source_parameters, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_sound_source_ids", ( PyCFunction ) get_sound_source_ids, METH_NOARGS, no_doc },
{ "create_sound_source", ( PyCFunction ) create_sound_source, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "create_sound_source_explicit_renderer", ( PyCFunction ) create_sound_source_explicit_renderer, METH_FASTCALL, no_doc },
{ "delete_sound_source", ( PyCFunction ) delete_sound_source, METH_FASTCALL, no_doc },
{ "set_sound_source_enabled", ( PyCFunction ) set_sound_source_enabled, METH_FASTCALL, no_doc },
{ "get_sound_source_enabled", ( PyCFunction ) get_sound_source_enabled, METH_FASTCALL, no_doc },
{ "get_sound_source_name", ( PyCFunction ) get_sound_source_name, METH_FASTCALL, no_doc },
{ "set_sound_source_enabled", ( PyCFunction ) set_sound_source_enabled, METH_FASTCALL, no_doc },
{ "get_sound_source_signal_source", ( PyCFunction ) get_sound_source_signal_source, METH_FASTCALL, no_doc },
{ "set_sound_source_signal_source", ( PyCFunction ) set_sound_source_signal_source, METH_FASTCALL, no_doc },
{ "remove_sound_source_signal_source", ( PyCFunction ) remove_sound_source_signal_source, METH_FASTCALL, no_doc },
{ "get_sound_source_auralization_mode", ( PyCFunction ) get_sound_source_auralization_mode, METH_FASTCALL, no_doc },
{ "set_sound_source_auralization_mode", ( PyCFunction ) set_sound_source_auralization_mode, METH_FASTCALL, no_doc },
{ "set_sound_source_parameters", ( PyCFunction ) set_sound_source_parameters, METH_FASTCALL, no_doc },
{ "get_sound_source_parameters", ( PyCFunction ) get_sound_source_parameters, METH_FASTCALL, no_doc },
{ "get_sound_source_directivity", ( PyCFunction ) get_sound_source_directivity, METH_FASTCALL, no_doc },
{ "set_sound_source_directivity", ( PyCFunction ) set_sound_source_directivity, METH_FASTCALL, no_doc },
{ "get_sound_source_sound_power", ( PyCFunction ) get_sound_source_sound_power, METH_FASTCALL, no_doc },
{ "set_sound_source_sound_power", ( PyCFunction ) set_sound_source_sound_power, METH_FASTCALL, no_doc },
{ "get_sound_source_muted", ( PyCFunction ) get_sound_source_muted, METH_FASTCALL, no_doc },
{ "set_sound_source_muted", ( PyCFunction ) set_sound_source_muted, METH_FASTCALL, no_doc },
{ "get_sound_source_position", ( PyCFunction ) get_sound_source_position, METH_FASTCALL, no_doc },
{ "set_sound_source_position", ( PyCFunction ) set_sound_source_position, METH_FASTCALL, no_doc },
{ "get_sound_source_orientation_vu", ( PyCFunction ) get_sound_source_orientation_vu, METH_FASTCALL, no_doc },
{ "set_sound_source_orientation_vu", ( PyCFunction ) set_sound_source_orientation_vu, METH_FASTCALL, no_doc },
{ "get_sound_source_orientation_q", ( PyCFunction ) not_implemented, METH_FASTCALL, no_doc },
{ "set_sound_source_orientation_q", ( PyCFunction ) not_implemented, METH_FASTCALL, no_doc },
{ "get_sound_receiver_ids", ( PyCFunction ) get_sound_receiver_ids, METH_FASTCALL, no_doc },
{ "create_sound_receiver", ( PyCFunction ) create_sound_receiver, METH_FASTCALL, no_doc },
{ "create_sound_receiver_explicit_renderer", ( PyCFunction ) create_sound_receiver_explicit_renderer, METH_FASTCALL, no_doc },
{ "delete_sound_receiver", ( PyCFunction ) delete_sound_receiver, METH_FASTCALL, no_doc },
{ "set_sound_receiver_enabled", ( PyCFunction ) set_sound_receiver_enabled, METH_FASTCALL, no_doc },
{ "get_sound_receiver_enabled", ( PyCFunction ) get_sound_receiver_enabled, METH_FASTCALL, no_doc },
{ "get_sound_receiver_name", ( PyCFunction ) get_sound_receiver_name, METH_FASTCALL, no_doc },
{ "set_sound_receiver_enabled", ( PyCFunction ) set_sound_receiver_enabled, METH_FASTCALL, no_doc },
{ "get_sound_receiver_auralization_mode", ( PyCFunction ) get_sound_receiver_auralization_mode, METH_FASTCALL, no_doc },
{ "set_sound_receiver_auralization_mode", ( PyCFunction ) set_sound_receiver_auralization_mode, METH_FASTCALL, no_doc },
{ "set_sound_receiver_parameters", ( PyCFunction ) set_sound_receiver_parameters, METH_FASTCALL, no_doc },
{ "get_sound_receiver_parameters", ( PyCFunction ) get_sound_receiver_parameters, METH_FASTCALL, no_doc },
{ "get_sound_receiver_directivity", ( PyCFunction ) get_sound_receiver_directivity, METH_FASTCALL, no_doc },
{ "set_sound_receiver_directivity", ( PyCFunction ) set_sound_receiver_directivity, METH_FASTCALL, no_doc },
{ "get_sound_receiver_muted", ( PyCFunction ) get_sound_receiver_muted, METH_FASTCALL, no_doc },
{ "set_sound_receiver_muted", ( PyCFunction ) set_sound_receiver_muted, METH_FASTCALL, no_doc },
{ "get_sound_receiver_position", ( PyCFunction ) get_sound_receiver_position, METH_FASTCALL, no_doc },
{ "set_sound_receiver_position", ( PyCFunction ) set_sound_receiver_position, METH_FASTCALL, no_doc },
{ "get_sound_receiver_orientation_vu", ( PyCFunction ) get_sound_receiver_orientation_vu, METH_FASTCALL, no_doc },
{ "set_sound_receiver_orientation_vu", ( PyCFunction ) set_sound_receiver_orientation_vu, METH_FASTCALL, no_doc },
{ "get_sound_receiver_orientation_q", ( PyCFunction ) not_implemented, METH_FASTCALL, no_doc },
{ "set_sound_receiver_orientation_q", ( PyCFunction ) not_implemented, METH_FASTCALL, no_doc },
{ "get_sound_receiver_real_world_position", ( PyCFunction ) get_sound_receiver_real_world_position, METH_FASTCALL, no_doc },
{ "set_sound_receiver_real_world_position", ( PyCFunction ) set_sound_receiver_real_world_position, METH_FASTCALL, no_doc },
{ "get_sound_receiver_real_world_orientation_vu", ( PyCFunction ) get_sound_receiver_real_world_orientation_vu, METH_FASTCALL, no_doc },
{ "set_sound_receiver_real_world_orientation_vu", ( PyCFunction ) set_sound_receiver_real_world_orientation_vu, METH_FASTCALL, no_doc },
{ "get_sound_receiver_real_world_orientation_q", ( PyCFunction ) not_implemented, METH_FASTCALL, no_doc },
{ "set_sound_receiver_real_world_orientation_q", ( PyCFunction ) not_implemented, METH_FASTCALL, no_doc },
{ "get_sound_portal_ids", ( PyCFunction ) get_sound_portal_ids, METH_FASTCALL, no_doc },
{ "get_sound_portal_name", ( PyCFunction ) get_sound_portal_name, METH_FASTCALL, no_doc },
{ "set_sound_portal_name", ( PyCFunction ) set_sound_portal_name, METH_FASTCALL, no_doc },
{ "get_sound_portal_enabled", ( PyCFunction ) get_sound_portal_enabled, METH_FASTCALL, no_doc },
{ "set_sound_portal_enabled", ( PyCFunction ) set_sound_portal_enabled, METH_FASTCALL, no_doc },
{ "get_homogeneous_medium_sound_speed", ( PyCFunction ) get_homogeneous_medium_sound_speed, METH_FASTCALL, no_doc },
{ "set_homogeneous_medium_sound_speed", ( PyCFunction ) set_homogeneous_medium_sound_speed, METH_FASTCALL, no_doc },
{ "get_homogeneous_medium_temperature", ( PyCFunction ) get_homogeneous_medium_temperature, METH_FASTCALL, no_doc },
{ "set_homogeneous_medium_temperature", ( PyCFunction ) set_homogeneous_medium_temperature, METH_FASTCALL, no_doc },
{ "get_homogeneous_medium_static_pressure", ( PyCFunction ) get_homogeneous_medium_static_pressure, METH_FASTCALL, no_doc },
{ "set_homogeneous_medium_static_pressure", ( PyCFunction ) set_homogeneous_medium_static_pressure, METH_FASTCALL, no_doc },
{ "get_homogeneous_medium_relative_humidity", ( PyCFunction ) get_homogeneous_medium_relative_humidity, METH_FASTCALL, no_doc },
{ "set_homogeneous_medium_relative_humidity", ( PyCFunction ) set_homogeneous_medium_relative_humidity, METH_FASTCALL, no_doc },
{ "get_homogeneous_medium_shift_speed", ( PyCFunction ) get_homogeneous_medium_shift_speed, METH_FASTCALL, no_doc },
{ "set_homogeneous_medium_shift_speed", ( PyCFunction ) set_homogeneous_medium_shift_speed, METH_FASTCALL, no_doc },
{ "get_homogeneous_medium_parameters", ( PyCFunction ) get_homogeneous_medium_parameters, METH_FASTCALL, no_doc },
{ "set_homogeneous_medium_parameters", ( PyCFunction ) set_homogeneous_medium_parameters, METH_FASTCALL, no_doc },
{ "create_acoustic_material", ( PyCFunction ) create_acoustic_material, METH_FASTCALL, no_doc },
{ "create_acoustic_material_from_file", ( PyCFunction ) create_acoustic_material_from_file, METH_FASTCALL, no_doc },
{ "create_acoustic_material_from_parameters", ( PyCFunction ) create_acoustic_material_from_parameters, METH_FASTCALL, no_doc },
{ "get_acoustic_material_infos", ( PyCFunction ) get_acoustic_material_infos, METH_FASTCALL, no_doc },
{ "get_rendering_modules", ( PyCFunction ) get_rendering_modules, METH_FASTCALL, no_doc },
{ "set_rendering_module_muted", ( PyCFunction ) set_rendering_module_muted, METH_FASTCALL, no_doc },
{ "get_rendering_module_muted", ( PyCFunction ) get_rendering_module_muted, METH_FASTCALL, no_doc },
{ "set_rendering_module_gain", ( PyCFunction ) set_rendering_module_gain, METH_FASTCALL, no_doc },
{ "get_rendering_module_gain", ( PyCFunction ) get_rendering_module_gain, METH_FASTCALL, no_doc },
{ "get_rendering_module_auralization_mode", ( PyCFunction ) get_rendering_module_auralization_mode, METH_FASTCALL, no_doc },
{ "set_rendering_module_auralization_mode", ( PyCFunction ) set_rendering_module_auralization_mode, METH_FASTCALL, no_doc },
{ "get_rendering_module_parameters", ( PyCFunction ) get_rendering_module_parameters, METH_FASTCALL, no_doc },
{ "set_rendering_module_parameters", ( PyCFunction ) set_rendering_module_parameters, METH_FASTCALL, no_doc },
{ "get_reproduction_modules", ( PyCFunction ) get_reproduction_modules, METH_FASTCALL, no_doc },
{ "set_reproduction_module_muted", ( PyCFunction ) set_reproduction_module_muted, METH_FASTCALL, no_doc },
{ "get_reproduction_module_muted", ( PyCFunction ) get_reproduction_module_muted, METH_FASTCALL, no_doc },
{ "set_reproduction_module_gain", ( PyCFunction ) set_reproduction_module_gain, METH_FASTCALL, no_doc },
{ "get_reproduction_module_gain", ( PyCFunction ) get_reproduction_module_gain, METH_FASTCALL, no_doc },
{ "get_reproduction_module_parameters", ( PyCFunction ) get_reproduction_module_parameters, METH_FASTCALL, no_doc },
{ "set_reproduction_module_parameters", ( PyCFunction ) set_reproduction_module_parameters, METH_FASTCALL, no_doc },
{ "lock_update", ( PyCFunction ) lock_update, METH_FASTCALL, no_doc },
{ "unlock_update", ( PyCFunction ) unlock_update, METH_FASTCALL, no_doc },
{ "get_update_locked", ( PyCFunction ) get_update_locked, METH_FASTCALL, no_doc },
{ "get_input_gain", ( PyCFunction ) get_input_gain, METH_FASTCALL, no_doc },
{ "set_input_gain", ( PyCFunction ) set_input_gain, METH_FASTCALL, no_doc },
{ "get_input_muted", ( PyCFunction ) get_input_muted, METH_FASTCALL, no_doc },
{ "set_input_muted", ( PyCFunction ) set_input_muted, METH_FASTCALL, no_doc },
{ "get_output_gain", ( PyCFunction ) get_output_gain, METH_FASTCALL, no_doc },
{ "set_output_gain", ( PyCFunction ) set_output_gain, METH_FASTCALL, no_doc },
{ "get_output_muted", ( PyCFunction ) get_output_muted, METH_FASTCALL, no_doc },
{ "set_output_muted", ( PyCFunction ) set_output_muted, METH_FASTCALL, no_doc },
{ "get_global_auralization_mode", ( PyCFunction ) get_global_auralization_mode, METH_FASTCALL, no_doc },
{ "set_global_auralization_mode", ( PyCFunction ) set_global_auralization_mode, METH_FASTCALL, no_doc },
{ "get_core_clock", ( PyCFunction ) get_core_clock, METH_FASTCALL, no_doc },
{ "set_core_clock", ( PyCFunction ) set_core_clock, METH_FASTCALL, no_doc },
{ "substitute_macro", ( PyCFunction ) substitute_macro, METH_FASTCALL, no_doc },
{ "find_file_path", ( PyCFunction ) find_file_path, METH_FASTCALL, no_doc },
{ "create_sound_source_explicit_renderer", ( PyCFunction ) create_sound_source_explicit_renderer, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "delete_sound_source", ( PyCFunction ) delete_sound_source, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_sound_source_enabled", ( PyCFunction ) set_sound_source_enabled, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_sound_source_enabled", ( PyCFunction ) get_sound_source_enabled, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_sound_source_name", ( PyCFunction ) get_sound_source_name, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_sound_source_enabled", ( PyCFunction ) set_sound_source_enabled, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_sound_source_signal_source", ( PyCFunction ) get_sound_source_signal_source, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_sound_source_signal_source", ( PyCFunction ) set_sound_source_signal_source, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "remove_sound_source_signal_source", ( PyCFunction ) remove_sound_source_signal_source, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_sound_source_auralization_mode", ( PyCFunction ) get_sound_source_auralization_mode, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_sound_source_auralization_mode", ( PyCFunction ) set_sound_source_auralization_mode, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_sound_source_parameters", ( PyCFunction ) set_sound_source_parameters, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_sound_source_parameters", ( PyCFunction ) get_sound_source_parameters, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_sound_source_directivity", ( PyCFunction ) get_sound_source_directivity, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_sound_source_directivity", ( PyCFunction ) set_sound_source_directivity, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_sound_source_sound_power", ( PyCFunction ) get_sound_source_sound_power, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_sound_source_sound_power", ( PyCFunction ) set_sound_source_sound_power, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_sound_source_muted", ( PyCFunction ) get_sound_source_muted, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_sound_source_muted", ( PyCFunction ) set_sound_source_muted, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_sound_source_position", ( PyCFunction ) get_sound_source_position, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_sound_source_position", ( PyCFunction ) set_sound_source_position, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_sound_source_orientation_vu", ( PyCFunction ) get_sound_source_orientation_vu, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_sound_source_orientation_vu", ( PyCFunction ) set_sound_source_orientation_vu, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_sound_source_orientation_q", ( PyCFunction ) not_implemented, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_sound_source_orientation_q", ( PyCFunction ) not_implemented, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_sound_receiver_ids", ( PyCFunction ) get_sound_receiver_ids, METH_NOARGS, no_doc },
{ "create_sound_receiver", ( PyCFunction ) create_sound_receiver, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "create_sound_receiver_explicit_renderer", ( PyCFunction ) create_sound_receiver_explicit_renderer, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "delete_sound_receiver", ( PyCFunction ) delete_sound_receiver, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_sound_receiver_enabled", ( PyCFunction ) set_sound_receiver_enabled, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_sound_receiver_enabled", ( PyCFunction ) get_sound_receiver_enabled, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_sound_receiver_name", ( PyCFunction ) get_sound_receiver_name, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_sound_receiver_enabled", ( PyCFunction ) set_sound_receiver_enabled, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_sound_receiver_auralization_mode", ( PyCFunction ) get_sound_receiver_auralization_mode, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_sound_receiver_auralization_mode", ( PyCFunction ) set_sound_receiver_auralization_mode, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_sound_receiver_parameters", ( PyCFunction ) set_sound_receiver_parameters, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_sound_receiver_parameters", ( PyCFunction ) get_sound_receiver_parameters, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_sound_receiver_directivity", ( PyCFunction ) get_sound_receiver_directivity, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_sound_receiver_directivity", ( PyCFunction ) set_sound_receiver_directivity, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_sound_receiver_muted", ( PyCFunction ) get_sound_receiver_muted, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_sound_receiver_muted", ( PyCFunction ) set_sound_receiver_muted, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_sound_receiver_position", ( PyCFunction ) get_sound_receiver_position, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_sound_receiver_position", ( PyCFunction ) set_sound_receiver_position, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_sound_receiver_orientation_vu", ( PyCFunction ) get_sound_receiver_orientation_vu, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_sound_receiver_orientation_vu", ( PyCFunction ) set_sound_receiver_orientation_vu, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_sound_receiver_orientation_q", ( PyCFunction ) not_implemented, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_sound_receiver_orientation_q", ( PyCFunction ) not_implemented, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_sound_receiver_real_world_position", ( PyCFunction ) get_sound_receiver_real_world_position, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_sound_receiver_real_world_position", ( PyCFunction ) set_sound_receiver_real_world_position, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_sound_receiver_real_world_orientation_vu", ( PyCFunction ) get_sound_receiver_real_world_orientation_vu, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_sound_receiver_real_world_orientation_vu", ( PyCFunction ) set_sound_receiver_real_world_orientation_vu, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_sound_receiver_real_world_orientation_q", ( PyCFunction ) not_implemented, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_sound_receiver_real_world_orientation_q", ( PyCFunction ) not_implemented, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_sound_portal_ids", ( PyCFunction ) get_sound_portal_ids, METH_NOARGS, no_doc },
{ "get_sound_portal_name", ( PyCFunction ) get_sound_portal_name, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_sound_portal_name", ( PyCFunction ) set_sound_portal_name, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_sound_portal_enabled", ( PyCFunction ) get_sound_portal_enabled, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_sound_portal_enabled", ( PyCFunction ) set_sound_portal_enabled, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_homogeneous_medium_sound_speed", ( PyCFunction ) get_homogeneous_medium_sound_speed, METH_NOARGS, no_doc },
{ "set_homogeneous_medium_sound_speed", ( PyCFunction ) set_homogeneous_medium_sound_speed, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_homogeneous_medium_temperature", ( PyCFunction ) get_homogeneous_medium_temperature, METH_NOARGS, no_doc },
{ "set_homogeneous_medium_temperature", ( PyCFunction ) set_homogeneous_medium_temperature, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_homogeneous_medium_static_pressure", ( PyCFunction ) get_homogeneous_medium_static_pressure, METH_NOARGS, no_doc },
{ "set_homogeneous_medium_static_pressure", ( PyCFunction ) set_homogeneous_medium_static_pressure, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_homogeneous_medium_relative_humidity", ( PyCFunction ) get_homogeneous_medium_relative_humidity, METH_NOARGS, no_doc },
{ "set_homogeneous_medium_relative_humidity", ( PyCFunction ) set_homogeneous_medium_relative_humidity, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_homogeneous_medium_shift_speed", ( PyCFunction ) get_homogeneous_medium_shift_speed, METH_NOARGS, no_doc },
{ "set_homogeneous_medium_shift_speed", ( PyCFunction ) set_homogeneous_medium_shift_speed, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_homogeneous_medium_parameters", ( PyCFunction ) get_homogeneous_medium_parameters, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_homogeneous_medium_parameters", ( PyCFunction ) set_homogeneous_medium_parameters, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "create_acoustic_material", ( PyCFunction ) create_acoustic_material, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "create_acoustic_material_from_file", ( PyCFunction ) create_acoustic_material_from_file, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "create_acoustic_material_from_parameters", ( PyCFunction ) create_acoustic_material_from_parameters, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_acoustic_material_infos", ( PyCFunction ) get_acoustic_material_infos, METH_NOARGS, no_doc },
{ "get_rendering_modules", ( PyCFunction ) get_rendering_modules, METH_NOARGS, no_doc },
{ "set_rendering_module_muted", ( PyCFunction ) set_rendering_module_muted, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_rendering_module_muted", ( PyCFunction ) get_rendering_module_muted, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_rendering_module_gain", ( PyCFunction ) set_rendering_module_gain, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_rendering_module_gain", ( PyCFunction ) get_rendering_module_gain, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_rendering_module_auralization_mode", ( PyCFunction ) get_rendering_module_auralization_mode, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_rendering_module_auralization_mode", ( PyCFunction ) set_rendering_module_auralization_mode, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_rendering_module_parameters", ( PyCFunction ) get_rendering_module_parameters, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_rendering_module_parameters", ( PyCFunction ) set_rendering_module_parameters, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_reproduction_modules", ( PyCFunction ) get_reproduction_modules, METH_NOARGS, no_doc },
{ "set_reproduction_module_muted", ( PyCFunction ) set_reproduction_module_muted, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_reproduction_module_muted", ( PyCFunction ) get_reproduction_module_muted, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_reproduction_module_gain", ( PyCFunction ) set_reproduction_module_gain, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_reproduction_module_gain", ( PyCFunction ) get_reproduction_module_gain, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_reproduction_module_parameters", ( PyCFunction ) get_reproduction_module_parameters, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_reproduction_module_parameters", ( PyCFunction ) set_reproduction_module_parameters, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "lock_update", ( PyCFunction ) lock_update, METH_NOARGS, no_doc },
{ "unlock_update", ( PyCFunction ) unlock_update, METH_NOARGS, no_doc },
{ "get_update_locked", ( PyCFunction ) get_update_locked, METH_NOARGS, no_doc },
{ "get_input_gain", ( PyCFunction ) get_input_gain, METH_NOARGS, no_doc },
{ "set_input_gain", ( PyCFunction ) set_input_gain, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_input_muted", ( PyCFunction ) get_input_muted, METH_NOARGS, no_doc },
{ "set_input_muted", ( PyCFunction ) set_input_muted, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_output_gain", ( PyCFunction ) get_output_gain, METH_NOARGS, no_doc },
{ "set_output_gain", ( PyCFunction ) set_output_gain, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_output_muted", ( PyCFunction ) get_output_muted, METH_NOARGS, no_doc },
{ "set_output_muted", ( PyCFunction ) set_output_muted, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_global_auralization_mode", ( PyCFunction ) get_global_auralization_mode, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "set_global_auralization_mode", ( PyCFunction ) set_global_auralization_mode, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_core_clock", ( PyCFunction ) get_core_clock, METH_NOARGS, no_doc },
{ "set_core_clock", ( PyCFunction ) set_core_clock, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "substitute_macro", ( PyCFunction ) substitute_macro, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "find_file_path", ( PyCFunction ) find_file_path, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_core_configuration", ( PyCFunction ) get_core_configuration, METH_FASTCALL, no_doc },
{ "get_hardware_configuration", ( PyCFunction ) get_hardware_configuration, METH_FASTCALL, no_doc },
{ "get_file_list", ( PyCFunction ) get_file_list, METH_FASTCALL, no_doc },
{ "get_log_level_str", ( PyCFunction ) get_log_level_str, METH_FASTCALL, no_doc },
{ "parse_auralization_mode_str", ( PyCFunction ) parse_auralization_mode_str, METH_FASTCALL, no_doc },
{ "get_auralization_mode_str", ( PyCFunction ) get_auralization_mode_str, METH_FASTCALL, no_doc },
{ "get_volume_str_decibel", ( PyCFunction ) get_volume_str_decibel, METH_FASTCALL, no_doc },
{ "parse_playback_state_str", ( PyCFunction ) parse_playback_state_str, METH_FASTCALL, no_doc },
{ "get_playback_state_str", ( PyCFunction ) get_playback_state_str, METH_FASTCALL, no_doc },
{ "parse_playback_action_str", ( PyCFunction ) parse_playback_action_str, METH_FASTCALL, no_doc },
{ "get_playback_action_str", ( PyCFunction ) get_playback_action_str, METH_FASTCALL, no_doc },
{ "get_core_configuration", ( PyCFunction ) get_core_configuration, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_hardware_configuration", ( PyCFunction ) get_hardware_configuration, METH_NOARGS, no_doc },
{ "get_file_list", ( PyCFunction ) get_file_list, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_log_level_str", ( PyCFunction ) get_log_level_str, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "parse_auralization_mode_str", ( PyCFunction ) parse_auralization_mode_str, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_auralization_mode_str", ( PyCFunction ) get_auralization_mode_str, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_volume_str_decibel", ( PyCFunction ) get_volume_str_decibel, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "parse_playback_state_str", ( PyCFunction ) parse_playback_state_str, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_playback_state_str", ( PyCFunction ) get_playback_state_str, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "parse_playback_action_str", ( PyCFunction ) parse_playback_action_str, METH_VARARGS | METH_KEYWORDS, no_doc },
{ "get_playback_action_str", ( PyCFunction ) get_playback_action_str, METH_VARARGS | METH_KEYWORDS, no_doc },
{ NULL, NULL }
};
......
......@@ -236,7 +236,7 @@ CVAAcousticMaterial ConvertPythonDictToAcousticMaterial( PyObject* pMaterial )
// ------------------------------- Python module extension methods
static PyObject* connect( PyObject*, PyObject** ppArgs, Py_ssize_t nArgs, PyObject* pKeywordNames )
static PyObject* connect( PyObject*, PyObject* pArgs, PyObject* pKeywordTuple )
{
if( !g_pVANetClient )
g_pVANetClient = IVANetClient::Create();
......@@ -247,12 +247,12 @@ static PyObject* connect( PyObject*, PyObject** ppArgs, Py_ssize_t nArgs, PyObje
g_pVANetClient->Disconnect();
}
static const char * const _keywords[] = { "server", "port", NULL };
static _PyArg_Parser _parser = { "|si:connect", _keywords, 0 };
static char* pKeyWordList[] = { "name", "port", NULL };
const char* pcFormat = "|si:connect";
char* pcServerIP = nullptr;
int iServerPort = 12340;
if( !_PyArg_ParseStackAndKeywords( ppArgs, nArgs, pKeywordNames, &_parser, &pcServerIP, &iServerPort ) )
if (!PyArg_ParseTupleAndKeywords(pArgs, pKeywordTuple, pcFormat, pKeyWordList, &pcServerIP, &iServerPort))
return NULL;
std::string sServerIP = pcServerIP ? std::string( pcServerIP ) : "localhost";
......@@ -319,16 +319,16 @@ static PyObject* get_modules( PyObject*, PyObject* )
VAPY_CATCH_RETURN;
};
static PyObject* call_module( PyObject*, PyObject** ppArgs, Py_ssize_t nArgs, PyObject* pKeywordNames )
static PyObject* call_module( PyObject*, PyObject* pArgs, PyObject* pKeywordTuple)
{
VAPY_REQUIRE_CONN_TRY;
static const char * const _keywords[] = { "module_name", "arguments_dict", NULL };
static _PyArg_Parser _parser = { "sO!:call_module", _keywords, 0 };
static char* pKeyWordList[] = { "module_name", "arguments_dict", NULL };
const char* pcFormat = "sO!:call_module";
char* pcModuleName = nullptr;
PyObject* pArgumentsDict = nullptr;
if( !_PyArg_ParseStackAndKeywords( ppArgs, nArgs, pKeywordNames, &_parser, &pcModuleName, &PyDict_Type, &pArgumentsDict ) )
if ( !PyArg_ParseTupleAndKeywords( pArgs, pKeywordTuple, pcFormat, pKeyWordList, &pcModuleName, &pArgumentsDict ) )
return NULL;
std::string sModuleName = pcModuleName ? std::string( pcModuleName ) : "";
......@@ -340,14 +340,14 @@ static PyObject* call_module( PyObject*, PyObject** ppArgs, Py_ssize_t nArgs, Py
VAPY_CATCH_RETURN;
};
static PyObject* add_search_path( PyObject*, PyObject** ppArgs, Py_ssize_t nArgs, PyObject* pKeywordNames )
static PyObject* add_search_path( PyObject*, PyObject* pArgs, PyObject* pKeywordTuple)
{
VAPY_REQUIRE_CONN_TRY;
static const char * const _keywords[] = { "directory_path", NULL };
static _PyArg_Parser _parser = { "s:add_search_path", _keywords, 0 };
static char* pKeyWordList[] = { "directory_path", NULL };
const char* pcFormat = "s:add_search_path";
char* pcPath = nullptr;
if( !_PyArg_ParseStackAndKeywords( ppArgs, nArgs, pKeywordNames, &_parser, &pcPath ) )
if( !PyArg_ParseTupleAndKeywords( pArgs, pKeywordTuple, pcFormat, pKeyWordList , &pcPath ) )
return NULL;
return PyBool_FromLong( g_pVANetClient->GetCoreInstance()->AddSearchPath( std::string( pcPath ) ) );
......@@ -355,7 +355,7 @@ static PyObject* add_search_path( PyObject*, PyObject** ppArgs, Py_ssize_t nArgs
VAPY_CATCH_RETURN;
};
static PyObject* get_search_paths( PyObject*, PyObject**, Py_ssize_t, PyObject* )
static PyObject* get_search_paths( PyObject*, PyObject* )
{
VAPY_REQUIRE_CONN_TRY;
CVAStruct oPaths = g_pVANetClient->GetCoreInstance()->GetSearchPaths();
......@@ -386,15 +386,15 @@ static PyObject* unlock_update( PyObject*, PyObject* )
VAPY_CATCH_RETURN;
};
static PyObject* create_directivity_from_file( PyObject*, PyObject** ppArgs, Py_ssize_t nArgs, PyObject* pKeywordNames )
static PyObject* create_directivity_from_file( PyObject*, PyObject* pArgs, PyObject* pKeywordTuple)
{
VAPY_REQUIRE_CONN_TRY;
static const char * const _keywords[] = { "path", "name", NULL };
static _PyArg_Parser _parser = { "s|s:create_directivity_from_file", _keywords, 0 };
static char* pKeyWordList[] = { "path", "name", NULL };
const char* pcFormat = "s|s:create_directivity_from_file";
char* pcPath = nullptr;
char* pcName = nullptr;
if( !_PyArg_ParseStackAndKeywords( ppArgs, nArgs, pKeywordNames, &_parser, &pcPath, &pcName ) )
if ( !PyArg_ParseTupleAndKeywords( pArgs, pKeywordTuple, pcFormat, pKeyWordList, &pcPath, &pcName ) )
return NULL;
std::string sName = pcName ? std::string( pcName ) : "";
......@@ -403,28 +403,28 @@ static PyObject* create_directivity_from_file( PyObject*, PyObject** ppArgs, Py_
VAPY_CATCH_RETURN;
};
static PyObject* delete_directivity( PyObject*, PyObject** ppArgs, Py_ssize_t nArgs, PyObject* pKeywordNames )
static PyObject* delete_directivity( PyObject*, PyObject* pArgs, PyObject* pKeywordTuple)
{
VAPY_REQUIRE_CONN_TRY;
static const char * const _keywords[] = { "id", NULL };
static _PyArg_Parser _parser = { "i:delete_directivity", _keywords, 0 };
static char* pKeyWordList[] = { "id", NULL };
const char* pcFormat = "i:delete_directivity";
long iID = -1;
if( !_PyArg_ParseStackAndKeywords( ppArgs, nArgs, pKeywordNames, &_parser, &iID ) )
if( !PyArg_ParseTupleAndKeywords( pArgs, pKeywordTuple, pcFormat, pKeyWordList , &iID ) )
return NULL;
return PyBool_FromLong( g_pVANetClient->GetCoreInstance()->DeleteDirectivity( iID ) );
VAPY_CATCH_RETURN;
};
static PyObject* get_directivity_info( PyObject*, PyObject** ppArgs, Py_ssize_t nArgs, PyObject* pKeywordNames )
static PyObject* get_directivity_info( PyObject*, PyObject* pArgs, PyObject* pKeywordTuple)
{
VAPY_REQUIRE_CONN_TRY;
static const char * const _keywords[] = { "id", NULL };
static _PyArg_Parser _parser = { "i:get_directivity_info", _keywords, 0 };
static char* pKeyWordList[] = { "id", NULL };
const char* pcFormat = "i:get_directivity_info";
long iID = -1;
if( !_PyArg_ParseStackAndKeywords( ppArgs, nArgs, pKeywordNames, &_parser, &iID ) )
if ( !PyArg_ParseTupleAndKeywords( pArgs, pKeywordTuple, pcFormat, pKeyWordList, &iID) )
return NULL;
CVADirectivityInfo oInfo = g_pVANetClient->GetCoreInstance()->GetDirectivityInfo( iID );
......@@ -476,47 +476,32 @@ static PyObject* get_sound_source_ids( PyObject*, PyObject* )
VAPY_CATCH_RETURN;
};
//static PyObject* create_sound_source( PyObject*, PyObject** ppArgs, Py_ssize_t nArgs, PyObject* pKeywordNames )
//{
// VAPY_REQUIRE_CONN_TRY;
//
// static const char * const _keywords[] = { "name", NULL };
// static _PyArg_Parser _parser = { "s:create_sound_source", _keywords, 0 };
// char* pcName = nullptr;
// if( !_PyArg_ParseStackAndKeywords( ppArgs, nArgs, pKeywordNames, &_parser, &pcName ) )
// return NULL;
//
// std::string sName = pcName ? std::string( pcName ) : "PySoundSource";
// return PyLong_FromLong( g_pVANetClient->GetCoreInstance()->CreateSoundSource( sName ) );
//
// VAPY_CATCH_RETURN;
//};
static PyObject* create_sound_source(PyObject*, PyObject* pArgs, PyObject* pKeywordTuple)
static PyObject* create_sound_source( PyObject*, PyObject* pArgs, PyObject* pKeywordTuple )
{
VAPY_REQUIRE_CONN_TRY;
static char* pKeyWordList[] = { "name", NULL };
const char* sDataTypes = "s";
const char* pcFormat = "s:create_sound_source";
char* pcName = nullptr;
if (!PyArg_ParseTupleAndKeywords(pArgs, pKeywordTuple, sDataTypes, pKeyWordList, &pcName))
if ( !PyArg_ParseTupleAndKeywords( pArgs, pKeywordTuple, pcFormat, pKeyWordList, &pcName ) )
return NULL;
std::string sName = pcName ? std::string(pcName) : "PySoundSource";
return PyLong_FromLong(g_pVANetClient->GetCoreInstance()->CreateSoundSource(sName));
return PyLong_FromLong( g_pVANetClient->GetCoreInstance()->CreateSoundSource(sName) );
VAPY_CATCH_RETURN;
};
static PyObject* create_sound_source_explicit_renderer( PyObject*, PyObject** ppArgs, Py_ssize_t nArgs, PyObject* pKeywordNames )