Skip to content
Snippets Groups Projects
Select Git revision
  • 3233e7fa409708925659e13b4564c55cb604c7ec
  • master default protected
  • develop protected
  • ti_lab_build
  • cross_platform
  • big_2017_api_change
  • VA_v2024a
  • VA_v2023b
  • VA_v2023a
  • before_VANet_update
  • VA_v2022a
  • before_cmake_rework
  • v2021.a
  • v2020.a
  • v2019.a
  • v2018.b
16 results

vasingleton.cpp

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    vasingleton.cpp 14.93 KiB
    #include <Python.h>
    
    #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_load_directivity, METH_FASTCALL, va_no_doc },
    	{ "free_directivity", ( PyCFunction ) va_free_directivity, METH_FASTCALL, va_no_doc },
    	{ "get_directivity_info", ( PyCFunction ) va_get_directivity_info, METH_FASTCALL, va_no_doc },
    	{ "get_directivity_infos", ( PyCFunction ) va_get_directivity_infos, METH_FASTCALL, va_no_doc },
    
    	{ "load_hrir", ( PyCFunction )va_load_hrir, METH_FASTCALL, va_no_doc },
    	{ "free_hrir", ( PyCFunction )va_free_hrir, METH_FASTCALL, va_no_doc },
    	{ "get_hrir_info", ( PyCFunction )va_get_hrir_info, METH_FASTCALL, va_no_doc },
    	{ "get_hrir_infos", ( PyCFunction )va_get_hrir_infos, METH_FASTCALL, va_no_doc },
    
    	{ "create_audio_file_signal_source", (PyCFunction)va_create_audio_file_signal_source, METH_FASTCALL, va_no_doc },
    	{ "create_text_to_speech_signal_source", ( PyCFunction ) va_create_text_to_speech_signal_source, METH_FASTCALL, va_no_doc },
    	{ "create_sequencer_signal_source", ( PyCFunction ) va_create_sequencer_signal_source, METH_FASTCALL, va_no_doc },
    	{ "create_network_stream_signal_source", ( PyCFunction ) va_create_network_stream_signal_source, METH_FASTCALL, va_no_doc },
    	{ "create_engine_signal_source", ( PyCFunction ) va_create_engine_signal_source, METH_FASTCALL, va_no_doc },
    	{ "create_machine_signal_source", ( PyCFunction ) va_create_machine_signal_source, METH_FASTCALL, va_no_doc },
    	{ "delete_signal_source", ( PyCFunction ) va_delete_signal_source, METH_FASTCALL, va_no_doc },
    	{ "get_signal_source_info", ( PyCFunction ) va_get_signal_source_info, METH_FASTCALL, va_no_doc },
    	{ "get_signal_source_infos", (PyCFunction)va_get_signal_source_infos, METH_FASTCALL, va_no_doc },
    	{ "get_audio_file_signal_source_playback_state", (PyCFunction)va_get_audio_file_signal_source_playback_state, METH_FASTCALL, va_no_doc },
    	{ "get_audio_file_signal_source_playback_state_str", (PyCFunction)va_get_audio_file_signal_source_playback_state_str, METH_FASTCALL, va_no_doc },
    	{ "set_audio_file_signal_source_playback_action", (PyCFunction)va_set_audio_file_signal_source_playback_action, METH_FASTCALL, va_no_doc },
    	{ "set_audio_file_signal_source_playback_action_str", (PyCFunction)va_set_audio_file_signal_source_playback_action_str, METH_FASTCALL, va_no_doc },
    	{ "set_audio_file_signal_source_playback_position", (PyCFunction)va_set_audio_file_signal_source_playback_position, METH_FASTCALL, va_no_doc },
    	{ "get_audio_file_signal_source_playback_is_looping", (PyCFunction)va_get_audio_file_signal_source_playback_is_looping, METH_FASTCALL, va_no_doc },
    	{ "set_audio_file_signal_source_playback_is_looping", (PyCFunction)va_set_audio_file_signal_source_playback_is_looping, METH_FASTCALL, va_no_doc },
    	{ "start_machine_signal_source", (PyCFunction)va_start_machine_signal_source, METH_FASTCALL, va_no_doc },
    	{ "halt_machine_signal_source", (PyCFunction)va_halt_machine_signal_source, METH_FASTCALL, va_no_doc },
    	{ "get_machine_signal_source_state_str", ( PyCFunction ) va_get_machine_signal_source_state_str, METH_FASTCALL, va_no_doc },
    	{ "set_machine_signal_source_speed", ( PyCFunction ) va_set_machine_signal_source_speed, METH_FASTCALL, va_no_doc },
    	{ "get_machine_signal_source_speed", ( PyCFunction ) va_get_machine_signal_source_speed, METH_FASTCALL, va_no_doc },
    	{ "set_machine_signal_source_start_file", ( PyCFunction ) va_set_machine_signal_source_start_file, METH_FASTCALL, va_no_doc },
    	{ "set_machine_signal_source_idle_file", ( PyCFunction ) va_set_machine_signal_source_idle_file, METH_FASTCALL, va_no_doc },
    	{ "set_machine_signal_source_stop_file", ( PyCFunction ) va_set_machine_signal_source_stop_file, METH_FASTCALL, va_no_doc },
    	{ "set_signal_source_parameters", ( PyCFunction ) va_set_signal_source_parameters, METH_FASTCALL, va_no_doc },
    	{ "get_signal_source_parameters", ( PyCFunction ) va_get_signal_source_parameters, METH_FASTCALL, va_no_doc },
    
    	{ "is_scene_locked", ( PyCFunction ) va_is_scene_locked, METH_FASTCALL, va_no_doc },
    	{ "lock_scene", ( PyCFunction ) va_lock_scene, METH_FASTCALL, va_no_doc },
    	{ "unlock_scene", ( PyCFunction ) va_unlock_scene, METH_FASTCALL, va_no_doc },
    
    	{ "get_sound_source_ids", ( PyCFunction ) va_get_sound_source_ids, METH_FASTCALL, va_no_doc },
    	{ "create_sound_source", ( PyCFunction ) va_create_sound_source, METH_FASTCALL, va_no_doc },
    	{ "create_sound_source_explicit_renderer", ( PyCFunction ) va_create_sound_source_explicit_renderer, METH_FASTCALL, va_no_doc },
    	{ "delete_sound_source", ( PyCFunction ) va_delete_sound_source, METH_FASTCALL, va_no_doc },
    	{ "set_sound_source_enabled", ( PyCFunction ) va_set_sound_source_enabled, METH_FASTCALL, va_no_doc },
    	{ "get_sound_source_enabled", ( PyCFunction ) va_get_sound_source_enabled, METH_FASTCALL, va_no_doc },
    	{ "get_sound_source_name", ( PyCFunction ) va_get_sound_source_name, METH_FASTCALL, va_no_doc },
    	{ "set_sound_source_enabled", ( PyCFunction ) va_set_sound_source_enabled, METH_FASTCALL, va_no_doc },