Add optional arguments to AudioStreamRandomizer

Adds stream and weight parameters to add_stream. By default, weight is
1.0f.
This commit is contained in:
MrBlockers
2022-10-26 17:54:31 -04:00
parent 2a04b18d37
commit 569ead5762
4 changed files with 9 additions and 7 deletions

View File

@ -241,7 +241,7 @@ protected:
void _get_property_list(List<PropertyInfo> *p_list) const;
public:
void add_stream(int p_index);
void add_stream(int p_index, Ref<AudioStream> p_stream, float p_weight = 1.0);
void move_stream(int p_index_from, int p_index_to);
void remove_stream(int p_index);