整理代码

This commit is contained in:
MrZ626
2021-11-20 03:28:58 +08:00
parent 4518513e87
commit ec74d55686
3 changed files with 15 additions and 18 deletions

View File

@@ -72,11 +72,11 @@ function SFX.getCount()
return #sfxList
end
function SFX.setVol(v)
assert(type(v)=='number'and v>=0 and v<=1)
assert(type(v)=='number'and v>=0 and v<=1,'Wrong volume')
volume=v
end
function SFX.setStereo(v)
assert(type(v)=='number'and v>=0 and v<=1)
assert(type(v)=='number'and v>=0 and v<=1,'Wrong stereo')
stereo=v
end