Skip to content

Commit 26292c9

Browse files
committed
Audio examples improvements (indentions)
1 parent de26ba7 commit 26292c9

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
function playMusic ()
2-
local left = playSFX("genrl", 75, 6, true) -- Play loading theme music
3-
local right = playSFX("genrl", 75, 7, true)
4-
setSoundPan(left, -1) -- switch the first music to left channel
5-
setSoundPan(right, 1) -- switch the second music to right channel
2+
local left = playSFX("genrl", 75, 6, true) -- Play loading theme music
3+
local right = playSFX("genrl", 75, 7, true)
4+
setSoundPan(left, -1) -- switch the first music to left channel
5+
setSoundPan(right, 1) -- switch the second music to right channel
66
end
7-
addCommandHandler("music", playMusic) -- add the command handler
7+
addCommandHandler("music", playMusic) -- add the command handler
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
function playMusic ()
2-
local left = playSFX("genrl", 75, 6, true) -- Play loading theme music
3-
local right = playSFX("genrl", 75, 7, true)
4-
left.pan = -1 -- switch the first music to left channel
5-
right.pan = 1 -- switch the second music to right channel
2+
local left = playSFX("genrl", 75, 6, true) -- Play loading theme music
3+
local right = playSFX("genrl", 75, 7, true)
4+
left.pan = -1 -- switch the first music to left channel
5+
right.pan = 1 -- switch the second music to right channel
66
end
7-
addCommandHandler("music", playMusic) -- add the command handler
7+
addCommandHandler("music", playMusic) -- add the command handler
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function soundFunc()
2-
local sound = playSound ( "/sounds/jizzy.mp3",true) -- Let's play a sound
3-
setSoundSpeed ( sound, 1.2 ) -- And it will be a little bit faster !
2+
local sound = playSound ( "/sounds/jizzy.mp3",true) -- Let's play a sound
3+
setSoundSpeed ( sound, 1.2 ) -- And it will be a little bit faster !
44
end
55
addCommandHandler("play",soundFunc)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function soundFunc()
2-
local sound = Sound ( "/sounds/jizzy.mp3",true) -- Let's play a sound
3-
sound.speed = 1.2 -- And it will be a little bit faster !
2+
local sound = Sound ( "/sounds/jizzy.mp3",true) -- Let's play a sound
3+
sound.speed = 1.2 -- And it will be a little bit faster !
44
end
55
addCommandHandler("play",soundFunc)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function wasted (killer, weapon, bodypart)
2-
local sound = playSound("sounds/wasted.mp3") --Play wasted.mp3 from the sounds folder
3-
setSoundVolume(sound, 0.5) -- set the sound volume to 50%
2+
local sound = playSound("sounds/wasted.mp3") --Play wasted.mp3 from the sounds folder
3+
setSoundVolume(sound, 0.5) -- set the sound volume to 50%
44
end
55
addEventHandler("onClientPlayerWasted", localPlayer, wasted) --add the event handler
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function wasted (killer, weapon, bodypart)
2-
local sound = Sound("sounds/wasted.mp3") --Play wasted.mp3 from the sounds folder
3-
sound.volume = 0.5 -- set the sound volume to 50%
2+
local sound = Sound("sounds/wasted.mp3") --Play wasted.mp3 from the sounds folder
3+
sound.volume = 0.5 -- set the sound volume to 50%
44
end
55
addEventHandler("onClientPlayerWasted", localPlayer, wasted) --add the event handler

0 commit comments

Comments
 (0)