feature/audioengine #26

Manually merged
PeaAshMeter merged 11 commits from feature/audioengine into main 2026-01-18 17:56:13 +03:00
Showing only changes of commit dee4ed9719 - Show all commits

View File

@ -63,10 +63,11 @@ end
--- @param source love.Source
--- @param settings SourceFilter?
function audio:play(source, settings)
function audio:play(source, settings, effectName)
if settings then
source:setFilter(settings)
end
source:setEffect(effectName, true)
if source:getType() == "stream" then
source:setLooping(self.looped)
source:setVolume(self.musicVolume)