even more steps sounds test

This commit is contained in:
MihailRis
2024-03-09 02:42:53 +03:00
parent 015b1c2ed7
commit 90f3373f46
11 changed files with 56 additions and 22 deletions
+3
View File
@@ -249,6 +249,9 @@ speakerid_t audio::play(
int priority,
int channel
) {
if (sound == nullptr) {
return 0;
}
if (!sound->variants.empty()) {
size_t index = rand() % (sound->variants.size() + 1);
if (index < sound->variants.size()) {