Skip to content

Commit 7c4bf75

Browse files
committed
replaced music wave files with mp3 versions and changed audio.lua to use "stream" for music
1 parent 748885d commit 7c4bf75

12 files changed

+6
-6
lines changed
870 KB
Binary file not shown.
-21.1 MB
Binary file not shown.
Binary file not shown.
Binary file not shown.
2.53 MB
Binary file not shown.
-37.4 MB
Binary file not shown.
1.35 MB
Binary file not shown.
-10.6 MB
Binary file not shown.
3.51 MB
Binary file not shown.
-52 MB
Binary file not shown.

code/engine/audio.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function audio:_get_volume(audio_type)
1515
end
1616

1717
function audio:play(path, pitch, audio_type)
18-
local sound = asset_manager:get_audio(path):clone()
18+
local sound = asset_manager:get_audio(path, AUDIO_TYPES.SFX and "static" or "stream"):clone()
1919

2020
sound:setPitch(pitch or 1)
2121
sound:setVolume(self:_get_volume(audio_type or AUDIO_TYPES.SFX))

code/game/systems/music_playlist_system.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ end)
2323

2424
function music_playlist_system:on_start()
2525
self.playlist = {
26-
"music/game/buddy_power.wav",
27-
"music/game/extradimensional_portalhopping.wav",
28-
"music/game/moms_workout_cd.wav",
29-
"music/game/squashin_bugs_fixed.wav",
30-
"music/game/stumble_around.wav"
26+
"music/game/buddy_power.mp3",
27+
"music/game/extradimensional_portalhopping.mp3",
28+
"music/game/moms_workout_cd.mp3",
29+
"music/game/squashin_bugs_fixed.mp3",
30+
"music/game/stumble_around.mp3"
3131
}
3232

3333
play_next(self)

0 commit comments

Comments
 (0)