Completing method table, but all pointing to a not-implemented-function

parent 8391cedf
......@@ -11,7 +11,151 @@ static struct PyMethodDef va_methods[] =
{ "connect", ( PyCFunction ) va_connect, METH_FASTCALL, va_connect_doc },
{ "disconnect", ( PyCFunction ) va_disconnect, METH_FASTCALL, va_no_doc },
{ "reset", ( PyCFunction ) va_reset, METH_FASTCALL, va_no_doc },
{ "add_listener", ( PyCFunction ) va_add_listener, 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 }
};
......@@ -30,5 +174,5 @@ static struct PyModuleDef vamoduledef =
PyMODINIT_FUNC PyInit_va( void )
{
return PyModule_Create(&vamoduledef);
return PyModule_Create( &vamoduledef );
}
......@@ -10,6 +10,13 @@
static IVANetClient* g_pVANetClient = nullptr; //!< Static pointer to VANetClient instance
//! Helper for API dev
static PyObject* va_not_implemented( PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames )
{
VA_EXCEPT_NOT_IMPLEMENTED;
return NULL;
}
//! Raises an exception if core is not available
static void RequireCoreAvailable()
{
......@@ -61,7 +68,34 @@ static PyObject* va_reset( PyObject *module, PyObject **args, Py_ssize_t nargs,
return PyBool_FromLong( 1 );
}
static PyObject* va_add_listener( PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames )
static PyObject* va_enumerate_modules( PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames )
{
RequireCoreAvailable();
VA_EXCEPT_NOT_IMPLEMENTED;
return NULL;
}
static PyObject* va_call_module( PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames )
{
RequireCoreAvailable();
VA_EXCEPT_NOT_IMPLEMENTED;
return NULL;
}
static PyObject* va_add_search_path( PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames )
{
RequireCoreAvailable();
VA_EXCEPT_NOT_IMPLEMENTED;
return NULL;
}
static PyObject* va_create_listener( PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames )
{
RequireCoreAvailable();
......
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