Fix incorrectly loading OGG
This commit is contained in:
parent
23359f2fef
commit
5069dd65c7
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user