.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_SpatialSamplePlayer: SpatialSamplePlayer =================== **Inherits:** :ref:`SpatialPlayer` **<** :ref:`Spatial` **<** :ref:`Node` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Member Functions ---------------- +--------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_polyphony` **(** **)** const | +--------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`SampleLibrary` | :ref:`get_sample_library` **(** **)** const | +--------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_voice_active` **(** :ref:`int` voice **)** const | +--------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`play` **(** :ref:`String` sample, :ref:`int` voice=-2 **)** | +--------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_polyphony` **(** :ref:`int` voices **)** | +--------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_sample_library` **(** :ref:`SampleLibrary` library **)** | +--------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`stop_all` **(** **)** | +--------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`stop_voice` **(** :ref:`int` voice **)** | +--------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`voice_set_pitch_scale` **(** :ref:`int` voice, :ref:`float` ratio **)** | +--------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`voice_set_volume_scale_db` **(** :ref:`int` voice, :ref:`float` db **)** | +--------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+ Numeric Constants ----------------- - **INVALID_VOICE** = **-1** - **NEXT_VOICE** = **-2** Member Function Description --------------------------- .. _class_SpatialSamplePlayer_get_polyphony: - :ref:`int` **get_polyphony** **(** **)** const .. _class_SpatialSamplePlayer_get_sample_library: - :ref:`SampleLibrary` **get_sample_library** **(** **)** const .. _class_SpatialSamplePlayer_is_voice_active: - :ref:`bool` **is_voice_active** **(** :ref:`int` voice **)** const .. _class_SpatialSamplePlayer_play: - :ref:`int` **play** **(** :ref:`String` sample, :ref:`int` voice=-2 **)** .. _class_SpatialSamplePlayer_set_polyphony: - void **set_polyphony** **(** :ref:`int` voices **)** .. _class_SpatialSamplePlayer_set_sample_library: - void **set_sample_library** **(** :ref:`SampleLibrary` library **)** .. _class_SpatialSamplePlayer_stop_all: - void **stop_all** **(** **)** .. _class_SpatialSamplePlayer_stop_voice: - void **stop_voice** **(** :ref:`int` voice **)** .. _class_SpatialSamplePlayer_voice_set_pitch_scale: - void **voice_set_pitch_scale** **(** :ref:`int` voice, :ref:`float` ratio **)** .. _class_SpatialSamplePlayer_voice_set_volume_scale_db: - void **voice_set_volume_scale_db** **(** :ref:`int` voice, :ref:`float` db **)**