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 d36b67855a - Show all commits

View File

@ -11,9 +11,13 @@ local function new(musicVolume, soundVolume) -- здесь мы должны в
}, audio)
end
function audio:crossfade()
end
--- @param source love.Source
function audio:play(source)
if source:getType() == "static" then
if source:getType() == "stream" then
source:setVolume(self.musicVolume)
return source:play()
end