Add priority to samples in a library

This commit is contained in:
Pedro J. Estébanez
2017-04-06 19:00:19 +02:00
parent 3916d964de
commit 9f8f8efa67
14 changed files with 116 additions and 17 deletions

View File

@@ -33677,6 +33677,7 @@
</brief_description>
<description>
Library that contains a collection of [Sample], each identified by a text ID. This is used as a data container for the majority of the SamplePlayer classes and derivatives.
Sample players will never yield an active (currently playing) voice for a new playback request when there are no inactive voices available if the priority of the sample requested to be played is lower than that of every currently played samples.
</description>
<methods>
<method name="add_sample">
@@ -33737,6 +33738,15 @@
Return the volume (in dB) for the given sample.
</description>
</method>
<method name="sample_get_priority" qualifiers="const">
<return type="int">
</return>
<argument index="0" name="name" type="String">
</argument>
<description>
Return the priority for the given sample.
</description>
</method>
<method name="sample_set_pitch_scale">
<argument index="0" name="name" type="String">
</argument>
@@ -33755,6 +33765,15 @@
Set the volume (in dB) for the given sample.
</description>
</method>
<method name="sample_set_priority">
<argument index="0" name="name" type="String">
</argument>
<argument index="1" name="priority" type="int">
</argument>
<description>
Set the priority for the given sample.
</description>
</method>
</methods>
<constants>
</constants>