#include #include "vasingletondoc.hpp" // All Python 2 VA methods. Also pulls in g_pVAError (Python error trace instance) #include "vasingletonmethods.hpp" // VA methods that will appear in Python if they are added to the following table // It's corresponding C++ functions are implemented here: vasingletonmethods.hpp static struct PyMethodDef va_methods[] = { { "connect", ( PyCFunction ) va_connect, METH_FASTCALL, va_connect_doc }, { "disconnect", ( PyCFunction ) va_disconnect, METH_FASTCALL, va_no_doc }, { "is_connected", ( PyCFunction ) va_is_connected, METH_FASTCALL, va_no_doc }, { "reset", ( PyCFunction ) va_reset, METH_FASTCALL, va_no_doc }, { "enumerate_modules", ( PyCFunction ) va_enumerate_modules, METH_FASTCALL, va_no_doc }, { "call_module", ( PyCFunction ) va_call_module, METH_FASTCALL, va_no_doc }, { "add_search_path", ( PyCFunction ) va_add_search_path, METH_FASTCALL, va_no_doc }, { "load_directivity", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "free_directivity", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_directivity_info", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_directivity_infos", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "load_hrir", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "free_hrir", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_hrir_info", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_hrir_infos", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "create_audio_file_signal_source", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "create_text_to_speech_signal_source", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "create_sequencer_signal_source", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "create_network_stream_signal_source", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "create_engine_signal_source", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "create_machine_signal_source", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "delete_signal_source", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_signal_source_info", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_signal_source_infos", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_machine_signal_source_state_str", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_machine_signal_source_speed", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_machine_signal_source_speed", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_machine_signal_source_start_file", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_machine_signal_idle_start_file", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_machine_signal_stop_start_file", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "add_sound_playback", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "remove_sound_playback", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_signal_source_parameters", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_signal_source_parameters", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "is_scene_locked", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "lock_scene", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "unlock_scene", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_sound_source_ids", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "create_sound_source", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "create_sound_source_explicit_renderer", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "delete_sound_source", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_sound_source_enabled", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_sound_source_enabled", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_sound_source_name", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_sound_source_enabled", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_sound_source_signal_source", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_sound_source_signal_source", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "remove_sound_source_signal_source", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_sound_source_auralization_mode", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_sound_source_auralization_mode", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_sound_source_parameters", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_sound_source_parameters", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_sound_source_directivity", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_sound_source_directivity", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_sound_source_volume", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_sound_source_volume", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "is_sound_source_muted", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_sound_source_position", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_sound_source_position", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_sound_source_orientation_vu", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_sound_source_orientation_vu", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_sound_source_orientation_q", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_sound_source_orientation_q", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_listener_ids", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "create_listener", ( PyCFunction ) va_create_listener, METH_FASTCALL, va_no_doc }, { "create_listener_explicit_renderer", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "delete_listener", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_listener_enabled", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_listener_enabled", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_listener_name", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_listener_enabled", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_listener_auralization_mode", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_listener_auralization_mode", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_listener_parameters", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_listener_parameters", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_listener_hrir", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_listener_hrir", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_listener_volume", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_listener_volume", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "is_listener_muted", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_listener_position", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_listener_position", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_listener_orientation_vu", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_listener_orientation_vu", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_listener_orientation_q", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_listener_orientation_q", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_listener_real_world_position", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_listener_real_world_position", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_listener_real_world_orientation_vu", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_listener_real_world_orientation_vu", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_listener_real_world_orientation_q", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_listener_real_world_orientation_q", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "load_scene", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "is_scene_loaded", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_scene_info", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_listener_real_world_orientation_q", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_portal_ids", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_portal_name", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_portal_name", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_portal_state", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_portal_state", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_rendering_modules", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_rendering_module_muted", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "is_rendering_module_muted", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_rendering_module_gain", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_rendering_module_gain", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_reproduction_modules", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_reproduction_module_muted", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "is_reproduction_module_muted", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_reproduction_module_gain", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_reproduction_module_gain", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_input_gain", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_input_gain", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "is_input_muted", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_input_muted", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_output_gain", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_output_gain", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "is_output_muted", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_output_muted", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_global_auralization_mode", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_global_auralization_mode", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_active_listener", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_active_listener", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_active_listener_explicit_renderer", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_active_listener_explicit_renderer", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_core_clock", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "set_core_clock", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "substitute_macro", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "find_file_path", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_log_level_str", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "parse_auralization_mode_str", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_auralization_mode_str", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_volume_str_decibel", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "parse_playback_state_str", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_playback_state_str", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "parse_playback_action_str", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { "get_playback_action_str", ( PyCFunction ) va_not_implemented, METH_FASTCALL, va_no_doc }, { NULL, NULL } }; static struct PyModuleDef vamoduledef = { PyModuleDef_HEAD_INIT, "va", va_module_doc, -1, va_methods, NULL, NULL, NULL, NULL }; PyMODINIT_FUNC PyInit_va( void ) { PyObject* pModule = PyModule_Create( &vamoduledef ); g_pVAError = PyErr_NewException( "va.error", NULL, NULL ); Py_INCREF( g_pVAError ); //PyAdd return pModule; }