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()