Skip to content

Commit

Permalink
The audio library is now fully compatible with numerical identifiers …
Browse files Browse the repository at this point in the history
…for sound files.
  • Loading branch information
DFortun81 committed Aug 21, 2023
1 parent 52b670e commit b856414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Audio.lua
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ local function PlayAudio(soundType, setting)
SoundDelays[soundType] = now + 1;
local soundFile = targetAudio[math.random(1, audioCount)];
if soundFile then
PlaySoundFile(soundFile, app.Settings:GetTooltipSetting("Channel"));
(type(soundFile) == "string" and PlaySoundFile or PlaySound)(soundFile, app.Settings:GetTooltipSetting("Channel"));
end
end
end
Expand Down

0 comments on commit b856414

Please sign in to comment.