From 02f5c8fa5589737d41a4df56ddb7f8f647525de4 Mon Sep 17 00:00:00 2001 From: Pyral Date: Wed, 4 Dec 2024 08:50:41 -0500 Subject: [PATCH] Fix incorrect setup for OGG loading --- vfs_loaders.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vfs_loaders.gd b/vfs_loaders.gd index 4ef3f6f..6e11f90 100644 --- a/vfs_loaders.gd +++ b/vfs_loaders.gd @@ -30,7 +30,7 @@ static func load_mp3(buffer:PackedByteArray)->AudioStreamMP3: static func load_ogg(buffer:PackedByteArray)->AudioStreamOggVorbis: var sfx := AudioStreamOggVorbis.new() - sfx.data = buffer + sfx.load_from_buffer(buffer) return sfx static func load_txt(buffer:PackedByteArray)->String: