stream type microfix
This commit is contained in:
parent
4883cc0e0c
commit
d36b67855a
@ -11,9 +11,13 @@ local function new(musicVolume, soundVolume) -- здесь мы должны в
|
|||||||
}, audio)
|
}, audio)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function audio:crossfade()
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
--- @param source love.Source
|
--- @param source love.Source
|
||||||
function audio:play(source)
|
function audio:play(source)
|
||||||
if source:getType() == "static" then
|
if source:getType() == "stream" then
|
||||||
source:setVolume(self.musicVolume)
|
source:setVolume(self.musicVolume)
|
||||||
return source:play()
|
return source:play()
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user