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: