From 5069dd65c784d0fab5854dc9203ba90aab9c5820 Mon Sep 17 00:00:00 2001 From: Pyral Date: Fri, 6 Dec 2024 18:25:06 -0500 Subject: [PATCH] Fix incorrectly loading OGG --- vfs_loaders.gd | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vfs_loaders.gd b/vfs_loaders.gd index 6e11f90..55b02e3 100644 --- a/vfs_loaders.gd +++ b/vfs_loaders.gd @@ -29,9 +29,7 @@ static func load_mp3(buffer:PackedByteArray)->AudioStreamMP3: return sfx static func load_ogg(buffer:PackedByteArray)->AudioStreamOggVorbis: - var sfx := AudioStreamOggVorbis.new() - sfx.load_from_buffer(buffer) - return sfx + return AudioStreamOggVorbis.load_from_buffer(buffer) static func load_txt(buffer:PackedByteArray)->String: var txt:String = buffer.get_string_from_utf8()